diff options
| author | seth <[email protected]> | 2024-04-09 19:49:37 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-04-09 19:49:37 -0400 |
| commit | 16a1126200932407f9f4562fba961b514a1c91d1 (patch) | |
| tree | 3ab1b6f1035436a644465757c38c17d7943cea11 /checks.nix | |
| parent | 43dbb8549d0ecc6dd62a5fd5f9b63beacbfc487b (diff) | |
auto import all files, cleanup + add a few things
Diffstat (limited to 'checks.nix')
| -rw-r--r-- | checks.nix | 49 |
1 files changed, 15 insertions, 34 deletions
@@ -5,43 +5,24 @@ inherit (pkgs) lib; formatter = self.formatter.${pkgs.system}; in { - check-actionlint = - pkgs.runCommand "check-actionlint" { - nativeBuildInputs = [pkgs.actionlint]; - } '' - actionlint ${./.}/.github/workflows/* - touch $out - ''; - - "check-${formatter.pname}" = - pkgs.runCommand "check-${formatter.pname}" { - nativeBuildInputs = [formatter]; - } '' - ${lib.getExe formatter} --check ${./.} - touch $out - ''; + check-actionlint = pkgs.runCommand "check-actionlint" {} '' + ${lib.getExe pkgs.actionlint} ${./.}/.github/workflows/* + touch $out + ''; - check-statix = - pkgs.runCommand "check-statix" { - nativeBuildInputs = [pkgs.statix]; - } - '' - statix check ${./.} - touch $out - ''; + "check-${formatter.pname}" = pkgs.runCommand "check-${formatter.pname}" {} '' + ${lib.getExe formatter} --check ${./.} + touch $out + ''; - check-nil = - pkgs.runCommand "check-nil" { - nativeBuildInputs = with pkgs; [fd git nil]; - } - '' - cd ${./.} - fd . -e 'nix' | while read -r file; do - nil diagnostics "$file" - done + check-selen = pkgs.runCommand "check-selene" {} '' + ${lib.getExe pkgs.selene} ${./config} + ''; - touch $out - ''; + check-statix = pkgs.runCommand "check-statix" {} '' + ${lib.getExe pkgs.statix} check ${./.} + touch $out + ''; check-stylua = pkgs.runCommand "check-stylua" {} '' ${lib.getExe pkgs.stylua} --check ${./.} |
