False positive in test_case_accessibility
for variables used in init
#5211
Labels
bug
Unexpected and reproducible misbehavior.
good first issue
Issue to be taken up by new contributors yet unfamiliar with the project.
New Issue Checklist
Describe the bug
When defining variables with
let
orvar
inside theinit
block,test_case_accessibility
warning is raised, when it shouldn't be. Maybe they're falsely being treated as properties?Complete output when running SwiftLint, including the stack trace and command used
Command output:
Environment
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
.The text was updated successfully, but these errors were encountered: