Skip to content

Commit 46a12c6

Browse files
committedMar 21, 2025·
docs(linter): tell about junit --format options (#9931)
1 parent bfb416c commit 46a12c6

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed
 

‎apps/oxlint/src/command/lint.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ pub struct WarningOptions {
193193
/// Output
194194
#[derive(Debug, Clone, Bpaf)]
195195
pub struct OutputOptions {
196-
/// Use a specific output format (default, json, unix, checkstyle, github, stylish)
196+
/// Use a specific output format. Possible values:
197+
/// `checkstyle`, `default`, `github`, `json`, `junit`, `stylish`, `unix`
197198
#[bpaf(long, short, fallback(OutputFormat::Default), hide_usage)]
198199
pub format: OutputFormat,
199200
}

‎tasks/website/src/linter/snapshots/cli.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Arguments:
110110

111111
## Output
112112
- **`-f`**, **`--format`**=_`ARG`_ —
113-
Use a specific output format (default, json, unix, checkstyle, github, stylish)
113+
Use a specific output format. Possible values: `checkstyle`, `default`, `github`, `json`, `junit`, `stylish`, `unix`
114114

115115

116116

‎tasks/website/src/linter/snapshots/cli_terminal.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ Handle Warnings
6767
your project
6868

6969
Output
70-
-f, --format=ARG Use a specific output format (default, json, unix, checkstyle, github,
71-
stylish)
70+
-f, --format=ARG Use a specific output format. Possible values: `checkstyle`,
71+
`default`, `github`, `json`, `junit`, `stylish`, `unix`
7272

7373
Miscellaneous
7474
--silent Do not display any diagnostics

0 commit comments

Comments
 (0)
Please sign in to comment.