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.
203203For any source file being checked or formatted, ` swift-format ` looks for
204204configuration files in the same directory, and parent directories.
205205
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.
208209
209210If it finds a JSON-formatted file called ` .swift-format ` , then that
210211file is loaded to determine the tool's configuration.
@@ -216,15 +217,12 @@ standard output.
216217
217218If the ` --configuration <file> ` option is passed to ` swift-format ` , then that
218219configuration will be used unconditionally and the file system will not be
219- searched.
220+ searched for ` .swift-format ` files .
220221
221222See [ Documentation/Configuration.md] ( Documentation/Configuration.md ) for a
222223description of the configuration file format and the settings that are
223224available.
224225
225- Note that the contents of any ` .swift-format-ignore ` are ignored; the
226- file can be empty.
227-
228226### Miscellaneous
229227
230228Running ` swift-format -v ` or ` swift-format --version ` will print version
You can’t perform that action at this time.
0 commit comments