build: Add stylua configuration for linting lua code
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
a0bcd443b7
commit
c673391807
2 changed files with 6 additions and 0 deletions
4
.stylua.toml
Normal file
4
.stylua.toml
Normal file
|
@ -0,0 +1,4 @@
|
|||
quote_style = "AutoPreferSingle"
|
||||
indent_type = "Spaces"
|
||||
indent_width = 2
|
||||
column_width = 80
|
2
Makefile
2
Makefile
|
@ -4,6 +4,7 @@ DEADNIX := nix run nixpkgs\#deadnix --
|
|||
MORPH := nix run nixpkgs\#morph --
|
||||
NIXFMT := nix run nixpkgs\#nixfmt --
|
||||
STATIX := nix run nixpkgs\#statix --
|
||||
STYLUA := nix run nixpkgs\#stylua --
|
||||
|
||||
.PHONY: format lint build-all upload-secrets-all build deploy deploy-full upload-secrets
|
||||
|
||||
|
@ -17,6 +18,7 @@ format:
|
|||
lint:
|
||||
$(DEADNIX) --fail
|
||||
$(STATIX) check
|
||||
$(STYLUA) --check .
|
||||
find . -type f -name '*.nix' -exec $(NIXFMT) --check {} +
|
||||
|
||||
build-all:
|
||||
|
|
Loading…
Reference in a new issue