Skip to content

Conversation

@rdiachenko
Copy link
Member

Issue #102

  • add support for sarif reports, so the autofix module automatically detects report type based on the violation report extension
  • extend testing framework to run recipe tests against both xml and sarif reports

@rdiachenko rdiachenko marked this pull request as ready for review October 23, 2025 19:52
Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Items

}

private int getColumn(Region region) {
int result = -1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we do optional? Not a magic "-1".
We can make all optional if we think we can not trust structure of file

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

column is the only thing, which should be optional. I still default to -1 within the CheckstyleViolation, since xml parser also uses this default

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If value is present as -1 in report, it is present there.

Optional here would be good if report doesn't have such key/value at all, it is json and all of them are optional fields.
So our model will just reflect json nature.

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good enough

@romani romani merged commit a0ae57d into checkstyle:main Oct 25, 2025
3 checks passed
@rdiachenko rdiachenko deleted the rd-sarif branch October 25, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants