Skip to content
Snippets Groups Projects
Commit 6c9ea388 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

CheckCode scripts are excluded from Windows build

parent 11d57ea3
No related branches found
No related tags found
No related merge requests found
set(SRC_LEN_LIM 100) # maximum line length of code written by MLZ-SCG
if(NOT MSVC)
file(GLOB_RECURSE SRC1 "Core/*.cpp")
file(GLOB_RECURSE SRC2 "Core/*.h")
......@@ -7,3 +9,4 @@ add_test(NAME "CodeLineLength"
COMMAND ${PYTHON_EXECUTABLE}
${CMAKE_SOURCE_DIR}/dev-tools/analyze/count-line-length.py ${SRC_LEN_LIM}
${SRC1} ${SRC2})
endif()
......@@ -2,9 +2,13 @@ set(WEB_LEN_LIM 85) # maximum line length of code for display in Drupal web page
# Check whether the line length of all python examples remains below WEB_LEN_LIM
if(NOT MSVC)
file(GLOB PY_EXAMPLES "${PY_EXAMPLES_DIR}/*/ex*/*.py")
add_test(NAME "PyExamplesLineLength"
COMMAND ${PYTHON_EXECUTABLE}
${CMAKE_SOURCE_DIR}/dev-tools/analyze/count-line-length.py ${WEB_LEN_LIM}
${PY_EXAMPLES})
endif()
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