[CA-10577] Set up SonarQube code analysis - #32
Open
jediknight112 wants to merge 2 commits into
Open
Conversation
Adds SonarQube static-analysis coverage for example-sage-theme to satisfy the Engineering Excellence SonarQube check. - sonar-project.properties with the project key assigned by Security (wpengine_example-sage-theme_c16e3095-fcf4-41b8-b8b7-d60c822888f4). Sources scoped to wp-content/ (the Sage theme code). No sonar.language so PHP + JS/TS are auto-detected. Excludes vendored deps (node_modules/, vendor/) and TechDocs (docs/). - .github/workflows/sonar.yaml is the upstream augmented workflow fetched verbatim from wpengine/ai-github-tools (docs/examples/github-actions/sonar.yaml). Runs the SonarQube scan and quality gate on pushes to main and all PRs, and adds a Claude Code remediation step that posts SonarQube findings as PR comments.
jediknight112
marked this pull request as ready for review
August 13, 2026 19:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Configures SonarQube static-analysis coverage for
example-sage-themeto satisfy the Engineering Excellence SonarQube check (CA-10577).sonar-project.properties— project keywpengine_example-sage-theme_c16e3095-fcf4-41b8-b8b7-d60c822888f4(assigned by Security). Sources scoped towp-content/(the Sage theme code).sonar.languageis intentionally omitted so PHP + JS/TS are auto-detected. Excludes vendored deps (node_modules/,vendor/) and TechDocs source (docs/)..github/workflows/sonar.yaml— the augmented workflow fetched verbatim fromwpengine/ai-github-tools. Runs the SonarQube scan + quality gate on pushes tomainand on all PRs (including Dependabot), and posts SonarQube findings as PR comments via a Claude Code remediation step.Test plan
SonarQube Main Workflow / sonarqubejob runs and passes on this PRsonarqubeandSonarQube Code Analysisas required status checks onmain(currently none set; strict is on)References
🤖 Generated with Claude Code