-
Notifications
You must be signed in to change notification settings - Fork 46
/
treefmt.toml
54 lines (45 loc) · 1.28 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
# One CLI to format the code tree - https://github.com/numtide/treefmt
# Exclude files or directories matching the specified globs
excludes = [
"LICENSE",
"*.png",
"*.jpg",
"*.md",
"*.lock",
"*.zip",
"*.css",
"*.json",
"*.zsh",
"*/packages.nix",
"*/home/default.nix",
"treefmt.toml",
]
[formatter.nix]
command = "nixfmt"
options = [ "-sv", "-w" ,"80" ]
includes = [ "*.nix" ]
excludes = [ ]
[formatter.sh]
command = "shfmt"
options = [ "-l", "-w", "-ci", "-sr", "-i", "4" ]
includes = [ "*.sh" ]
excludes = []
# Log paths that did not match any formatters at the specified log level
# Possible values are <debug|info|warn|error|fatal>
# Env $TREEFMT_ON_UNMATCHED
# on-unmatched = "info"
# The root directory from which treefmt will start walking the filesystem
# Defaults to the directory containing the config file
# Env $TREEFMT_TREE_ROOT
# tree-root = "/tmp/foo"
# File to search for to find the tree root (if tree-root is not set)
# Env $TREEFMT_TREE_ROOT_FILE
# tree-root-file = ".git/config"
# Set the verbosity of logs
# 0 = warn, 1 = info, 2 = debug
# Env $TREEFMT_VERBOSE
# verbose = 0
# The method used to traverse the files within the tree root
# Currently, we support 'auto', 'git' or 'filesystem'
# Env $TREEFMT_WALK
# walk = "filesystem"