feat: add SonarQube workflow template for PHP/Drupal#7
feat: add SonarQube workflow template for PHP/Drupal#7MichaelFisher1997 merged 1 commit intomainfrom
Conversation
- Add sonarqube.yml workflow with self-hosted SonarQube scan - Add sonar-project.properties configuration template - Includes SARIF export to GitHub Security Tab - Update registry to discover .properties files - Allow metadata.id to override derived workflow ID
📋 SummaryNo linked issues found in PR description. This PR adds a comprehensive SonarQube workflow template for PHP/Drupal projects, including a GitHub Actions workflow with SARIF export and a properties configuration file. It also extends the registry to support 🔴 Critical Issues (Must Fix - Blocks Merge)None identified
|
| Principle | Score | Notes |
|---|---|---|
| Single Responsibility | 9 | Workflow file, config file, and registry changes each have clear, focused purposes |
| Open/Closed | 8 | Registry extended to support .properties without modifying existing logic extensively |
| Liskov Substitution | 9 | New files follow existing workflow patterns; no inheritance issues |
| Interface Segregation | 9 | Metadata blocks are focused and don't force unused fields |
| Dependency Inversion | 8 | Registry depends on abstractions; workflow depends on external actions via interfaces |
| Average | 8.6 |
🎯 Final Assessment
Overall Confidence Score: 85%
Confidence Breakdown:
- Code Quality: 90% (clean implementation, follows conventions)
- Completeness: 85% (minor gap in
.propertiesextension handling) - Risk Level: 80% (low risk but potential for ID collisions)
- Test Coverage: 85% (existing tests pass, but edge case in grouping not covered)
Merge Readiness:
- All critical issues resolved
- SOLID average score >= 6.0 (8.6 achieved)
- Overall confidence >= 60% (85% achieved)
- No security concerns
- Tests present and passing (30 existing tests pass)
Verdict:
MERGE WITH FIXES
The PR is well-implemented and follows established patterns. Fix the .properties extension handling in groupByBaseName (lines 307, 310) before merging to ensure proper file grouping. The ID collision warning is optional but recommended for robustness.

Summary
Adds SonarQube workflow template for PHP/Drupal projects.
Changes
sonarqube.yml - Self-hosted SonarQube scan workflow with:
SONAR_TOKEN,SONAR_HOST_URLsonar-project.properties - PHP/Drupal configuration template:
web/modules/custom,web/themes/custom)Registry updates:
.propertiesfiles alongside.yml/.yamlidfield now overrides derived workflow IDTesting