mirror of
https://github.com/open62541/open62541.git
synced 2025-06-03 04:00:21 +00:00
change cpplint directory check
This commit is contained in:
parent
c586ad73f5
commit
86abbe2cd0
@ -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")
|
||||
|
||||
##########################
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user