We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed63007 commit bf42ce7Copy full SHA for bf42ce7
Sources/SwiftFormat/API/SwiftLinter.swift
@@ -92,7 +92,8 @@ public final class SwiftLinter {
92
// If the file or input string is completely empty, do nothing. This prevents even a trailing
93
// newline from being diagnosed for an empty file. (This is consistent with clang-format, which
94
// also does not touch an empty file even if the setting to add trailing newlines is enabled.)
95
- guard !source.isEmpty else { return }
+ guard !source.isEmpty else { return }
96
+
97
let sourceFile = try parseAndEmitDiagnostics(
98
source: source,
99
operatorTable: .standardOperators,
0 commit comments