QOwnNotes/treefmt.toml
Patrizio Bekerle 35c5dcb555
treefmt: ignore more files
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
2025-04-18 22:12:10 +02:00

72 lines
1.5 KiB
TOML

# https://github.com/numtide/treefmt
# https://github.com/numtide/treefmt-nix
on-unmatched = "info"
excludes = [
"build/**",
"build-*/**",
"src/build/**",
"src/build-*/**",
"src/cmake-build-debug/**",
"src/Qt5-Debug/**",
"bin/**",
"doc/build/**",
"stage/**",
"parts/**",
"secrets/**",
"src/libraries/build-*/**",
"src/libraries/qkeysequencewidget/**",
"src/libraries/qttoolbareditor/**",
"src/libraries/qtcsv/**",
"src/libraries/md4c/**",
"src/libraries/qhotkey/**",
"webpage/src/ar/**",
"webpage/src/de/**",
"webpage/src/es/**",
"webpage/src/fa/**",
"webpage/src/fr/**",
"webpage/src/hu/**",
"webpage/src/it/**",
"webpage/src/ko/**",
"webpage/src/nl/**",
"webpage/src/pl/**",
]
[formatter.clang-format]
command = "clang-format"
options = ["-i"]
includes = ["*.cpp", "*.h"]
excludes = [
"src/libraries/diff_match_patch/**", # Library was broken by clang-format
]
[formatter.prettier]
command = "prettier"
options = ["--write"]
includes = ["webpage/**/*.vue", "webpage/**/*.js", "*.md", "*.yaml", "*.yml"]
[formatter.shfmt]
command = "shfmt"
excludes = []
includes = ["*.sh", "*.bash", "*.envrc", "*.envrc.*"]
options = ["-s", "-w", "-i", "2"]
[formatter.just]
command = "just"
includes = ["*.just"]
[formatter.taplo]
command = "taplo"
includes = ["*.toml"]
options = ["format"]
[formatter.nixfmt-rfc-style]
command = "nixfmt"
excludes = []
includes = ["*.nix"]
options = []
[formatter.cmake-format]
command = "cmake-format"
includes = ["**/*.cmake", "**/CMakeLists.txt"]
options = ["--in-place"]