Repository navigation
Qodana - #23
Qodana#23
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The Qodana configuration uses image instead of the required linter key, leaving the intended PHP scanner unconfigured because the workflow provides no image argument.
1 open issue
What changed in this PR
Adds optional Qodana inspections alongside the module’s existing quality checks.
Changes:
- Adds a token-gated workflow for pull requests, selected pushes, and manual runs.
- Configures PHP analysis and scan exclusions.
- Documents setup and keeps Qodana artifacts out of version control and releases.
| File | Description |
|---|---|
| README.md | Introduces the optional Qodana workflow. |
| qodana.yaml | Defines the scanner, profile, PHP level, and exclusions. |
| docs/QODANA.md | Documents setup, scope, and maintenance. |
| .gitignore | Ignores local Qodana results and caches. |
| .github/workflows/qodana.yml | Adds token-gated scans and report uploads. |
| .gitattributes | Excludes Qodana files from release archives. |
Review effort: Balanced
| @@ -0,0 +1,22 @@ | |||
| version: "1.0" | |||
|
|
|||
| image: jetbrains/qodana-php:2026.2 | |||
Reviewer's GuideConfigurationConfigure the optional Qodana workflow and PHP analysis scope, including the repository-file handling needed for the setup.
DocumentationDocument how to enable Qodana, interpret its scope, and maintain the setup.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. The workflow passes QODANA_TOKEN to the scanner while checking out pull-request code; a PR-controlled Qodana configuration could run a bootstrap command that exposes the token. Reverting stops future scans but cannot recover a token already disclosed, so it would need to be revoked.
Confidence Score: 4/5
[Medium impact] The PR adds an optional analysis workflow that can send scan results to Qodana Cloud. The PR appears safe to merge, with non-blocking documentation and scan-scope fixes. FindingsSummaryAdds an optional, token-gated Qodana workflow and a PHP 8.2 inspection profile.
Reviews (1) · Last reviewed commit: "Qodana" · Reviewed by Greptile |
| # Qodana development configuration | ||
| /.qodana export-ignore | ||
| /qodana.yaml export-ignore | ||
| /docs/QODANA.md export-ignore |
There was a problem hiding this comment.
| development tools. Keep normal tests and quality tools in the shared | ||
| `xoops_lib/vendor` installation. |
There was a problem hiding this comment.
Setup advice conflicts with checks
The guide tells developers to keep normal tests and quality tools in xoops_lib/vendor, but this repository runs them from a module-local Composer installation. phpstan.neon.dist also loads rules from relative vendor/ paths. Following this advice can leave existing checks unable to find their required files. Limit the advice to Qodana and keep the module-local setup for existing checks.
| development tools. Keep normal tests and quality tools in the shared | |
| `xoops_lib/vendor` installation. | |
| development tools. Existing tests and quality checks still use the module-local | |
| Composer installation; run `composer install` from the module root for those checks. |
| - vendor | ||
| - node_modules | ||
| - .build | ||
| - .qodana | ||
| - coverage | ||
| - docs/00 | ||
| - templates_c | ||
| - uploads |
There was a problem hiding this comment.
The exclusions omit generated browser files under assets/, including assets/dist, while the guide says generated output is excluded. These files are copied from PHP DebugBar or mirrored from assets-custom/. Scanning them adds third-party and duplicate findings against files developers should not edit. Exclude the generated paths while keeping module-owned files in scope.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Summary by Sourcery
Add optional Qodana inspections alongside the project's existing quality checks.
New Features:
CI:
Documentation:
Chores: