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_EXT_MARKDOWN: &[&str] = &["md", "markdown", "mdx"];
pub(crate) const FMT_EXT_YAML: &[&str] = &["yml", "yaml"];
pub(crate) const FMT_EXT_JSON: &[&str] = &["json"];
pub(crate) const FMT_EXT_JSONC: &[&str] = &["jsonc"];
pub(crate) const FMT_EXT_TOML: &[&str] = &["toml"];
pub(crate) const FMT_EXT_PLAIN_TEXT: &[&str] = &[
"sh",
"bash",
"zsh",
"py",
"sql",
"txt",
"css",
"scss",
"less",
"html",
"htm",
"xml",
"svg",
"js",
"mjs",
"cjs",
"ts",
"tsx",
"jsx",
"vue",
"dockerfile",
"env",
"gitignore",
"dockerignore",
"editorconfig",
];
pub(crate) const FMT_NAME_PRESERVE_TABS: &[&str] = &["Makefile", "makefile", ".gitattributes"];
pub(crate) const FMT_NAME_PLAIN_TEXT: &[&str] = &[
"Dockerfile",
"LICENSE",
".gitignore",
".dockerignore",
".editorconfig",
".env",
".env.example",
];
pub(crate) const FMT_EXT_RUST: &str = "rs";
pub(crate) const ERROR_TEXT_FMT_CHECK_FAILED: &str = "unformatted text files detected";