zoukankan      html  css  js  c++  java
  • MyEclipse2014 设备 checkstyle、PMD、findbugs 最简单的方法 详细说明

    最近的实验需要的代码审查和应用程序性能优化。在需求MyEclipse安装某些插件,由于如今的MyEclipse版本号和大多数教程的不一样了,一些安装选项也已经改变,所以安装起来非常费事,通过不断的尝试。參考和剁教程而且自己实践的基础上。整理了一下关于checkstyle、pmd、findbugs的最简便的安装方式。希望能帮助很多其它的人在安装上少走弯路害羞

    原文链接:http://write.blog.csdn.net/postedit

    MyEclipse 版本号:2014

    所需插件均能在该站点找到:http://sourceforge.net/

    checkstyle

    CheckStyle帮助JAVA开发者遵守某些编码规范,能自己主动化代码规

    范检查过程,从而使开发者从这项重要可是枯燥的任务中解脱出来。


    CheckStyle检验的主要内容:
    –Javadoc凝视
    –命名约定
    –标题
    –Import语句
    –体积大小
    –空白
    –修饰符
    –块
    –代码问题

    –类设计

    安装方式:

    下载:net.sf.eclipsecs-updatesite_5.7.0.201402131929-bin.zip文件

    解压缩后打开拷贝 plugins 和 features 下的文件到 Myeclipse对应的文件下

    重新启动MyEclipse,项目右击就能看到有checkstyle的选项成功安装



    PMD
    PMD:静态代码分析工具。自己主动检測各种潜在缺陷以及不安全或未优
    化的代码。


    下载PMD我用的是pmd-eclipse-1.8.0

    打开后将net.sourceforge.pmd.eclipse_1.8.0文件夹复制到myeclipse下的plugins文件夹下

    之后到My安装Eclipse文件夹下打开/MyEclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundlers.info

    在最后面加上net.sourceforge.pmd.eclipse,1.8.0,file:/e:/Myeclipse/pligins/net.sourceforge.pmd.eclipse_1.8.0/,4,false 

    重新启动MyEclipse后项目右击就能看到pmd了



    FindBugs

     Java静态代码分析工具。不注重样式或者格式,专注于寻
    找真正的缺陷或者潜在的性能问题。帮助开发人员提高代码质量以及排
    除隐含的缺陷,能够在不实际执行程序的情况对软件进行分析。

    安装:

    下载edu.umd.cs.findbugs.plugin.eclipse_3.0.0.20140706-2cfb468.zip

    解压缩后以相同方式将edu.umd.cs.findbugs.plugin.eclipse_3.0.0.20140706-2cfb468目录放到MyEclipse的plugins中

    而且在/MyEclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundlers.info最后面增加

    edu.umd.cs.findbugs.plugin.eclipse,3.0.0.20140706-2cfb468,file:/e:/Myeclipse/pligins/edu.umd.cs.findbugs.plugin.eclipse_3.0.0.20140706-2cfb468/,4,false 

    重新启搬家MyEclipse后,该项目右键点击就能看到PMD该选项

    版权声明:本文博主原创文章。博客,未经同意不得转载。

  • 相关阅读:
    [React] Cleaning up Functional Components with Custom Hooks
    [React] useCallback + useMemo to avoid re-render
    [React] Replacing Instance Variables with the useRef Hook
    [Cloud Architect] 4. Introduction to Design for Cost, Performance, & Scalability
    [Cloud Architect] 3. Monitor, React, and Recover
    [Cloud Architect] 3. Business Objectives
    1314:【例3.6】过河卒(Noip2002)
    1313:【例3.5】位数问题
    rk3568 linux sdk Buildroot 开发
    AcWing 873. 欧拉函数
  • 原文地址:https://www.cnblogs.com/bhlsheji/p/4807669.html
Copyright © 2011-2022 走看看