-
Notifications
You must be signed in to change notification settings - Fork 65
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
False positive 'Unused Variable' for @Field annotation #61
Comments
I guess the problem is in CodeNarc. I'll look for/file a bug there as well. |
It is fixed in 0.27 of CodeNarc (CodeNarc/CodeNarc#182). CodeNarc has actually gone 1.0. Seems like a good idea to upgrade that dependency and release a new version of this. But there are breaking changes there, so if it's complicated I would appreciate if you release a version that uses 0.27. |
I've built a snapshot version where I just update the CodeNarc version in the poms to 0.27.0 and tested in my Sonar instance and it seems to work, so hopefully this is simple for you. |
As discussed in pmayweg#61
I have a look into that |
I just have the same issue... |
Since this is fixed in newer versions of CodeNarc, this is fixed in release 1.6 |
We get grvy:org.codenarc.rule.unused.UnusedVariableRule.fixed for (essentially) the following groovy script code:
The text was updated successfully, but these errors were encountered: