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 8bade83 commit aac6fe8Copy full SHA for aac6fe8
Sources/SwiftFormat/API/SwiftLinter.swift
@@ -99,6 +99,11 @@ public final class SwiftLinter {
99
// also does not touch an empty file even if the setting to add trailing newlines is enabled.)
100
guard !source.isEmpty else { return }
101
102
+ // If allDisabled is set, do nothing.
103
+ guard !configuration.allDisabled else {
104
+ return
105
+ }
106
+
107
let sourceFile = try parseAndEmitDiagnostics(
108
source: source,
109
operatorTable: .standardOperators,
0 commit comments