walkmod / walkmod-core

walkmod: an open source tool to fix coding style issues
http://www.walkmod.com
GNU Lesser General Public License v3.0
153 stars 23 forks source link

Code Transformation Chain Fails for Fixing Sonar Issues #97

Open Hitesh-Kirtane opened 3 years ago

Hitesh-Kirtane commented 3 years ago

Hi Team,

I am trying to use Walkmod on one of my Java - Spring Boot projects to refactor the Sonar issues.

However, the code transformation chain fails when I run "walkmod apply" command with the following error.

Note: I have run the "walkmod apply -e" command to display the error stack trace on the command line (in the screenshot below).

image

The error message guides to check the log file for detailed error information but, I can't find any log files generated in my project folder.

Below are the contents of walkmod.xml file present in the project root folder.

<!DOCTYPE walkmod PUBLIC "-//WALKMOD//DTD" "http://www.walkmod.com/dtd/walkmod-1.1.dtd">
<walkmod>
    <transformation type="org.walkmod:walkmod-sonar-plugin:Sonar"/>
</walkmod>

Also, the detailed links for the documentation seem to be removed now, can't find any detailed documentation on walkmod usage other than the documentation available on http://walkmod.com/docs.html which only helps with the basic setup.

Please suggest some solution for this issue.

Thanks.