Skip to content

Commit

Permalink
Remove severity as a baseline key (#5566)
Browse files Browse the repository at this point in the history
It interacts poorly with `--strict`.
  • Loading branch information
mildm8nnered committed May 11, 2024
1 parent 0a2878d commit b17bbaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/SwiftLintCore/Models/Baseline.swift
Expand Up @@ -7,7 +7,7 @@ private typealias ViolationsPerRule = [String: BaselineViolations]
private struct BaselineViolation: Codable, Hashable {
let violation: StyleViolation
let text: String
var key: String { text + violation.reason + violation.severity.rawValue }
var key: String { text + violation.reason }

init(violation: StyleViolation, text: String) {
let location = violation.location
Expand Down

0 comments on commit b17bbaa

Please sign in to comment.