Code Monkey home page Code Monkey logo

Comments (5)

vincentbrison avatar vincentbrison commented on July 28, 2024

Hi,
How I can reproduce this issue ?

from vb-android-app-quality.

Armaxis avatar Armaxis commented on July 28, 2024

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.

vincentbrison avatar vincentbrison commented on July 28, 2024

Thanks for the details, I will look into this.

from vb-android-app-quality.

sewerk avatar sewerk commented on July 28, 2024

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.

vincentbrison avatar vincentbrison commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.