Browse Source

change cpplint directory check

StalderT 6 years ago
parent
commit
86abbe2cd0
2 changed files with 7 additions and 11 deletions
  1. 7 0
      CMakeLists.txt
  2. 0 11
      tools/travis/travis_linux_script.sh

+ 7 - 0
CMakeLists.txt

@@ -719,7 +719,14 @@ add_dependencies(lint open62541)
 
 add_custom_target(cpplint cpplint
                   ${lib_sources}
+                  ${internal_headers}
+                  ${default_plugin_headers}
+                  ${default_plugin_sources}
                   DEPENDS ${lib_sources}
+                          ${internal_headers}
+                          ${default_plugin_headers}
+                          ${default_plugin_sources}
+
                   COMMENT "Run cpplint code style checker on the library")
 
 ##########################

+ 0 - 11
tools/travis/travis_linux_script.sh

@@ -18,17 +18,6 @@ if ! [ -z ${LINT+x} ]; then
 	cmake ..
 	make cpplint
 	if [ $? -ne 0 ] ; then exit 1 ; fi
-        cd ..
-        cpplint include/*.h
-	if [ $? -ne 0 ] ; then exit 1 ; fi
-        cpplint plugins/*.c
-	if [ $? -ne 0 ] ; then exit 1 ; fi
-        cpplint plugins/*.h
-	if [ $? -ne 0 ] ; then exit 1 ; fi
-        cpplint examples/*.c
-	if [ $? -ne 0 ] ; then exit 1 ; fi
-        cpplint examples/*.h
-	if [ $? -ne 0 ] ; then exit 1 ; fi
     exit 0
 fi