Skip to content

Commit f54a359

Browse files
committed
Use .swift-format-ignore as the file name.
1 parent ce9dd11 commit f54a359

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ configuration, by redirecting it to a file and editing it.
201201
### Configuring the Command Line Tool
202202

203203
For any source file being checked or formatted, `swift-format` looks for a
204-
JSON-formatted file named `.no-swift-format` in the same directory.
204+
JSON-formatted file named `.swift-format-ignore` in the same directory.
205205
The presence of this file will disable all formatting and linting.
206-
The contents of `.no-swift-format` are ignored - it can be an empty file.
206+
The contents of `.swift-format-ignore` are ignored - it can be an empty file.
207207

208208
If the file is not found, then it looks in the same directory for a file
209209
called `.swift-format`. If one is found, then that file is loaded to

Sources/SwiftFormat/API/Configuration.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public struct Configuration: Codable, Equatable {
3232
/// Name of the suppression file to look for.
3333
/// The presence of this file in a directory will cause the formatter
3434
/// to skip formatting files in that directory and its subdirectories.
35-
private static let suppressionFileName = ".no-swift-format"
35+
private static let suppressionFileName = ".swift-format-ignore"
3636

3737
private enum CodingKeys: CodingKey {
3838
case version

0 commit comments

Comments
 (0)