Skip to content
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

Json baseline formatter #8921

Closed
wants to merge 1 commit into from
Closed

Conversation

jack-worman
Copy link
Contributor

@jack-worman jack-worman commented Dec 17, 2022

I just think JSON is much easier to read and work with.
And not including occurrences will lead to smaller diffs, which is important for my team, as our baseline is constantly being updated.

TODO: document new cli option

@jack-worman jack-worman marked this pull request as draft December 17, 2022 21:10
@jack-worman jack-worman force-pushed the json_baseline branch 2 times, most recently from 6383971 to e6d6e39 Compare December 18, 2022 16:02
@jack-worman jack-worman marked this pull request as ready for review December 18, 2022 16:05
@orklah
Copy link
Collaborator

orklah commented Dec 18, 2022

And not including occurrences will lead to smaller diffs, which is important for my team, as our baseline is constantly being updated.

What do you mean by that? Number of occurences is an important part of the baseline when there is no snippet to register, you can't just drop those?

@jack-worman
Copy link
Contributor Author

jack-worman commented Dec 18, 2022

What do you mean by that? Number of occurrences is an important part of the baseline when there is no snippet to register, you can't just drop those?

I removed the part of the code that didn't include the selection if it had a line break in it. So, the number of selections always equals occurrences. Are there other reasons for a selection to not be included?
ErrorBaseline::countIssueTypesByFile() is the relevant method.

@jack-worman
Copy link
Contributor Author

Closing in favor of #8967

@jack-worman jack-worman deleted the json_baseline branch December 22, 2022 14:24
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.

None yet

2 participants