mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 01:19:32 +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:
@@ -57,6 +57,7 @@
|
||||
nixfmt
|
||||
deadnix
|
||||
keep-sorted
|
||||
nixf-diagnose
|
||||
];
|
||||
settings = pkgs.lib.importTOML ./treefmt.toml;
|
||||
}
|
||||
|
||||
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