Skip to content

sonar(S1192): String literals should not be duplicated - #285

Merged
Zafnok merged 2 commits into
mainfrom
sonar/s1192
Sep 29, 2026
Merged

Zafnok merged 2 commits into
mainfrom
sonar/s1192

Conversation

@Zafnok

@Zafnok Zafnok commented Sep 29, 2026

Copy link
Copy Markdown
Owner

Replaces the duplicated literals with private constants: LegacySide/ModernSide in CompareCommand, ModernSide in ReplayDriverFactory, False in MsBuildEvaluator. No behaviour change.

  • All 4 findings fixed (each re-verified at HEAD; none had evaporated).
  • Gate: left to CI, per equiv-quality-gates.
  • No pragma, coverage exclusion or gate change.

Closes #271

🤖 Generated with Claude Code

Zafnok and others added 2 commits September 28, 2026 20:35
Ticket: GH-271

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Removes the three copies of the legacy/modern driver step that Sonar counted as new-code duplication.

Ticket: GH-271

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@Zafnok
Zafnok merged commit bd8e379 into main Sep 29, 2026
18 checks passed
@Zafnok
Zafnok deleted the sonar/s1192 branch September 29, 2026 20:04
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.

sonar(S1192): String literals should not be duplicated

1 participant