change cpplint directory check

This commit is contained in:
StalderT 2018-01-27 09:28:15 +01:00 committed by Stefan Profanter
parent c586ad73f5
commit 86abbe2cd0
2 changed files with 7 additions and 11 deletions

View File

@ -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")
##########################

View File

@ -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