We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7275d90 commit fc2e249Copy full SHA for fc2e249
Sources/SwiftFormat/API/SwiftLinter.swift
@@ -94,6 +94,11 @@ public final class SwiftLinter {
94
// also does not touch an empty file even if the setting to add trailing newlines is enabled.)
95
guard !source.isEmpty else { return }
96
97
+ // If allDisabled is set, do nothing.
98
+ guard !configuration.allDisabled else {
99
+ return
100
+ }
101
+
102
let sourceFile = try parseAndEmitDiagnostics(
103
source: source,
104
operatorTable: .standardOperators,
0 commit comments