typesafe_array_init
rule reports violations as though they were of the array_init
rule.
#5709
Closed
2 tasks done
Labels
bug
Unexpected and reproducible misbehavior.
New Issue Checklist
Describe the bug
The
TypesafeArrayInitRule
outsources some of its functionality to theArrayInitRule
. The violations are reported as being ofarray_init
rather thantypesafe_array_init
.Complete output when running SwiftLint, including the stack trace and command used
typesafe_array_init
is an analyzer rule, so it's hard to run the analyzer on it in isolation, but the following unit test illustrates the problem:This will fail the final check, as the types of the violations will not be
typesafe_array_init
The text was updated successfully, but these errors were encountered: