- ALM used: GitHub
- CI system used: n/a, using GitHub actions for feedback
- Languages of the repository: C#, JS, HTML
We have a large codebase that (unfortunately) includes a lot of duplicated code, and I am looking for a specific piece of functionality that I hope Sonarcloud (or Sonarqube) can provide.
I see that Sonarcloud can provide PR feedback to indicate whether a PR creates code duplication. This is good, but it’s not what I’m looking for. I am hoping to be able to indicate on each PR whether it modifies a section of code that was already duplicated before the PR.
In other words, I’m looking for Sonar to provide a proactive “heads up” to say, “It looks like you modified some logic that is identical in 3 other places. You probably want to update those as well (or, even better, consolidate them.)”
Is there a way to configure Sonarcloud or Sonarqube to do this?