Skip to content

docs: SonarCloud whole-file re-attribution on wholesale refactors#88

Merged
CybotTM merged 1 commit into
mainfrom
docs-sonarcloud-refactor-reattribution
Jun 17, 2026
Merged

docs: SonarCloud whole-file re-attribution on wholesale refactors#88
CybotTM merged 1 commit into
mainfrom
docs-sonarcloud-refactor-reattribution

Conversation

@CybotTM

@CybotTM CybotTM commented Jun 16, 2026

Copy link
Copy Markdown
Member

What

Adds a SonarCloud Quality Gate Gotcha section to references/repo-setup-guide.md (the CI-checklists reference).

Why

A wholesale structural change to a file — e.g. converting a classic-script IIFE to an ES module — makes SonarCloud attribute the entire file as "new code". Every latent smell in it then counts against the new-code gate, so new_maintainability_rating can flip to D from a change that "only refactored", blocking the merge.

Hit for real: an IIFE→ES-module conversion surfaced 62 new-code smells (var S3504, cognitive complexity S3776, innerHTML) and forced a revert; the redo succeeded only by fixing all of them in the same change. The section recommends fixing-in-place over reverting (including innerHTMLDOMParser, which also clears the XSS hotspot) and shows how to list the blocking new-code smells via api/issues/search.

Kept in references/ (not SKILL.md) to respect the 500-word SKILL.md cap, and written without any credential-bearing command (gitleaks-clean).

Copilot AI review requested due to automatic review settings June 16, 2026 21:13
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot added documentation Improvements or additions to documentation skill labels Jun 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@CybotTM CybotTM force-pushed the docs-sonarcloud-refactor-reattribution branch from 4287377 to 5a8cf06 Compare June 17, 2026 05:30
@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Comment thread skills/github-project/SKILL.md Fixed
A wholesale structural change (IIFE→ES module, large class move) makes SonarCloud treat
the entire file as new code, so every latent smell counts against the new-code gate and
new_maintainability_rating can flip to D. Document it in the CI checklist reference: fix
all latent smells in the same change (var→const S3504, cognitive complexity S3776,
innerHTML→DOMParser) rather than reverting, and how to list the blocking new-code smells
via the api/issues/search endpoint. Kept in references/ (not SKILL.md) to respect the
500-word SKILL.md cap.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
@CybotTM CybotTM force-pushed the docs-sonarcloud-refactor-reattribution branch from 5a8cf06 to bb1203c Compare June 17, 2026 05:35
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@CybotTM CybotTM merged commit d005466 into main Jun 17, 2026
16 of 17 checks passed
@CybotTM CybotTM deleted the docs-sonarcloud-refactor-reattribution branch June 17, 2026 12:39
@CybotTM CybotTM mentioned this pull request Jun 18, 2026
CybotTM added a commit that referenced this pull request Jun 18, 2026
Release v2.15.2.

Bumps plugin.json + skill metadata version 2.15.1 → 2.15.2.

Content since v2.15.1:
- docs(repo-setup): SonarCloud whole-file re-attribution on wholesale
refactors (#88)
- ci: adopt canonical skill template (#87)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants