Avoid repeated keys

This commit is contained in:
SebastianStork 2024-08-07 01:22:15 +02:00
parent 53d90bee5a
commit 94e52b022b
12 changed files with 143 additions and 114 deletions

View file

@ -6,16 +6,10 @@
checks = {
treefmt = (import ./treefmt.nix { inherit inputs pkgs; }).check self;
statix =
let
statix-config = pkgs.writeText "statix.toml" ''
disabled = ["repeated_keys"]
'';
in
pkgs.runCommand "statix" { buildInputs = [ pkgs.statix ]; } ''
statix check ${self} --config ${statix-config}
mkdir $out
'';
statix = pkgs.runCommand "statix" { buildInputs = [ pkgs.statix ]; } ''
statix check ${self}
mkdir $out
'';
deadnix = pkgs.runCommand "deadnix" { buildInputs = [ pkgs.deadnix ]; } ''
deadnix ${self} --fail --exclude ${self}/flake/formatter.nix