Invalid rule identifier with nested configs and custom rules on SwiftLint 0.42.0 #3472
Closed
2 tasks done
Labels
bug
Unexpected and reproducible misbehavior.
New Issue Checklist
Describe the bug
When using custom rules + nested configs, SwiftLint is not recognizing the custom rule identifier if it's referenced in
disabled_rules
.Interestingly, it's actually disabling the rule.
Complete output when running SwiftLint, including the stack trace and command used
SwiftLint 0.42
SwiftLint 0.41.0:
Environment
swiftlint version
to be sure)? 0.42.0If so, paste their relative paths and respective contents.
Yes, see above
Which Xcode version are you using (check
xcodebuild -version
)? 12.2Do 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
.nested-config-issue.zip
The text was updated successfully, but these errors were encountered: