@@ -205,16 +205,17 @@ JSON-formatted file named `.swift-format` in the same directory. If one is
205
205
found, then that file is loaded to determine the tool's configuration.
206
206
207
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).
208
+ called ` .no-swift-format ` . The presence of this file will
209
+ disable all formatting and linting. The contents of ` .no-swift-format `
210
+ are ignored - it can be an empty file.
210
211
211
- If neither file is found, the search for files continues in the parent
212
- directory, and so on.
212
+ If neither configuration file is found, the search for files continues
213
+ in the parent directory, and so on.
213
214
214
- If no configuration file is found, a default configuration is used. The
215
- settings in the default configuration can be viewed by running
216
- ` swift-format dump-configuration ` , which will dump it to standard
217
- output.
215
+ If no configuration file is found at any level , a default configuration
216
+ is used. The settings in the default configuration can be viewed by
217
+ running ` swift-format dump-configuration ` , which will dump it to
218
+ standard output.
218
219
219
220
If the ` --configuration <file> ` option is passed to ` swift-format ` , then that
220
221
configuration will be used unconditionally and the file system will not be
0 commit comments