-
-
Notifications
You must be signed in to change notification settings - Fork 428
/
Copy pathtreefmt.toml
76 lines (65 loc) · 1.7 KB
/
treefmt.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# https://github.com/numtide/treefmt
# https://github.com/numtide/treefmt-nix
on-unmatched = "info"
[formatter.clang-format]
command = "clang-format"
options = ["-i"]
# Only target the exact directories we want
includes = [
# Non-recursive for src root
"src/*.cpp",
"src/*.h",
# Recursive for specific subdirectories
"src/entities/**/*.cpp",
"src/entities/**/*.h",
"src/utils/**/*.cpp",
"src/utils/**/*.h",
"src/helpers/**/*.cpp",
"src/helpers/**/*.h",
"src/services/**/*.cpp",
"src/services/**/*.h",
"src/widgets/**/*.cpp",
"src/widgets/**/*.h",
"src/dialogs/**/*.cpp",
"src/dialogs/**/*.h",
"src/api/**/*.cpp",
"src/api/**/*.h",
"src/libraries/piwiktracker/**/*.cpp",
"src/libraries/piwiktracker/**/*.h",
"src/libraries/qmarkdowntextedit/**/*.cpp",
"src/libraries/qmarkdowntextedit/**/*.h",
# Recursive for tests
"tests/unit_tests/**/*.cpp",
"tests/unit_tests/**/*.h",
]
# Explicitly exclude everything else
excludes = [
# Exclude everything not explicitly included
"src/libraries/**/*.cpp",
"src/libraries/**/*.cxx",
"src/libraries/**/*.c",
"src/libraries/**/*.h",
"src/libraries/**/*.hxx",
# You can add more specific exclusions here as needed
]
[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 = []