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 /cmake | |
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 'cmake')
-rw-r--r-- | cmake/RunLuacheck.cmake | 22 |
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() |