-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redundant_type_annotation ignores arrays #3141
Comments
This issue has been automatically marked as stale because it has not had any recent activity. Please comment to prevent this issue from being closed. Thank you for your contributions! |
Please don't close stale bot. |
This issue has been automatically marked as stale because it has not had any recent activity. Please comment to prevent this issue from being closed. Thank you for your contributions! |
c'mon stale bot. be kind. |
Haha, sorry I ended up changing my mind on stalebot (#3529) but thanks for taking this with some amount of levity 😄. Let's keep this open. This is a bug, I haven't looked into fixing but I suspect it'll require using more of a tokenization approach to detect types involved rather than what's likely a regex here. |
yeah no worries. thanks for re-opening 😄 |
Same trouble with
Seems it's can be fixed as well as #3438 |
Same for strings: static var storyboardName: String = "MyStoryboard" |
New Issue Checklist
Describe the bug
redundant_type_annotation
ignores types that are arrays.Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)?0.39.1
brew
Nope
xcodebuild -version
)?Xcode 11.3.1
Build version 11C504
echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
The text was updated successfully, but these errors were encountered: