Skip to content

sonarscanner-dotnet: apply sonar-exclusions and rename existing args to align defaults - #242

Open
aahmed-dfe wants to merge 3 commits into
DFE-Digital:masterfrom
aahmed-dfe:aa/analysis-exclusions-sonar
Open

sonarscanner-dotnet: apply sonar-exclusions and rename existing args to align defaults#242
aahmed-dfe wants to merge 3 commits into
DFE-Digital:masterfrom
aahmed-dfe:aa/analysis-exclusions-sonar

Conversation

@aahmed-dfe

@aahmed-dfe aahmed-dfe commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Context

sonarscanner-dotnet already exposes exclusion for coverage, but it does not expose excluding files for analysis. On EducationProviderRegistry we consume external govuk-frontend and other css bundles. These css bundles can have scan violations that we do not control as observed DFE-Digital/education-provider-registry-web#56 (comment).

We may write custom quality-gate rules to tune these violations out, but exclusion of external assets should be possible.

Changes proposed in this pull request

This PR exposes the sonarscan-exclusions input to the workflow, similar to coverage-exclusions.

Guidance to review

Can be consumed from fork and applied.

Tested here DFE-Digital/education-provider-registry-web@b1a1f6f

Checklist

  • I have performed a self-review of my code, including formatting and typos
  • I have cleaned the commit history
  • I have added the Devops label
  • I have attached the pull request to the trello card

@aahmed-dfe aahmed-dfe changed the title apply sonar-exclusions and rename existing args to align defaults sonarscanner-dotnet: apply sonar-exclusions and rename existing args to align defaults Jul 29, 2026
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.

1 participant