Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ disabled_rules:
- todo
- trailing_closure
- type_contents_order
- variable_shadowing
- vertical_whitespace_between_cases

Comment thread
nadeemnali marked this conversation as resolved.
# Configurations
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
[kapitoshka438](https://github.com/kapitoshka438)
[#6045](https://github.com/realm/SwiftLint/issues/6045)

* Add `variable_shadowing` rule that flags when a variable declaration shadows
an identifier from an outer scope.
[nadeemnali](https://github.com/nadeemnali)
[#6228](https://github.com/realm/SwiftLint/issues/6228)

### Bug Fixes

* Detect and autocorrect missing whitespace before `else` in `guard`
Expand Down
1 change: 1 addition & 0 deletions Source/SwiftLintBuiltInRules/Models/BuiltInRules.swift
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ public let builtInRules: [any Rule.Type] = [
UnusedParameterRule.self,
UnusedSetterValueRule.self,
ValidIBInspectableRule.self,
VariableShadowingRule.self,
VerticalParameterAlignmentOnCallRule.self,
VerticalParameterAlignmentRule.self,
VerticalWhitespaceBetweenCasesRule.self,
Expand Down
Loading