You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug exist in version 0.43 and is introduced by #3438
The above change re-introduced the bug #2312 for Bool as allow_redundancy is no longer honored.
The error doesn't repro in version older than 0.43
Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint lint
Redundant Type Annotation Violation: Variables should not have redundant type annotation (redundant_type_annotation)
Environment
SwiftLint installed via brew
whitelist_rules:
- redundant_type_annotation
- explicit_type_interfaceexplicit_type_interface: # requires type annotation on everything but local variables and constantsexcluded:
- localallow_redundancy: true # Ignores rule if it would result in redundancyswiftlint_version: 0.43.1
To test execute
if which swiftlint >/dev/null;then
swiftlint --config --strict .swiftlint.yml
elseecho"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"fi
Xcode version 12.4
Swift code that triggers the warning
privatevarisFirstLaunch:Bool= true
The text was updated successfully, but these errors were encountered:
New Issue Checklist
Describe the bug
This bug exist in version 0.43 and is introduced by #3438
The above change re-introduced the bug #2312 for
Bool
asallow_redundancy
is no longer honored.The error doesn't repro in version older than 0.43
Complete output when running SwiftLint, including the stack trace and command used
Redundant Type Annotation Violation: Variables should not have redundant type annotation (redundant_type_annotation)
Environment
SwiftLint installed via brew
To test execute
Xcode version 12.4
Swift code that triggers the warning
The text was updated successfully, but these errors were encountered: