File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -203,8 +203,9 @@ configuration, by redirecting it to a file and editing it.
203
203
For any source file being checked or formatted, ` swift-format ` looks for
204
204
configuration files in the same directory, and parent directories.
205
205
206
- If it finds a file named ` .swift-format-ignore ` , it will disable all
207
- formatting and linting.
206
+ If it finds a file named ` .swift-format-ignore ` , its contents will determine
207
+ which files in that directory will be ignored by ` swift-format ` . Currently
208
+ the only supported option is ` * ` , which ignores all files.
208
209
209
210
If it finds a JSON-formatted file called ` .swift-format ` , then that
210
211
file is loaded to determine the tool's configuration.
@@ -216,15 +217,12 @@ standard output.
216
217
217
218
If the ` --configuration <file> ` option is passed to ` swift-format ` , then that
218
219
configuration will be used unconditionally and the file system will not be
219
- searched.
220
+ searched for ` .swift-format ` files .
220
221
221
222
See [ Documentation/Configuration.md] ( Documentation/Configuration.md ) for a
222
223
description of the configuration file format and the settings that are
223
224
available.
224
225
225
- Note that the contents of any ` .swift-format-ignore ` are ignored; the
226
- file can be empty.
227
-
228
226
### Miscellaneous
229
227
230
228
Running ` swift-format -v ` or ` swift-format --version ` will print version
You can’t perform that action at this time.
0 commit comments