Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4bb0453

Browse files
committedFeb 1, 2024
Update Configuration.md
1 parent 50e7197 commit 4bb0453

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed
 

‎Configurations.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,15 +1306,26 @@ If you want to ignore every file under the directory where you put your rustfmt.
13061306
ignore = ["/"]
13071307
```
13081308

1309-
## `ignore_missing_submod`
1309+
## `report_missing_submod`
13101310

1311-
Ignore missing submodule error.
1312-
By default, missing modules will lead to module not found errors and rustfmt won't format anything.
1311+
Controls whether to report missing submodules and whether rustfmt will format.
13131312

1314-
- **Default value**: `false`
1315-
- **Possible values**: `true`, `false`
1313+
- **Default value**: `Error`
1314+
- **Possible values**: `Error`, `Warn`, `Ignore`
13161315
- **Stable**: No
13171316

1317+
#### `Error` (default):
1318+
1319+
Missing modules will lead to module not found errors and rustfmt won't format anything.
1320+
1321+
#### `Warn`
1322+
1323+
Missing modules will lead to module not found warnings and rustfmt will format.
1324+
1325+
#### `Ignore`
1326+
1327+
Ignores missing submodule error and rustfmt will format.
1328+
13181329
## `imports_indent`
13191330

13201331
Indent style of imports

0 commit comments

Comments
 (0)
Please sign in to comment.