Skip to content

Commit

Permalink
style: pre-commit.ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 23, 2024
1 parent 3cf459c commit 20f2a1b
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions cmake/CodeCoverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ function(setup_target_for_coverage_lcov)
${Coverage_LCOV_ARGS}
--gcov-tool
${GCOV_PATH}
--ignore-errors mismatch
--ignore-errors
mismatch
-directory
.
-b
Expand All @@ -282,7 +283,8 @@ function(setup_target_for_coverage_lcov)
${Coverage_LCOV_ARGS}
--gcov-tool
${GCOV_PATH}
--ignore-errors mismatch
--ignore-errors
mismatch
-c
-i
-d
Expand Down Expand Up @@ -318,7 +320,8 @@ function(setup_target_for_coverage_lcov)
${Coverage_NAME}.base
-a
${Coverage_NAME}.capture
--ignore-errors mismatch
--ignore-errors
mismatch
--output-file
${Coverage_NAME}.total)
# filter collected data to final coverage report
Expand All @@ -327,15 +330,23 @@ function(setup_target_for_coverage_lcov)
${Coverage_LCOV_ARGS}
--gcov-tool
${GCOV_PATH}
--ignore-errors mismatch
--ignore-errors
mismatch
--remove
${Coverage_NAME}.total
${LCOV_EXCLUDES}
--output-file
${Coverage_NAME}.info)
# Generate HTML output
set(LCOV_GEN_HTML_CMD ${GENHTML_PATH} ${GENHTML_EXTRA_ARGS} --ignore-errors mismatch ${Coverage_GENHTML_ARGS} -o
${Coverage_NAME} ${Coverage_NAME}.info)
set(LCOV_GEN_HTML_CMD
${GENHTML_PATH}
${GENHTML_EXTRA_ARGS}
--ignore-errors
mismatch
${Coverage_GENHTML_ARGS}
-o
${Coverage_NAME}
${Coverage_NAME}.info)
if(${Coverage_SONARQUBE})
# Generate SonarQube output
set(GCOVR_XML_CMD
Expand Down

0 comments on commit 20f2a1b

Please sign in to comment.