Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 1.22 KB

File metadata and controls

57 lines (36 loc) · 1.22 KB

walkmod-comments-cleaner-plugin

Build Status

This is a walkmod plugin to remove code that has been temporary commented but developer has forgotten to remove it.

Example

Let’s see an example. Take a look to this code.

package example;

import java.util.*;

public class Foo{
  public void goodBye(String s){
    //System.out.println("bye +"s);
    return "bye +"s;
  }
}

What this plugins generates is the following modified code:

package example;

public class Foo{
  public void goodBye(String s){

     return "bye +"s;
  }
}

Usage

Check that your walkmod version is at least 2.2.0. You can add walkmod-comments-cleaner-plugin via walkmod.

$walkmod add comments-cleaner

And then, to see the results

$ walkmod apply

Or, you can also check which would be the modified classes typing:

$ walkmod check

Contributing

If you want to hack on this, fork it, improve it and send me a pull request.

To get started using it, just clone it and call mvn install.