Skip to content
Snippets Groups Projects
Commit 1806f9cd authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

devtools: rename analyze -> line-count

parent f8a16eb1
No related branches found
No related tags found
No related merge requests found
......@@ -3,12 +3,14 @@ set(WEB_LEN_LIM 85) # maximum line length of code for display in web docs
if(NOT MSVC)
set(LINECOUNT ${CMAKE_SOURCE_DIR}/devtools/line-count/check-line-length.py)
foreach(dir ${AllComponents})
file(GLOB_RECURSE src1 ${dir}/*.cpp)
file(GLOB_RECURSE src2 ${dir}/*.h)
add_test(NAME "LineLength.Cpp.${dir}"
COMMAND ${Python3_EXECUTABLE}
${CMAKE_SOURCE_DIR}/devtools/analyze/check-line-length.py ${SRC_LEN_LIM}
${LINECOUNT} ${SRC_LEN_LIM}
${src1} ${src2})
endforeach()
......@@ -16,12 +18,12 @@ if(NOT MSVC)
file(GLOB_RECURSE src1 ${dir}/*CMakeLists.txt)
add_test(NAME "LineLength.CMake.${dir}"
COMMAND ${Python3_EXECUTABLE}
${CMAKE_SOURCE_DIR}/devtools/analyze/check-line-length.py ${SRC_LEN_LIM}
${LINECOUNT} ${SRC_LEN_LIM}
${src1})
endforeach()
file(GLOB sources "${PY_EXAMPLES_DIR}/*/ex*/*.py")
add_test(NAME "LineLength.PyExamples" COMMAND ${Python3_EXECUTABLE}
${CMAKE_SOURCE_DIR}/devtools/analyze/check-line-length.py ${WEB_LEN_LIM} ${sources})
${LINECOUNT} ${WEB_LEN_LIM} ${sources})
endif()
File moved
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