commentective (word play on comment detective) is a CLI tool that locates commented out code and
comments in your project. Note that this tool assumes that your code is syntactically correct.
It will find single line comments and multi line comments. It supports a number of languages. If you
find a case that commentective does not support, please
submit an issue.
commentective is language agnostic, meaning you don't need to tell it what language your files are
written in. It will look at the extension of the files and act accordingly.
$ commentective [FLAGS] [OPTIONS] <FILES>...-s, --short Formats output with "file.ext:line" without colors-e, --extension <extension> Only analyze files with this extension| Language | Supported |
|---|---|
| Bash/Shell | ✔️ |
| C | ✔️ |
| C# | ✔️ |
| C++ | ✔️ |
| CSS | ✔️ |
| Go | ✔️ |
| HTML | ✔️ |
| Java | ✔️ |
| JavaScript | ✔️ |
| Lua | ✔️ |
| PHP | ✔️ |
| Python | ✔️ |
| Ruby | ✔️ |
| Rust | ✔️ |
| Scala | ✔️ |
Got a request for a language? Submit an issue!
$ cargo install commentectiveWant to contribute to this project? A backlog is kept in the issues, have a look!