Skip to content

Conversation

@ErikBrendel
Copy link

I want to help developers find cleaner / simpler solutions for resolving the issue flagged by this rule. Often, the underlying problem is not just string literal repetition, but actual code repetition, and extracting a function might help better than to just extract a constant.

With this example code, hopefully developers will easier find these solutions.

Suggest a cleaner way of preventing string duplications
@nils-werner-sonarsource
Copy link
Contributor

@ErikBrendel thank you for your idea and contribution. I've opened a PR in the repository that contains the raw data for the rule description: RSPEC

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.

2 participants