aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/lint.yml3
-rw-r--r--CONTRIBUTING.md5
-rw-r--r--Makefile5
3 files changed, 10 insertions, 3 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 65523d18..3140cc69 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -18,5 +18,4 @@ jobs:
sudo luarocks install luacheck
- name: Run luacheck
run: |
- luacheck .
-
+ make lint
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index bba7617f..7d0ba530 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -78,3 +78,8 @@ It can contain any other additional data that the user may find useful.
Function `util.npm_installer()` can be used for`npm`-installable language
servers. See `elmls.lua`, `tsserver.lua`, `bashls.lua` for examples.
+
+## Lint
+
+When you create a pull request and push commit, Github Action run luacheck automaticaly.
+If you want to run luacheck on your local, you can use `make lint`.
diff --git a/Makefile b/Makefile
index 8ab91f98..5a155648 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
test:
sh ./scripts/run_test.sh
-.PHONY: test
+lint:
+ luacheck lua/* test/*
+.PHONY: test lint
+