Skip to content
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

Valid violation not reported by redundant_type_annotation for Bool #3423

Closed
2 tasks done
revolter opened this issue Nov 10, 2020 · 2 comments · Fixed by #3438
Closed
2 tasks done

Valid violation not reported by redundant_type_annotation for Bool #3423

revolter opened this issue Nov 10, 2020 · 2 comments · Fixed by #3438
Labels
bug Unexpected and reproducible misbehavior.

Comments

@revolter
Copy link
Contributor

revolter commented Nov 10, 2020

New Issue Checklist

Describe the bug

Using the redundant_type_annotation and var isActive: Bool = false doesn't trigger a warning.

Complete output when running SwiftLint, including the stack trace and command used
$ ./swiftlint lint Test.swift
Linting Swift files at paths Test.swift
Linting 'Test.swift' (1/1)
Done linting! Found 0 violations, 0 serious in 1 file.

Environment

  • SwiftLint version (run swiftlint version to be sure)? 0.41.0
  • Installation method used (Homebrew, CocoaPods, building from source, etc)? Using a pre-built package
  • Paste your configuration file:
opt_in_rules:
    - redundant_type_annotation
  • Are you using nested configurations? No
    If so, paste their relative paths and respective contents.
  • Which Xcode version are you using (check xcodebuild -version)? Xcode 12.0 Build version 12A7209
  • Do you have a sample that shows the issue? Run echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
    to quickly test if your example is really demonstrating the issue. If your example is more
    complex, you can use swiftlint lint --path [file here] --no-cache --enable-all-rules.
class Test {
	var isActive: Bool = false
}
@stale
Copy link

stale bot commented Jan 13, 2021

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!

@stale stale bot added the wontfix Issues that became stale and were auto-closed by a bot. label Jan 13, 2021
@stale stale bot closed this as completed Jan 20, 2021
@revolter
Copy link
Contributor Author

@jpsim, Same for this one.

@jpsim jpsim reopened this Feb 24, 2021
@jpsim jpsim added bug Unexpected and reproducible misbehavior. and removed wontfix Issues that became stale and were auto-closed by a bot. labels Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected and reproducible misbehavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants