Skip to content

chore(sonar): exclude e2e + suppress go:S4036 PATH hotspots#8

Merged
aksOps merged 1 commit into
mainfrom
chore/sonar-tighten-exclusions
May 1, 2026
Merged

chore(sonar): exclude e2e + suppress go:S4036 PATH hotspots#8
aksOps merged 1 commit into
mainfrom
chore/sonar-tighten-exclusions

Conversation

@aksOps

@aksOps aksOps commented May 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds ui/e2e/** to sonar.exclusions — Playwright specs were inflating dup density (45% on create-session.spec.ts).
  • Suppresses Sonar rule go:S4036 ("Make sure the PATH variable only contains fixed, unwriteable directories") project-wide. Justification baked into the config: ctm is a CLI orchestrator that intentionally resolves user-installed tools (git, tmux, claude, gh) via $PATH; absolute paths aren't viable across macOS/Linux/Homebrew. Drops the 30 outstanding hotspots in one shot.

Expected effect on next main scan

  • security_hotspots: 30 → ~0
  • duplicated_lines_density: 1.8% → ~1.4% (drops e2e contribution)

🤖 Generated with Claude Code

Two narrow tightenings to cut Sonar noise:

- ui/e2e/** added to sonar.exclusions. Playwright specs are test
  scaffolding (own runner, fixtures, repeat boilerplate) and were
  showing up as ~45% duplicated source code, polluting the dup metric.
- go:S4036 (PATH variable usage) suppressed project-wide via
  sonar.issue.ignore.multicriteria. ctm is a CLI orchestrator that
  resolves user-installed tools (git, tmux, claude, gh) through \$PATH
  on whatever box it's running on; hardcoded absolutes aren't viable
  across macOS / Linux / Homebrew. Was firing on 30 lines without
  flagging a real risk.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented May 1, 2026

Copy link
Copy Markdown

@aksOps aksOps merged commit 39346d6 into main May 1, 2026
11 checks passed
@aksOps aksOps deleted the chore/sonar-tighten-exclusions branch May 1, 2026 08:30
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