Skip to content

Conversation

kdudka
Copy link
Member

@kdudka kdudka commented Apr 1, 2022

This is a work in progress. The actual writer is not yet implemented.

@kdudka kdudka changed the title csgrep --mode=sarif: use SARIF output format csgrep --mode=sarif: use SARIF output format [WIP] Apr 1, 2022
... that make-srpm.sh uses while it creates a source RPM
@kdudka kdudka force-pushed the sarif branch 7 times, most recently from 7293b71 to ef28f13 Compare April 7, 2022 13:37
@kdudka kdudka changed the title csgrep --mode=sarif: use SARIF output format [WIP] add support for the SARIF data format Apr 7, 2022
@kdudka
Copy link
Member Author

kdudka commented Apr 7, 2022

The code slowly starts to work and does not obviously break anything that originally worked. So I would prefer to merge it as it is and continue with further tweaks of the encoder/decoder in separate pull requests. @lzaoral What do you think about this approach? It would help to avoid unnecessary conflicts with the other changes you are working on.

@kdudka kdudka marked this pull request as ready for review April 7, 2022 15:16
@kdudka
Copy link
Member Author

kdudka commented Apr 12, 2022

Thanks for review! I have updated the pull request to reflect the review comments.

@kdudka kdudka requested a review from lzaoral April 12, 2022 12:54
Copy link
Member

@lzaoral lzaoral left a comment

Choose a reason for hiding this comment

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

Thanks a lot, @kdudka! I think the PR is ready to be merged after the two remaining comments are addressed.

The writer is not yet implemented, only the output format switch.

Closes: csutils#39
kdudka added a commit to kdudka/csdiff that referenced this pull request Apr 13, 2022
kdudka added a commit to kdudka/csdiff that referenced this pull request Apr 13, 2022
kdudka added a commit to kdudka/csdiff that referenced this pull request Apr 13, 2022
@kdudka
Copy link
Member Author

kdudka commented Apr 13, 2022

Thanks for review! Ale review comments should be addressed and fix-up commits squashed.

Copy link
Member

@lzaoral lzaoral left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks, @kdudka!

kdudka added 7 commits April 13, 2022 13:27
... as an abstraction over various tree formats

No changes in behavior intended by this commit.
The original fix worked only for lines ending with ','.
... as a placeholder for SARIF 2.1.0 writer
No changes in behavior intended by this commit.
... from csparser.cc

No changes in behavior intended by this commit.
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