Skip to content

Commit 049828c

Browse files
committed
Updated config documentation in README.
1 parent d7fa663 commit 049828c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,14 @@ configuration, by redirecting it to a file and editing it.
202202

203203
For any source file being checked or formatted, `swift-format` looks for a
204204
JSON-formatted file named `.swift-format` in the same directory. If one is
205-
found, then that file is loaded to determine the tool's configuration. If the
206-
file is not found, then it looks in the parent directory, and so on.
205+
found, then that file is loaded to determine the tool's configuration.
206+
207+
If the file is not found, then it looks in the same directory for a file
208+
called `.no-swift-format`. The presence of this file, if found, will
209+
disable all formatting (the contents of the file are ignored).
210+
211+
If neither file is found, the search for files continues in the parent
212+
directory, and so on.
207213

208214
If no configuration file is found, a default configuration is used. The
209215
settings in the default configuration can be viewed by running

0 commit comments

Comments
 (0)