applies all recommended deadnix fixes, and adds it to checks

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-05-21 19:47:21 -04:00
committed by Richie Cahill
parent f3f6c463ca
commit 3522ebd8c5
19 changed files with 27 additions and 88 deletions

View File

@ -23,6 +23,15 @@ forEachSystem (system: {
## static analysis checks for nix
nil.enable = true;
statix.enable = true;
deadnix = {
enable = true;
settings = {
noUnderscore = true; # ignore variables starting with underscore
# ignore lambda patterns (useful for passing args from ({}@args)
# to other functions)
noLambdaPatternNames = true;
};
};
# json hooks
check-json = {