An open API service indexing awesome lists of open source software.

https://github.com/walkmod/walkmod-comments-cleaner-plugin

Walkmod plugin to remove comments whose content is only code
https://github.com/walkmod/walkmod-comments-cleaner-plugin

Last synced: 5 months ago
JSON representation

Walkmod plugin to remove comments whose content is only code

Awesome Lists containing this project

README

          

walkmod-comments-cleaner-plugin
================================
Raquel Pau

image:https://travis-ci.org/walkmod/walkmod-comments-cleaner-plugin.svg?branch=master["Build Status", link="https://travis-ci.org/walkmod/walkmod-comments-cleaner-plugin"]

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.
```java
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:
```java
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.