File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -202,8 +202,14 @@ configuration, by redirecting it to a file and editing it.
202202
203203For any source file being checked or formatted, ` swift-format ` looks for a
204204JSON-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
208214If no configuration file is found, a default configuration is used. The
209215settings in the default configuration can be viewed by running
You can’t perform that action at this time.
0 commit comments