Closed surli closed 6 years ago
Ping @walkmod
Sorry for the delay. Checking.
Note that in order to replicate easily my bugs I created a dedicated branch to reproduce the problem: https://github.com/surli/failingProject/tree/checkstyle-error
@surli In the PR I have sent to you, is using a new version of the walkmod-maven-plugin and the workflow is a little bit different than the one that it is explained in the web site. It is something that I decided to change recently.
The problem you experienced with the command is due to:
The build fails because checkstyle fails. Then, if you run walkmod from the command line, it is trying to build the project to resolve the classpath and it cannot. Using walkmod as a maven plugin, is maven who resolves the classpath and it is passed to walkmod (very much simpler)
There was an issue when for checkstyle if you were not specified the configuration. I have already fixed it and I need to create a release (https://github.com/walkmod/walkmod-checkstyle-plugin/pull/4). Sorry, I usually have tested PMD and sonarqube
Notice that my PR is not applying changes into the code. It is because code mutation is not an accepted practice because commits needs to be idempotent, and more importantly, the tests should be executed according a commit, not for a mutated codebase.
I am planning to add this information to the website.
Great! Thanks for your information. I'm currently working on a tool to automate the creation of patches (see: https://github.com/Spirals-Team/repairnator). I'll certainly come back to you as I'll try to put walkmod in it :)
Hi,
I'm trying to use walkmod for fixing checkstyle on the following maven project: https://github.com/INRIA/spoon . More specifically, as a test, I'm trying to fix checkstyle issue I had on this commit: https://github.com/INRIA/spoon/pull/1499/commits/0d2d0af2c758223562ee82b206cadf64ffb89f2e (it had wrong indent, and a problem with spaces somewhere in the file).
I installed last version on a macos, using homebrew:
So looking on the usage I first tried to call
walkmod apply checkstyle
on my specific commit, it ended up with the following stacktrace:Please note that in our project, a
mvn install -DskipTests=true
on this specific commit would fail because of the checkstyle errors in this commit.Then I tried with the following
walkmod.xml
config file:and then I obtained the following error:
So any hint how to use walkmod in my case?