14 lines
313 B
Makefile
14 lines
313 B
Makefile
_default:
|
|
just --choose
|
|
|
|
# Lint All Files
|
|
lint:
|
|
@stylua lua/
|
|
|
|
# Static code Analysis
|
|
stan:
|
|
#!/bin/sh
|
|
status=$(lua-language-server --logpath="./log" --chechklevel=Error --check lua/)
|
|
if ! echo "$status" | grep -qF "Diagnosis completed, no problems found"; then
|
|
cat ./log/check.json | jq && exit 1
|
|
fi
|