False positive in test_case_accessibility
for variables used in init
#5211
Labels
test_case_accessibility
for variables used in init
#5211
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: