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 ad9d563 commit f97a825Copy full SHA for f97a825
Source/swiftlint/Helpers/LintOrAnalyzeCommand.swift
@@ -44,8 +44,7 @@ struct LintOrAnalyzeCommand {
44
private static func lintOrAnalyze(_ options: LintOrAnalyzeOptions) async throws {
45
let builder = LintOrAnalyzeResultBuilder(options)
46
let files = try await collectViolations(builder: builder)
47
- let baselineOutputPath = options.writeBaseline ?? builder.configuration.writeBaseline
48
- if let baselineOutputPath {
+ if let baselineOutputPath = options.writeBaseline ?? builder.configuration.writeBaseline {
49
try Baseline(violations: builder.unfilteredViolations).write(toPath: baselineOutputPath)
50
}
51
try Signposts.record(name: "LintOrAnalyzeCommand.PostProcessViolations") {
0 commit comments