aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2020-05-21 17:14:29 +0900
committerHirokazu Hata <h.hata.ai.t@gmail.com>2020-05-21 17:14:39 +0900
commit1ab0fdbf6e4efa61857ccdd3f4aeb9e1549a72f5 (patch)
treef5ef6ee032dc704f228058d3d0c73daa20994388
parentgithub action: add test action (diff)
downloadnvim-lspconfig-1ab0fdbf6e4efa61857ccdd3f4aeb9e1549a72f5.tar
nvim-lspconfig-1ab0fdbf6e4efa61857ccdd3f4aeb9e1549a72f5.tar.gz
nvim-lspconfig-1ab0fdbf6e4efa61857ccdd3f4aeb9e1549a72f5.tar.bz2
nvim-lspconfig-1ab0fdbf6e4efa61857ccdd3f4aeb9e1549a72f5.tar.lz
nvim-lspconfig-1ab0fdbf6e4efa61857ccdd3f4aeb9e1549a72f5.tar.xz
nvim-lspconfig-1ab0fdbf6e4efa61857ccdd3f4aeb9e1549a72f5.tar.zst
nvim-lspconfig-1ab0fdbf6e4efa61857ccdd3f4aeb9e1549a72f5.zip
Makefile: add lint commant
-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
+