Skip to content
Snippets Groups Projects
Commit 6b730e4f authored by Sergey Bronnikov's avatar Sergey Bronnikov Committed by Kirill Yukhin
Browse files

build: enable 'make luacheck' target


Part of #4681

Reviewed-by: default avatarIgor Munkin <imun@tarantool.org>
parent bb549629
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ find_program(CAT cat) ...@@ -23,6 +23,7 @@ find_program(CAT cat)
find_program(GIT git) find_program(GIT git)
find_program(LD ld) find_program(LD ld)
find_program(CTAGS ctags) find_program(CTAGS ctags)
find_program(LUACHECK luacheck ENV PATH)
# Define PACKAGE macro in tarantool/config.h # Define PACKAGE macro in tarantool/config.h
set(PACKAGE "Tarantool" CACHE STRING "Package name.") set(PACKAGE "Tarantool" CACHE STRING "Package name.")
...@@ -151,6 +152,16 @@ add_custom_target(tags COMMAND ${CTAGS} -R ${tagsExclude} -f tags ...@@ -151,6 +152,16 @@ add_custom_target(tags COMMAND ${CTAGS} -R ${tagsExclude} -f tags
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
add_custom_target(ctags DEPENDS tags) add_custom_target(ctags DEPENDS tags)
#
# Enable 'make luacheck' target.
#
add_custom_target(luacheck)
add_custom_command(TARGET luacheck
COMMAND ${LUACHECK} --codes --config "${PROJECT_SOURCE_DIR}/.luacheckrc" "${PROJECT_SOURCE_DIR}"
COMMENT "Perform static analysis of Lua code"
)
# #
# Get version # Get version
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment