-
-
Notifications
You must be signed in to change notification settings - Fork 431
/
Copy pathtreefmt.toml
72 lines (64 loc) · 1.52 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
# 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"]