Hi, we have started using the SonarCloud service recently and are still tweaking the settings to make sure how to get the most out of the analysis without blocking our work too much. So far pretty good but still things pop up here and there that are really annoying.
This case is regarding code duplication. Overall I think it’s a great idea to have an option to prevent our PRs from being merged before code duplications are solved. However, sometimes code duplication are acceptable and even desirable. Below is a case like so. Its two data models that happen to share the same first part of the file in look, even though the
tableName does differ.
See screenshots below.
My suggestion (if there are no good existing solution to this problem) would be to make this an issue that can be ignored, just like most of the other problems the analysis finds out.
Please tell me you have an even better way to solve this problem, without us having to turn off the Merge blocker in BB for having code duplication.
- ALM used: Bitbucket Cloud
- CI system used: Bitbucket Cloud
- Potential workaround: Turn of the blocking feature
Why preventing new users from uploading multiple images, that just makes me spend more time having to arrange one screenshot of two windows (like above)?