Skip to content

Commit

Permalink
Allow severity of duplicate_imports rule to be configurable (#5979)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyDanny authored Jan 22, 2025
1 parent 854d3f2 commit b4eb2df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
* Fix issue referencing the Tests package from another Bazel workspace.
[jszumski](https://github.com/jszumski)

* Allow severity of `duplicate_imports` rule to be configurable.
[SimplyDanny](https://github.com/SimplyDanny)
[#5978](https://github.com/realm/SwiftLint/issues/5978)

## 0.58.2: New Year’s Fresh Fold

### Breaking
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ struct DuplicateImportsRule: SwiftSyntaxCorrectableRule {
file.duplicateImportsViolationPositions().map { position in
StyleViolation(
ruleDescription: Self.description,
severity: configuration.severity,
location: Location(file: file, position: position)
)
}
Expand Down

0 comments on commit b4eb2df

Please sign in to comment.