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.|
Each file acts as a separate ignore source. See [Ignore order](../formatting#ignore-order) for how these sources combine with `.gitignore`, default ignore rules, and `ignorePatterns`.
89
89
90
+
### `--ignore-unknown`
91
+
92
+
Ignore matched files when no parser can be inferred. This allows the command to exit successfully even when every matched file has an unknown type:
93
+
94
+
```bash
95
+
rs fmt --ignore-unknown '**/*'
96
+
```
97
+
98
+
This option does not suppress errors for unmatched paths or globs. Combine it with [`--no-error-on-unmatched-pattern`](#--no-error-on-unmatched-pattern) when an integration needs to tolerate both cases.
99
+
100
+
When used with `--stdin-filepath`, unsupported input is skipped without writing output.
101
+
90
102
### `--list-different`
91
103
92
104
Print the paths of unformatted files without the summary produced by `--check`. This is useful when another command needs to consume the output:
@@ -99,7 +111,7 @@ The option uses the same exit codes as `--check` and cannot be combined with `--
99
111
100
112
### `--no-error-on-unmatched-pattern`
101
113
102
-
Exit successfully without diagnostics when no supported files match the provided paths or globs, including when all matching files are ignored:
114
+
Exit successfully without diagnostics when no files match the provided paths or globs, including when all matching files are ignored:
0 commit comments