重构工具安装 Jalopy,CheckStyle,FindBugs,JDeodorant,Stench Blossom

来源:互联网 发布:python spark sql 编辑:程序博客网 时间:2024/06/05 05:36
Jalopy是一款代码美化工具。它可以把胡乱无章的代码重新排版,变的好看整洁。使用简单。虽然目前停止了更新,推出了商业化的版本, 但Jalopy仍然是免费的
http://topinking.iteye.com/blog/247925 Jalopy 
jalopy-eclipse-0.2-1.5rc3.zip

http://www.cnblogs.com/lanxuezaipiao/p/3202169.html CheckStyle 大部分功能都是对于代码规范的检查
http://www.mamicode.com/info-detail-644451.html 重构工具 findbugs PMD CheckStyle
在文本中右击 出现findbugs 进行错误检查,运行完后出现,下面虫子!

http://www.ibm.com/developerworks/cn/java/j-pmd/ PMD
http://m.blog.csdn.net/article/details?id=18467149 重构工具
JDeodorant Eclipse插件 直接安装

安装成功,出现Bad Smells

JDeodorant 提供下面五种坏味道检验:
Feature Envy problems are resolved by appropriate Move Method refactorings.
Type Checking problems are resolved by appropriate Replace Conditional with Polymorphismand Replace Type code with State/Strategy refactorings.
Long Method problems are resolved by appropriate Extract Method refactorings.
God Class problems are resolved by appropriate Extract Class refactorings.
Duplicated Code problems are resolved by appropriate Extract Clone refactorings.
JDeodorant如何使用
http://www.fwqtg.net/jdeodorant-%E7%9A%84%E4%BD%BF%E7%94%A8.html 

再点击项目你想找出坏味道的目录,【i】就会变颜色,在点击这个【i】,就可出现了神奇的效果了!



Stench Blossom  Download here only windows 
是集合了Stench Blossom的MyEclipse



只有JDeodorant提供了自动重构(Refactoring)功能;部分工具只能检测到代码中存在的味道,但是没有对所识别到的味道进行定位。具体情况如表1所示:


0 0
原创粉丝点击