-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
unused_declaration
configuration causes Invalid configuration warning in 0.50.1
#4612
Comments
unused_declaration
configuration causes Invalid configuration warningunused_declaration
configuration causes Invalid configuration warning in 0.50.1
|
When moving it from The warning only dismisses if I delete or comment out the configuration customisation placed on the root level: # unused_declaration:
# severity: warning So it complains about this part. 🤔 |
Thanks, @SimplyDanny! 👍 It would probably be also nice to check what @jpsim mentioned, that is placement of rules in proper sections. 🤔 'Cause at this moment, it can really be a bit confusing as we read (altho an Analyser rule) being |
Yes, the current implementation doesn't care where Analyzer rules are placed. It might only be helpful for users to have these special rules separated. We could add a warning recommending to place the rule in |
Thanks for digging into this @SimplyDanny, there were two issues and I was only seeing one of them. |
New Issue Checklist
Describe the bug
Having
unused_declaration
enabled in the project like this:throws me a lot of console warnings:
Previously, SwiftLint 0.49.1 worked just fine with this setup, so I guess some syntax parsing issue is involved.
Complete output when running SwiftLint, including the stack trace and command used
Environment
0.50.1
Homebrew
Yes, in ~40 Swift packages in the hierarchy, symlinked above pasted config from the root
Xcode 14.1, Build version 14B47b
Nope, config issue
The text was updated successfully, but these errors were encountered: