aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-07-04 05:30:16 +0200
committerDaniel Hahler <git@thequod.de>2019-07-04 12:29:54 +0200
commit32361a1245d1584ae074702aa645bc20e353f787 (patch)
tree66043fdb5d8e280f85de2552bbb72cc700e612f0 /cmake
parent571b2c5e7be105d23ada987a7c7080f8631bfd15 (diff)
downloadrneovim-32361a1245d1584ae074702aa645bc20e353f787.tar.gz
rneovim-32361a1245d1584ae074702aa645bc20e353f787.tar.bz2
rneovim-32361a1245d1584ae074702aa645bc20e353f787.zip
Improve luacheck setup [skip appveyor]
- Move .luacheckrc to root, add read_globals=vim - Simplify lualint target, run it on all lua files - Lint preload.lua, but ignore W211 - Remove testlint target, included in lualint (and lint) - Clean up .luacheckrc
Diffstat (limited to 'cmake')
-rw-r--r--cmake/RunLuacheck.cmake22
1 files changed, 0 insertions, 22 deletions
diff --git a/cmake/RunLuacheck.cmake b/cmake/RunLuacheck.cmake
deleted file mode 100644
index 4887e562a5..0000000000
--- a/cmake/RunLuacheck.cmake
+++ /dev/null
@@ -1,22 +0,0 @@
-set(LUACHECK_ARGS -q "${LUAFILES_DIR}")
-if(DEFINED IGNORE_PATTERN)
- list(APPEND LUACHECK_ARGS --exclude-files "${LUAFILES_DIR}/${IGNORE_PATTERN}")
-endif()
-if(DEFINED CHECK_PATTERN)
- list(APPEND LUACHECK_ARGS --include-files "${LUAFILES_DIR}/${CHECK_PATTERN}")
-endif()
-if(DEFINED READ_GLOBALS)
- list(APPEND LUACHECK_ARGS --read-globals "${READ_GLOBALS}")
-endif()
-
-execute_process(
- COMMAND "${LUACHECK_PRG}" ${LUACHECK_ARGS}
- WORKING_DIRECTORY "${LUAFILES_DIR}"
- ERROR_VARIABLE err
- RESULT_VARIABLE res
-)
-
-if(NOT res EQUAL 0)
- message(STATUS "Output to stderr:\n${err}")
- message(FATAL_ERROR "Linting tests failed with error: ${res}")
-endif()