-
Notifications
You must be signed in to change notification settings - Fork 43
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
Support multiple rulesets #65
Comments
@pkrall520 I've finally merged your multiple rulesets PR! Snapshot update site: https://dl.bintray.com/pmd/pmd-eclipse-plugin/snapshots/updates/ |
I tested this on my little example project and it works #51 (comment) In another submodule I get the error below. But copying MyClass, InternalMyClass and their dependencies in a little plugin it works. Maybe the error is connected ti the issue 34. Unfortunately, I can't share with you my project. I'll try to reproduce it but I'm not lucky until now. Edit: executing pmd via gradle command line works.
|
Ok, so the multiple rulesets are working 👍 Your other problem is something different. Could you please create a new issue and describing your project a bit: which java version are you using for compiling, which java version are you using in eclipse, with which java version are you running eclipse? This "java.lang.IncompatibleClassChangeError: MyClass and MyClass$InternalMyClass disagree on InnerClasses attribute" seems like corrupt bytecode / changes. It normally happens, if you change a (inner) class from static to non-static (or vice versa) or a field. And then not the complete project is recompiled or uses old bytecodes (e.g. MyClass.class is new and MyClass$InternalMyClass.class is not yet updated). |
I deleted all my Another question: do I have to create the .ruleset file obligatory for each project? Edit: about the plugin snapshot you gave me, what version of PMD is using? |
PR #51 added basic support for multiple rulesets, but full support would be more useful. As explained in the last comment, this is what we need to do:
The text was updated successfully, but these errors were encountered: