This commit is contained in:
NAKAI Tsuyoshi
2023-02-27 15:28:01 +09:00
committed by GitHub
parent 7a3b1e76f7
commit 339186c979
6 changed files with 29 additions and 97 deletions

View File

@@ -1,13 +1,3 @@
.PHONY: install-stylua
install-stylua:
@if [ ! -f "./utils/stylua" ]; then \
sh ./utils/install_stylua.sh; \
fi
.PHONY: fmt
fmt: install-stylua
./utils/stylua --config-path stylua.toml --glob 'lua/**/*.lua' -- lua
.PHONY: lint
lint:
luacheck ./lua
@@ -17,14 +7,11 @@ test:
vusted --output=gtest ./lua
.PHONY: pre-commit
pre-commit: install-stylua
./utils/stylua --config-path stylua.toml --glob 'lua/**/*.lua' -- lua
pre-commit:
luacheck lua
vusted lua
.PHONY: integration
integration: install-stylua
./utils/stylua --config-path stylua.toml --check --glob 'lua/**/*.lua' -- lua
integration:
luacheck lua
vusted lua