Skip to content

Omit invalid end lines from the generated report

James Liu requested to merge jliu-remove-invalid-newlines into master

What does this MR do?

Certain combinations of method annotations can cause Spotbugs to produce a finding whose end line comes before its start line.

In addition to being semantically invalid, these findings can cause downstream problems during report optimisation. The optimisation logic requires the end line to come after the start line, and will halt otherwise. This means that users' CI jobs can fail if report optimisation is enabled (as it is by default), and their project happens to contain the right combination of annotations to trigger this bug with Spotbugs.

An upstream issue has been filed (https://github.com/spotbugs/spotbugs/issues/2279).

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by Lucas Charles

Merge request reports