fortunately, there are tools to reduce your pain and automate this precudrue as mush as possible. There are 2 tools that I am familiar with, each of them has their own features, and by using them together, really can make your life much easier.
first one I recommand is CheckStyle. But its checking rule is too strick, so you better set up your own one. It checks for the followings in your code:
- Java comments and docs
- naming conventions
- header
- imports
- size violations
- white space
- blocks
- modifiers
- and etc.
- empty catch block
- unused if statement and local variables
- duplicate codes
- classes that could be singletons
- inproperiate variable and method names
- and etc.
No comments:
Post a Comment