-
-
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
Changes from 15 commits
eb51b50
e426ae4
953962c
6418390
5d09acf
721d41a
74998f2
d21733e
d7a1ae5
85de0b0
756045a
6319e76
573f111
9772d7c
b7f8664
8414775
296740c
687815e
f22d006
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| --- | ||
| "@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 erros 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. Form example, have the `default` reporter written on terminal, and the `rdjson` reporter written on file: | ||
|
ematipico marked this conversation as resolved.
Outdated
|
||
|
|
||
| ```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.** | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mismatched emphasis markers and grammar issue Single -*The `--reporter` and `--reporter-file` flags must appear next to each other, otherwise an error is thrown.**
+**The `--reporter` and `--reporter-file` flags must appear next to each other; otherwise, an error is thrown.**🧰 Tools🪛 LanguageTool[typographical] ~31-~31: The word “otherwise” is an adverb that can’t be used like a conjunction, and therefore needs to be separated from the sentence. (THUS_SENTENCE) 🤖 Prompt for AI Agents |
||
|
|
||
|
|
||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.