Files
nvim-tree.lua/Makefile
Alexander Courtis e11ce83ed9 chore(#3271): add new format-check, rename style-fix to format-fix (#3273)
* chore(#3271): add new format-check, rename style-fix to format-fix

* chore(#3271): CI install CodeFormat from luarocks

* chore(#3271): CI install CodeFormat from luarocks

* chore(#3271): CI install CodeFormat from luarocks

* chore(#3271): remove bad printf after format-check failure

* chore(#3271): install CodeFormat from binary as luarocks is too slow

* chore(#3271): no broken windows - all formatting fixed
2026-02-18 10:49:39 +11:00

55 lines
933 B
Makefile

all: lint style check
#
# mandatory checks
#
lint: luacheck
style: style-check style-doc
check: luals
#
# subtasks
#
luacheck:
luacheck --codes --quiet lua --exclude-files "**/_meta/**"
style-check:
scripts/luals-check.sh codestyle-check
style-doc:
scripts/doc-comments.sh
luals:
scripts/luals-check.sh
#
# format
#
format-fix:
CodeFormat format --config .editorconfig --workspace lua
format-check:
CodeFormat format --config .editorconfig --workspace lua
git diff --exit-code lua
#
# utility
#
help-update:
scripts/vimdoc.sh doc
scripts/help-defaults.sh
#
# CI
# --ignore-blank-lines is used as nightly has removed unnecessary blank lines that stable (0.11.5) currently inserts
#
help-check: help-update
scripts/vimdoc.sh lintdoc
git diff --ignore-blank-lines --exit-code doc/nvim-tree-lua.txt
.PHONY: all lint style check luacheck style-check style-doc luals format-fix format-check help-update help-check