A simple, light framework for mass code analysis and manipulation
How to build: ant or eclipse build
ant
How to run: java -jar exia-mt.jar [case-name] [paths...]
example: java -jar exia-mt.jar unused-import-delete /home/sorra/projects/a /home/sorra/projects/b
To learn how to use it, please see src/github/exia/samples/.
There are examples showing you:
- Detect the places you have forgotten to write "logger.isDebugEnabled()"
- Fix a type of misuse of logger.error() API
- Remove unused imports
There are two extension points: FileFilter & AstFunction.
Implement them and call FileWalker to run your own operations.
(github.exia.provided.JavaSourceFileFilter is ready to use, filtering *.java files)