-
Notifications
You must be signed in to change notification settings - Fork 5
Issue #102: add support for sarif reports #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Items
src/test/java/org/checkstyle/autofix/recipe/AbstractRecipeTestSupport.java
Outdated
Show resolved
Hide resolved
| } | ||
|
|
||
| private int getColumn(Region region) { | ||
| int result = -1; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good enough
Issue #102