-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(cli): multi reporters #8621
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
eb51b50
feat(cli): multi reporters
Netail e426ae4
revert code and refactor json reporter
ematipico 953962c
fix: refactors to apply multiple reporters
ematipico 6418390
add snapshots
ematipico 5d09acf
more cases and changeset
ematipico 721d41a
remove old changeset
ematipico 74998f2
fix snapshots creation
ematipico d21733e
Merge remote-tracking branch 'origin/next' into feat/multi-reporters
ematipico d7a1ae5
revert change
ematipico 85de0b0
Merge branch 'next' into feat/multi-reporters
ematipico 756045a
fix small regression for diagnostics limit
ematipico 6319e76
improve json printing using our parser and formatter
ematipico 573f111
address feedback
ematipico 9772d7c
more fixes
ematipico b7f8664
address linting
ematipico 8414775
Merge branch 'next' into feat/multi-reporters
ematipico 296740c
fix changeset
ematipico 687815e
fix changeset
ematipico f22d006
Apply suggestions from code review
ematipico File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Added support for multiple reporters, and the ability to save reporters on arbitrary files. | ||
|
|
||
| #### Combine two reporters in CI | ||
|
|
||
| If you run Biome on GitHub, take advantage of the reporter and still see the errors in console, you can now use both reporters: | ||
|
|
||
| ```shell | ||
| biome ci --reporter=default --reporter=github | ||
| ``` | ||
|
|
||
| #### Save reporter output to a file | ||
|
|
||
| With the new `--reporter-file` CLI option, it's now possible to save the output of all reporters to a file. The file is a path, | ||
| so you can pass a relative or an absolute path: | ||
|
|
||
| ```shell | ||
| biome ci --reporter=rdjson --reporter-file=/etc/tmp/report.json | ||
| biome ci --reporter=summary --reporter-file=./reports/file.txt | ||
| ``` | ||
|
|
||
| You can combine these two features. For example, have the `default` reporter written on terminal, and the `rdjson` reporter written on file: | ||
|
|
||
| ```shell | ||
| biome ci --reporter=default --reporter=rdjson --reporter-file=/etc/tmp/report.json | ||
| ``` | ||
|
|
||
| **The `--reporter` and `--reporter-file` flags must appear next to each other, otherwise an error is thrown.** |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.