Skip to content

Commit

Permalink
Fixing EXCLUDE consistency and filtering in cpplint
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrton04 committed Mar 8, 2024
1 parent 2d4f46c commit 24e2cd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ament_cmake_cpplint/cmake/ament_cpplint.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# @public
#
function(ament_cpplint)
cmake_parse_arguments(ARG "" "EXCLUDE;MAX_LINE_LENGTH;ROOT;TESTNAME;TIMEOUT" "FILTERS" ${ARGN})
cmake_parse_arguments(ARG "" "MAX_LINE_LENGTH;ROOT;TESTNAME;TIMEOUT" "FILTERS;EXCLUDE" ${ARGN})
if(NOT ARG_TESTNAME)
set(ARG_TESTNAME "cpplint")
endif()
Expand All @@ -51,7 +51,7 @@ function(ament_cpplint)
endif()
if(ARG_FILTERS)
string(REPLACE ";" "," filters "${ARG_FILTERS}")
list(APPEND cmd "--filters=${filters}")
list(APPEND cmd "--filter=${filters}")
endif()
if(ARG_MAX_LINE_LENGTH)
list(APPEND cmd "--linelength" "${ARG_MAX_LINE_LENGTH}")
Expand Down
2 changes: 1 addition & 1 deletion ament_cmake_flake8/cmake/ament_flake8.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
# @public
#
function(ament_flake8)
cmake_parse_arguments(ARG "" "EXCLUDE;MAX_LINE_LENGTH;TESTNAME;CONFIG_FILE" "" ${ARGN})
cmake_parse_arguments(ARG "" "MAX_LINE_LENGTH;TESTNAME;CONFIG_FILE" "EXCLUDE" ${ARGN})
if(NOT ARG_TESTNAME)
set(ARG_TESTNAME "flake8")
endif()
Expand Down

0 comments on commit 24e2cd6

Please sign in to comment.