星期五, 3月 31, 2006

PMD

PMD是一個Code檢查器,找出可能之潛在問題。並能與許多IDE整合,提供進一步的建議。

PMD scans Java source code and looks for potential problems like:

  • Possible bugs - empty try/catch/finally/switch statements
  • Dead code - unused local variables, parameters and private methods
  • Suboptimal code - wasteful String/StringBuffer usage
  • Overcomplicated expressions - unnecessary if statements, for loops that could be while loops
  • Duplicate code - copied/pasted code means copied/pasted bugs
同性質的還有許多,但PMD是我用起來最習慣的,與Eclipse整合也很好。
CheckStyle就用得不習慣。

沒有留言: