git-hooks.nix
git-hooks.nix copied to clipboard
Run shellcheck for <nixpkgs>.writers scripts
Scripts maintained from within a flake.nix file, e.g. with <nixpkgs>.writers.writeBashBin will not be checked by shellcheck as filename based matching does not pick them up.
shellcheck supports reading code from STDIN (see https://github.com/koalaman/shellcheck/issues/1586), it would be super-neat if shellcheck would also been run against scripts within flake.nix files.