Comments (5)
Hi,
How I can reproduce this issue ?
from vb-android-app-quality.
I also got this error. Just followed this guide - and got error.
Maybe it's because I'm using gradle plugin 1.3.0?
Here is a stacktrace of running gradle task:
Caused by: : java.lang.IllegalArgumentException: Unable to exclude rules [LongMethodName]; perhaps the rule name is mispelled?
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
at org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:77)
at org.gradle.api.internal.project.AntBuilderDelegate.nodeCompleted(DefaultIsolatedAntBuilder.groovy:177)
at org.gradle.api.plugins.quality.Pmd$_run_closure2.doCall(Pmd.groovy:137)
at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:67)
at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:130)
at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:91)
at org.gradle.util.ConfigureUtil$configure.call(Unknown Source)
at org.gradle.api.internal.project.DefaultIsolatedAntBuilder.execute(DefaultIsolatedAntBuilder.groovy:108)
at org.gradle.api.internal.project.IsolatedAntBuilder$execute$0.call(Unknown Source)
at org.gradle.api.plugins.quality.Pmd.run(Pmd.groovy:135)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:226)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:219)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:208)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
... 60 more
Caused by: java.lang.IllegalArgumentException: Unable to exclude rules [LongMethodName]; perhaps the rule name is mispelled?
at net.sourceforge.pmd.RuleSetFactory.parseRuleSetReferenceNode(RuleSetFactory.java:321)
at net.sourceforge.pmd.RuleSetFactory.parseRuleNode(RuleSetFactory.java:263)
at net.sourceforge.pmd.RuleSetFactory.parseRuleSetNode(RuleSetFactory.java:220)
at net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:165)
at net.sourceforge.pmd.RuleSetFactory.createRuleSets(RuleSetFactory.java:130)
at net.sourceforge.pmd.RuleSetFactory.createRuleSets(RuleSetFactory.java:115)
at net.sourceforge.pmd.ant.internal.PMDTaskImpl.doTask(PMDTaskImpl.java:113)
at net.sourceforge.pmd.ant.internal.PMDTaskImpl.execute(PMDTaskImpl.java:263)
at net.sourceforge.pmd.ant.PMDTask.execute(PMDTask.java:46)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
... 78 more
from vb-android-app-quality.
Thanks for the details, I will look into this.
from vb-android-app-quality.
From my analyses this is caused by gradle version: gradle-2.4-all.zip as it uses newer version of PMD.
To reproduce change value in gradle-wrapper.properties.
To fix the build error you can simple remove the rules spelled in error from config file config/pmd/pmd-rulset.xml
from vb-android-app-quality.
Thanks for the detailed report :). I am currently in vacation and can't fix
this before the next week. Btw feel free to propose the fix as a merge
request.
BR.
Le 1 oct. 2015 5:34 PM, "Kamil Seweryn" [email protected] a Γ©crit :
From my analyses this is caused by gradle version: gradle-2.4-all.zip as
it uses newer version of PMD.
To reproduce change value in gradle-wrapper.properties.To fix the build error you can simple remove the rules spelled in error
from config file config/pmd/pmd-rulset.xmlβ
Reply to this email directly or view it on GitHub
#14 (comment)
.
from vb-android-app-quality.
Related Issues (12)
- Enable StrictMode for development HOT 1
- Error when build or check HOT 1
- 3 PMD rule violations were found.(execute failed) HOT 2
- Checkstyle rule violations were found.(execute failed) HOT 2
- FindBugs task: classes not found using flavors HOT 1
- Use Infer Gradle plugin
- Checkstyle classpath {null} HOT 3
- New logo/icon HOT 1
- Add Travis CI
- Clean ReadMe HOT 1
- Check Copyrights. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vb-android-app-quality.