diff options
author | Daniel Hahler <git@thequod.de> | 2019-07-04 15:21:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-04 15:21:44 +0200 |
commit | 5835398152b3584b381dcce751b4a53ae634c4d2 (patch) | |
tree | 327ce2688321a814e8df96fdcce26a5fe72cfaca /test | |
parent | f668f0afb24782aab36c8538f78823598c1f11e3 (diff) | |
parent | 32361a1245d1584ae074702aa645bc20e353f787 (diff) | |
download | rneovim-5835398152b3584b381dcce751b4a53ae634c4d2.tar.gz rneovim-5835398152b3584b381dcce751b4a53ae634c4d2.tar.bz2 rneovim-5835398152b3584b381dcce751b4a53ae634c4d2.zip |
Merge pull request #10414 from blueyed/luacheck
Improve luacheck integration, fix more issues.
Diffstat (limited to 'test')
-rw-r--r-- | test/.luacheckrc | 20 | ||||
-rw-r--r-- | test/README.md | 4 |
2 files changed, 1 insertions, 23 deletions
diff --git a/test/.luacheckrc b/test/.luacheckrc deleted file mode 100644 index abfa881754..0000000000 --- a/test/.luacheckrc +++ /dev/null @@ -1,20 +0,0 @@ --- vim: ft=lua tw=80 - --- Don't report globals from luajit or busted (e.g. jit.os or describe). -std = '+luajit +busted' - --- One can't test these files properly; assume correctness. -exclude_files = { '*/preload.lua' } - --- Don't report unused self arguments of methods. -self = false - --- Rerun tests only if their modification time changed. -cache = true - -ignore = { - "631", -- max_line_length -} - --- Ignore whitespace issues in converted Vim legacy tests. ---files["functional/legacy"] = {ignore = { "611", "612", "613", "621" }} diff --git a/test/README.md b/test/README.md index c87f835f79..903e93e495 100644 --- a/test/README.md +++ b/test/README.md @@ -208,8 +208,6 @@ Guidelines [contained in an `it()` block](https://github.com/neovim/neovim/blob/d21690a66e7eb5ebef18046c7a79ef898966d786/test/functional/ex_cmds/grep_spec.lua#L11). Provide empty function argument if the `pending()` call is outside of `it()` ([example](https://github.com/neovim/neovim/commit/5c1dc0fbe7388528875aff9d7b5055ad718014de#diff-bf80b24c724b0004e8418102f68b0679R18)). -- Use `make testlint` for using the shipped luacheck program ([supported by syntastic](https://github.com/scrooloose/syntastic/blob/d6b96c079be137c83009827b543a83aa113cc011/doc/syntastic-checkers.txt#L3546)) - to lint all tests. - Really long `source([=[...]=])` blocks may break syntax highlighting. Try `:syntax sync fromstart` to fix it. @@ -235,7 +233,7 @@ by the semantic component they are testing. Lint ==== -`make lint` (and `make testlint`) runs [luacheck](https://github.com/mpeterv/luacheck) +`make lint` (and `make lualint`) runs [luacheck](https://github.com/mpeterv/luacheck) on the test code. If a luacheck warning must be ignored, specify the warning code. Example: |