In short lived branches where lines changed are small, we can easily get a high percentage of code duplication if we add a Java equals(), hashCode() or toString() method. We fail our build, if SonarCloud fails, so developers are stuck. There are several ways around this:
- Increase code duplication percentage, but this allows for greater code duplication.
- Manually resolve as false positive, but that just trains developers to come bother me whenever they have a problem Plus, we have developers in different time zones, so they are stuck until I wake up.
- Ignore Java equals(), hashCode() and toString() methods. Is this possible?