Skip to content

Commit 6746c40

Browse files
committed
Update dotnet format to clarify severity option usage
1 parent 9da6371 commit 6746c40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/core/tools/dotnet-format.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dotnet format [<PROJECT | SOLUTION>]
1818
[--binarylog <BINARY-LOG-PATH>] [--diagnostics <DIAGNOSTICS>]
1919
[--exclude <EXCLUDE>] [--exclude-diagnostics <EXCLUDE-DIAGNOSTICS>]
2020
[--include <INCLUDE>] [--include-generated]
21-
[--no-restore] [--report <REPORT-PATH>] [--severity <SEVERITY>]
21+
[--no-restore] [--report <REPORT-PATH>] [--severity <LEVEL>]
2222
[-v|--verbosity <LEVEL>] [--verify-no-changes] [--version]
2323
2424
dotnet format -h|--help
@@ -70,7 +70,7 @@ None of the options below are required for the `dotnet format` command to succee
7070

7171
Produces a JSON report in the directory specified by `<REPORT_PATH>`.
7272

73-
- **`--severity`**
73+
- **`--severity <LEVEL>`**
7474

7575
The minimum severity of diagnostics to fix. Allowed values are `info`, `warn`, and `error`. The default value is `warn`.
7676

@@ -118,7 +118,7 @@ The `dotnet format style` subcommand only runs formatting rules associated with
118118

119119
A space-separated list of diagnostic IDs to use as a filter when fixing code style issues. Default value is whichever IDs are listed in the *.editorconfig* file. For a list of built-in code style analyzer rule IDs that you can specify, see the [list of IDs for code-analysis style rules](../../fundamentals/code-analysis/style-rules/index.md).
120120

121-
- **`--severity`**
121+
- **`--severity <LEVEL>`**
122122

123123
The minimum severity of diagnostics to fix. Allowed values are `info`, `warn`, and `error`. The default value is `warn`
124124

@@ -136,7 +136,7 @@ The `dotnet format analyzers` subcommand only runs formatting rules associated w
136136

137137
A space-separated list of diagnostic IDs to use as a filter when fixing non code style issues. Default value is whichever IDs are listed in the *.editorconfig* file. For a list of built-in analyzer rule IDs that you can specify, see the [list of IDs for quality rules](../../fundamentals/code-analysis/quality-rules/index.md). For third-party analyzers refer to their documentation.
138138

139-
- **`--severity`**
139+
- **`--severity <LEVEL>`**
140140

141141
The minimum severity of diagnostics to fix. Allowed values are `info`, `warn`, and `error`. The default value is `warn`.
142142

0 commit comments

Comments
 (0)