pub(crate) const FMT_SKIP_DIRS: &[&str] = &[
".git",
".worktrees",
".codegraph",
".cache",
"target",
"node_modules",
"dist",
"tmp",
"results",
"results2",
"data",
"logs",
"uploads",
"debug",
"pkg",
];
pub(crate) const FMT_PRETTIER_IGNORE_FILE: &str = ".prettierignore";
pub(crate) const FMT_EXT_RUST: &str = "rs";
pub(crate) const FMT_EXT_MARKDOWN: &[&str] = &["md", "markdown", "mdx"];
pub(crate) const FMT_EXT_YAML: &[&str] = &["yml", "yaml"];
pub(crate) const FMT_NAME_YAML: &[&str] = &[".prettierrc"];
pub(crate) const FMT_NAME_JSON_STRINGIFY: &[&str] =
&["package.json", "package-lock.json", "composer.json"];
pub(crate) const FMT_EXT_JSON: &[&str] = &["json"];
pub(crate) const FMT_EXT_JSONC: &[&str] = &["jsonc", "cjson"];
pub(crate) const FMT_EXT_TOML: &[&str] = &["toml"];
pub(crate) const FMT_EXT_JAVASCRIPT: &[&str] = &["js", "mjs", "cjs", "wxs"];
pub(crate) const FMT_EXT_TYPESCRIPT: &[&str] = &["ts", "mts", "cts"];
pub(crate) const FMT_EXT_TSX: &[&str] = &["tsx"];
pub(crate) const FMT_EXT_CSS: &[&str] = &["css", "wxss"];
pub(crate) const FMT_EXT_SCSS: &[&str] = &["scss"];
pub(crate) const FMT_EXT_LESS: &[&str] = &["less"];
pub(crate) const FMT_EXT_HTML: &[&str] = &["html", "htm"];
pub(crate) const FMT_EXT_VUE: &[&str] = &["vue"];
pub(crate) const FMT_EXT_PLAIN_TEXT: &[&str] = &[
"sh",
"bash",
"zsh",
"txt",
"mk",
"dockerfile",
"env",
"gitignore",
"dockerignore",
"editorconfig",
"conf",
"cfg",
"ini",
"properties",
"xml",
"svg",
];
pub(crate) const FMT_NAME_PRESERVE_TABS: &[&str] = &["Makefile", "makefile", ".gitattributes"];
pub(crate) const FMT_NAME_PLAIN_TEXT: &[&str] = &[
"Dockerfile",
"LICENSE",
".gitignore",
".dockerignore",
".npmignore",
".prettierignore",
".eslintignore",
".vscodeignore",
".editorconfig",
".gitconfig",
".npmrc",
".env",
".env.example",
".bashrc",
".zshrc",
"pre-commit",
"commit-msg",
"pre-push",
];
pub(crate) const FMT_PREFIX_DOCKERFILE: &str = "Dockerfile.";
pub(crate) const FMT_PREFIX_DOTENV: &str = ".env.";
pub(crate) const ERROR_TEXT_FMT_CHECK_FAILED: &str = "unformatted text files detected";
pub(crate) const FMT_EXT_MAX_LEN: usize = 16;
pub(crate) const FMT_GLOB_STACK_CAP: usize = 256;
pub(crate) const FMT_PARALLEL_THRESHOLD: usize = 4;
pub(crate) const FMT_FILES_PER_WORKER: usize = 10;
pub(crate) const FMT_BYTE_DOT: u8 = b'.';
pub(crate) const FMT_BYTE_UPPER_D: u8 = b'D';
pub(crate) const FMT_BYTE_UPPER_L: u8 = b'L';
pub(crate) const FMT_BYTE_UPPER_M: u8 = b'M';
pub(crate) const FMT_BYTE_LOWER_C: u8 = b'c';
pub(crate) const FMT_BYTE_LOWER_H: u8 = b'h';
pub(crate) const FMT_BYTE_LOWER_J: u8 = b'j';
pub(crate) const FMT_BYTE_LOWER_L: u8 = b'l';
pub(crate) const FMT_BYTE_LOWER_M: u8 = b'm';
pub(crate) const FMT_BYTE_LOWER_P: u8 = b'p';
pub(crate) const FMT_BYTE_LOWER_R: u8 = b'r';
pub(crate) const FMT_BYTE_LOWER_S: u8 = b's';
pub(crate) const FMT_BYTE_LOWER_T: u8 = b't';
pub(crate) const FMT_BYTE_LOWER_V: u8 = b'v';
pub(crate) const FMT_BYTE_LOWER_W: u8 = b'w';
pub(crate) const FMT_BYTE_LOWER_Y: u8 = b'y';
pub(crate) const FMT_PLAIN_TEXT_ONLY_FIRST_BYTES: &[u8] = b"bdegipxz";
pub(crate) const FMT_GLOB_SLASH: u8 = b'/';
pub(crate) const FMT_GLOB_STAR: u8 = b'*';
pub(crate) const FMT_GLOB_QUESTION: u8 = b'?';