You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`0`| All matched files are formatted; or no supported files matched, but [`--no-error-on-unmatched-pattern`](#--no-error-on-unmatched-pattern) was specified.|
49
+
|`1`| One or more matched files have formatting issues. |
50
+
|`2`|`rs fmt` could not run or encountered a formatting error. |
51
51
52
52
### `-h, --help`
53
53
@@ -97,6 +97,16 @@ rs fmt . --list-different
97
97
98
98
The option uses the same exit codes as `--check` and cannot be combined with `--write` or `--check`.
99
99
100
+
### `--no-error-on-unmatched-pattern`
101
+
102
+
Exit successfully without diagnostics when no supported files match the provided paths or globs, including when all matching files are ignored:
For example, a pre-commit script may always run `rs fmt`, even when the staged changes contain no supported files. This option lets the command exit successfully in that case instead of blocking the commit.
109
+
100
110
### `--parallel-workers <count>`
101
111
102
112
Set the maximum number of formatting workers to a positive integer:
0 commit comments