pub(super) const GENERATED_NAMES: &[&str] = &[
"package-lock.json",
"npm-shrinkwrap.json",
"yarn.lock",
"pnpm-lock.yaml",
"bun.lock",
"bun.lockb",
"Cargo.lock",
"Gemfile.lock",
"composer.lock",
"poetry.lock",
"uv.lock",
"Pipfile.lock",
"go.sum",
"flake.lock",
"packages.lock.json",
];
pub(super) const GENERATED_SUFFIXES: &[&str] = &[".min.js", ".min.css", ".map"];
pub(super) const MORE_GENERATED_NAMES: &[&str] = &[
"deno.lock",
"pdm.lock",
"mix.lock",
"pubspec.lock",
"Podfile.lock",
"Package.resolved",
"gradle.lockfile",
"go.work.sum",
];
pub(super) const MORE_GENERATED_SUFFIXES: &[&str] = &[
".pb.go",
"_pb2.py",
"_pb2_grpc.py",
".pb.h",
".pb.cc",
".g.dart",
".freezed.dart",
".designer.cs",
".generated.ts",
".generated.js",
];
pub(super) const GENERATED_FOLDERS: &[&str] =
&["vendor", "node_modules", "third_party", "third-party", "dist", "__generated__"];
pub(super) const TEST_FOLDERS: &[&str] = &[
"__tests__",
"__snapshots__",
"__fixtures__",
"__mocks__",
"test",
"tests",
"spec",
"e2e",
"fixtures",
"testdata",
"testfixtures",
];
pub(super) const TEST_CODE_EXT: &[&str] = &[
"js", "jsx", "ts", "tsx", "cjs", "cjsx", "cts", "ctsx", "mjs", "mjsx", "mts", "mtsx", "rb", "py", "go",
"rs", "java", "kt", "kts", "swift", "cs", "fs", "ex", "exs", "php", "scala", "dart", "groovy", "clj",
"cljc", "cljs", "lua", "erl", "hs", "ml", "jl", "r", "c", "cc", "cpp", "h", "hpp", "m", "mm", "vue",
"svelte",
];
pub(super) const TEST_MARKERS: &[&str] = &["test", "spec", "cy", "e2e", "test-d"];
pub(super) const CODE_EXT: &[&str] = &[
"sh", "bash", "zsh", "fish", "ps1", "bat", "cmd", "sql", "html", "htm", "css", "scss", "sass", "less",
"astro", "zig", "nim", "pl", "pm", "gradle", "tf", "hcl", "nix", "proto", "graphql", "gql", "elm", "fsx",
"vb", "asm", "s", "cxx", "hh", "hxx", "ino", "cu", "metal", "glsl", "wgsl", "hlsl", "sol", "v", "sv",
"vhd", "f90", "cob", "d", "cr", "rkt", "scm", "lisp", "el", "vim", "tcl", "awk", "ipynb",
];
pub(super) const DOCS_EXT: &[&str] =
&["md", "mdx", "markdown", "rst", "adoc", "asciidoc", "txt", "org", "rdoc", "pod", "tex"];
pub(super) const DOCS_NAMES: &[&str] = &[
"readme",
"changelog",
"changes",
"history",
"license",
"licence",
"copying",
"notice",
"authors",
"contributors",
"contributing",
"code_of_conduct",
"security",
"install",
];
pub(super) const DOCS_FOLDERS: &[&str] = &["docs", "doc", "documentation"];
pub(super) const CONFIG_EXT: &[&str] = &[
"json",
"jsonc",
"json5",
"yaml",
"yml",
"toml",
"ini",
"cfg",
"conf",
"properties",
"xml",
"plist",
"env",
"cmake",
"mk",
"editorconfig",
];
pub(super) const CONFIG_NAMES: &[&str] = &[
"dockerfile",
"containerfile",
"makefile",
"gnumakefile",
"justfile",
"procfile",
"gemfile",
"rakefile",
"pipfile",
"brewfile",
"vagrantfile",
"jenkinsfile",
"cmakelists.txt",
"requirements.txt",
"go.mod",
"go.work",
"codeowners",
"build",
"build.bazel",
"workspace",
"module.bazel",
];