We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84ea655 commit 3c65cfcCopy full SHA for 3c65cfc
1 file changed
Source/SwiftLintBuiltInRules/Rules/Lint/VariableShadowingRule.swift
@@ -73,7 +73,7 @@ private extension VariableShadowingRule {
73
final class Visitor: DeclaredIdentifiersTrackingVisitor<ConfigurationType> {
74
override func visit(_ node: VariableDeclSyntax) -> SyntaxVisitorContinueKind {
75
// Early exit for member blocks (class/struct properties)
76
- if node.parent?.is(MemberBlockItemSyntax.self) != true {
+ if node.parent?.is(MemberBlockItemSyntax.self) == false {
77
// Check for shadowing BEFORE adding to scope
78
node.bindings.forEach { binding in
79
checkForShadowing(in: binding.pattern)
0 commit comments