Skip to content

walkmod/walkmod-comments-cleaner-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Walkmod plugin to remove comments whose content is only code

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages