-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
We have an issue which existed for a while, which is logged as which shows the issue is 24 days old:
RequestAccessMergeProcessor.java:432 | com.unisys.holmes2.h2ng.workflow.business.requestaccess | Metrics | JavaNCSSCheck | Normal | 24 |
In the next build, a change has been made to this file which moved this method to a new line, but the method remained unchanged. It is now logged as:
RequestAccessMergeProcessor.java:434 | com.unisys.holmes2.h2ng.workflow.business.requestaccess | Metrics | JavaNCSSCheck | Normal | 1 |
Are the new issues identified by line number or the line of code? The latter would be better as it is not a new issue even though it has moved lines.
This issue is a check style issue but this probably applies to all plugins.
- duplicates
-
JENKINS-6675 Invalid number of new warnings detected
-
- Open
-
- relates to
-
JENKINS-5935 Improve equals method for warnings
-
- Open
-
The comparison is using a two pass algorithm: in the first pass the properties of the warning are compared. If one property differs (e.g., line number) then this warning is moved to a second pass. In the second pass, the actual code is compared. This is currently done by checking the context above and below the warning (5 lines). Did the content (or whitespace) in the surrounding lines change?