mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 09:29:41 +08:00
flake: add nixf-diagnose to treefmt
Start off conservative ignoring more things. Handle the simple auto-fix things initially. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
10
treefmt.toml
10
treefmt.toml
@@ -10,6 +10,16 @@ command = "deadnix"
|
||||
options = [ "--edit", "--no-lambda-arg", "--no-lambda-pattern-names" ]
|
||||
includes = [ "*.nix" ]
|
||||
|
||||
[formatter.nixf-diagnose]
|
||||
command = "nixf-diagnose"
|
||||
options = [
|
||||
"--auto-fix",
|
||||
"--ignore=sema-unused-def-lambda-witharg-formal",
|
||||
"--ignore=sema-unused-def-lambda-noarg-formal",
|
||||
"--ignore=sema-primop-overridden"
|
||||
]
|
||||
includes = [ "*.nix" ]
|
||||
|
||||
[formatter.keep-sorted]
|
||||
command = "keep-sorted"
|
||||
includes = [ "*" ]
|
||||
|
||||
Reference in New Issue
Block a user