chore: improve formatting

This commit is contained in:
Leon Schwarzäugl 2025-11-26 08:32:40 +01:00
parent e7891f6727
commit 0c3aee7997
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
6 changed files with 466 additions and 39 deletions

View file

@ -17,6 +17,21 @@
};
deadnix.enable = true;
statix.enable = true;
shfmt = {
enable = true;
indent_size = 4;
simplify = true;
# needed to replicate what my Emacs shfmt does
# there is no builtin option for space-redirects
package = pkgs.symlinkJoin {
name = "shfmt";
buildInputs = [ pkgs.makeWrapper ];
paths = [ pkgs.shfmt ];
postBuild = ''
wrapProgram $out/bin/shfmt -sr
'';
};
};
shellcheck.enable = true;
};
settings.formatter.shellcheck.options = [