Skip to content

fix: sonarqube issues - #67

Merged
gabrielfrasantos merged 2 commits into
mainfrom
feature/fix-sonarqube-coverage
Nov 8, 2025
Merged

fix: sonarqube issues#67
gabrielfrasantos merged 2 commits into
mainfrom
feature/fix-sonarqube-coverage

Conversation

@gabrielfrasantos

Copy link
Copy Markdown
Contributor

No description provided.

@gabrielfrasantos gabrielfrasantos linked an issue Nov 8, 2025 that may be closed by this pull request
@github-actions

github-actions Bot commented Nov 8, 2025

Copy link
Copy Markdown
Contributor

⚠️MegaLinter analysis: Success with warnings

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 5 0 0 0.27s
✅ CPP clang-format 108 1 0 0 0.47s
✅ CPP cppcheck 108 0 0 3.63s
✅ DOCKERFILE hadolint 1 0 0 0.3s
✅ JSON jsonlint 8 0 0 0.15s
✅ JSON prettier 8 8 0 0 0.48s
⚠️ MARKDOWN markdownlint 18 1 32 0 1.35s
✅ MARKDOWN markdown-table-formatter 18 1 0 0 0.23s
⚠️ SPELL lychee 89 19 0 1.85s
✅ YAML prettier 12 6 0 0 0.66s
✅ YAML yamllint 12 0 0 0.43s

Detailed Issues

⚠️ SPELL / lychee - 19 errors
[IGNORED] url.https://github.com/.insteadOf | Unsupported: Error creating request client: builder error for url (url.https://github.com/.insteadOf)
[ERROR] file://doc/analysis/doc/analysis/DctFlow.svg | Cannot find file
[ERROR] file://doc/analysis/doc/analysis/DctBasis.svg | Cannot find file
[ERROR] https://gitlab-ci-token/ | Network error: error sending request for url (https://gitlab-ci-token/) Maybe a certificate error?
[403] https://gitlab.com/embedded-library/infrastructure/hal-st.git | Network error: Forbidden
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/6 | Network error: Not Found
[403] https://gitlab.com/embedded-library/infrastructure/embedded-infra-lib.git | Network error: Forbidden
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/7 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/26 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/2 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/12 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/9 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/27 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/3 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/24 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/15 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/18 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/1 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/4 | Network error: Not Found
[403] https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$ | Network error: Forbidden
📝 Summary
---------------------
🔍 Total...........80
✅ Successful......52
⏳ Timeouts.........0
🔀 Redirected.......0
👻 Excluded.........8
❓ Unknown..........0
🚫 Errors..........19

Errors in doc/analysis/DiscreteCosineTransform.md
[ERROR] file://doc/analysis/doc/analysis/DctFlow.svg | Cannot find file
[ERROR] file://doc/analysis/doc/analysis/DctBasis.svg | Cannot find file

Errors in .gitlab-ci.yml
[403] https://gitlab.com/embedded-library/infrastructure/embedded-infra-lib.git | Network error: Forbidden
[403] https://gitlab.com/embedded-library/infrastructure/hal-st.git | Network error: Forbidden
[ERROR] https://gitlab-ci-token/ | Network error: error sending request for url (https://gitlab-ci-token/) Maybe a certificate error?

Errors in CHANGELOG.md
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/27 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/3 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/2 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/12 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/7 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/6 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/26 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/9 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/15 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/18 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/1 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/4 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/24 | Network error: Not Found

Errors in .github/workflows/static-analysis.yml
[403] https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$ | Network error: Forbidden
⚠️ MARKDOWN / markdownlint - 32 errors
doc/analysis/DiscreteCosineTransform.md:34 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/analysis/DiscreteCosineTransform.md:53 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/analysis/FastFourierTransform.md:9 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/analysis/FastFourierTransform.md:15 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/analysis/FastFourierTransform.md:42 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/analysis/FastFourierTransform.md:125 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/analysis/PowerDensitySpectrum.md:22 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/analysis/PowerDensitySpectrum.md:37 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/controllers/Pid.md:11 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/controllers/Pid.md:32 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/estimators/LinearRegression.md:24 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/estimators/LinearRegression.md:39 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/estimators/LinearRegression.md:247 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/estimators/LinearRegression.md:256 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/estimators/YuleWalker.md:26 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/estimators/YuleWalker.md:41 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/estimators/YuleWalker.md:47 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/estimators/YuleWalker.md:242 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/estimators/YuleWalker.md:250 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/estimators/YuleWalker.md:260 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/filters/active/KalmanFilter.md:9 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/filters/active/KalmanFilter.md:27 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/filters/active/KalmanFilter.md:35 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/filters/active/KalmanFilter.md:41 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/neural_network/NeuralNetwork.md:32 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/neural_network/NeuralNetwork.md:49 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/solvers/LevinsonDurbin.md:25 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/solvers/LevinsonDurbin.md:43 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/solvers/LevinsonDurbin.md:220 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/solvers/LevinsonDurbin.md:233 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
README.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "[![Quality Gate Status](https:..."]
README.md:9:401 MD013/line-length Line length [Expected: 400; Actual: 442]

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@9.1.0 --custom-flavor-setup --custom-flavor-linters ACTION_ACTIONLINT,CPP_CPPCHECK,CPP_CLANG_FORMAT,DOCKERFILE_HADOLINT,JSON_JSONLINT,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,SPELL_LYCHEE,YAML_PRETTIER,YAML_YAMLLINT

MegaLinter is graciously provided by OX Security

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modifies compiler optimization attributes and adds coverage target support to the build system.

  • Updates the OPTIMIZE_FOR_SPEED macro to use always_inline instead of flatten for GCC builds
  • Adds explicit always_inline attribute to the Clang version of the macro
  • Integrates code coverage target generation into the CMake build configuration

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
numerical/math/CompilerOptimizations.hpp Replaces flatten with always_inline for GCC and adds always_inline to Clang's optimization macro
CMakeLists.txt Adds emil_coverage_targets call to enable code coverage reporting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread numerical/math/CompilerOptimizations.hpp Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sonarqubecloud

sonarqubecloud Bot commented Nov 8, 2025

Copy link
Copy Markdown

@gabrielfrasantos
gabrielfrasantos merged commit 6079480 into main Nov 8, 2025
8 checks passed
@gabrielfrasantos
gabrielfrasantos deleted the feature/fix-sonarqube-coverage branch March 24, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix sonarqube coverage

2 participants