Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds Qodana static analysis to the CI workflow and optimizes the static analysis configuration by limiting when it runs and what it analyzes.
Key changes:
- Restricts static analysis workflow to only run on changes in
src/,examples/, andhw/bsp/directories - Adds a new Qodana static analysis job that scans the
mimxrt1060_evkboard example - Excludes external dependencies (
lib/**,hw/mcu/**,test/**) from SonarQube analysis
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/static_analysis.yml |
Adds path filters to reduce unnecessary CI runs and introduces a new Qodana scanning job |
sonar-project.properties |
Excludes external dependencies and test directories from SonarQube analysis |
| - name: 'Qodana Scan' | ||
| uses: JetBrains/qodana-action@v2025.2 | ||
| with: | ||
| args: --image,jetbrains/qodana-clang:2025.2-eap # Community version |
There was a problem hiding this comment.
The args parameter uses comma separators ('--image,jetbrains/qodana-clang:2025.2-eap') which is non-standard YAML syntax. According to Qodana action documentation, this should be a proper YAML list. Use standard YAML list syntax: args: | with newline-separated arguments or args: ['--image', 'jetbrains/qodana-clang:2025.2-eap'].
| args: --image,jetbrains/qodana-clang:2025.2-eap # Community version | |
| args: ['--image', 'jetbrains/qodana-clang:2025.2-eap'] # Community version |
💡 Codex Reviewtinyusb/.github/workflows/static_analysis.yml Lines 254 to 258 in cec8661 The new Qodana job runs for both ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
fix compiling with nuc family
|


This pull request introduces improvements to static analysis workflow configuration, compiler warning management, and code hygiene across the project. The main changes include refining the GitHub Actions workflow to run static analysis only on relevant files, restructuring how compiler warnings are set for TinyUSB and example sources, and cleaning up legacy or redundant code. Additionally, there are targeted updates to suppress specific compiler warnings and minor code style improvements.
Workflow and CI improvements:
.github/workflows/static_analysis.ymlto trigger static analysis only on changes to relevant source and configuration files, added concurrency control to prevent overlapping runs, and refined branch targeting for both push and pull request events.Compiler warning management:
family_add_default_example_warningsfunction inhw/bsp/family_support.cmakewith a new implementation inhw/bsp/rp2040/family.cmake. The new version applies warning flags directly to TinyUSB interface sources and example sources, with filtering to exclude third-party libraries, and sets appropriate warning and linker options based on GCC version. [1] [2]-Wredundant-declsand-Wmissing-prototypesinhw/bsp/family_support.cmaketo strengthen static analysis during builds.Warning suppression and code hygiene:
hw/bsp/rp2040/family.cmake, removing redundant or version-specific suppression logic.-Wsign-conversionwarnings forsrc/portable/raspberrypi/pio_usb/hcd_pio_usb.cusing GCC diagnostic pragmas, improving build cleanliness without affecting other files.Miscellaneous improvements:
sonar-project.properties) to focus code quality metrics on project-owned code.get_bootsel_buttonfunction inhw/bsp/rp2040/family.cstatic to limit its scope and prevent unintended external linkage.