walkmod / walkmod-pmd-plugin

Walkmod plugin to fix the code according the PMD rules
2 stars 2 forks source link

TRANSFORMATION CHAIN (default) FAILS #27

Open arunkumarg26 opened 6 years ago

arunkumarg26 commented 6 years ago

I'm trying to apply sonar plugin and pmd plugin in my Gradle java project. I'm getting an error TRANSFORMATION CHAIN (default) FAILS These are my files. Can you please help?

Git repo link : https://github.com/arunkumar-ebsco/WalkmodDemo/blob/sonar-and-pmd-fix/walkmod.xml

I suspect something wrong in walkmod.xml.Can anyone please help?

rpau commented 6 years ago

How are you running walkmod?

arunkumarg26 commented 6 years ago

Hi @rpau

  1. Can you please elaborate where to put this showErrors property
  2. Also I tried applying walkmod to one of my existing project and it is giving me a wierd issues as attached.

it is changing it from HTTPHeadres httpheaders = new HTTPHeaders(); to something really wierd like below.

HTTP{ return true }ers= new HTTPHeaders();

screen shot 2018-01-23 at 4 13 57 pm screen shot 2018-01-23 at 4 14 23 pm

rpau commented 6 years ago

Sure, try this in your build.gradle:

walkmod {
      showErrors = true
 }

This should print a Java stacktrace in your terminal. FYI, the plugin repo is already explaining all the properties that you can configure.

rpau commented 6 years ago

Did you get the error messages?

niels1voo commented 6 years ago

printErrors = true ?