zoukankan      html  css  js  c++  java
  • Install and Use Checkstyle in Eclipse

    Plugin installation

    To install the Checkstyle for Eclipse plugin:

    1. In Eclipse, click on Help -> Install New Software...

        Click on Add..

    2. Enter the following:

        Name: Checkstyle

        URL:http://eclipse-cs.sourceforge.net

        and click OK.

    3. You should see Checkstyle and Extension for eclipse-cs plugin with additional Checks. Select the two checkboxes next to it and click Next >.

    4. You'll need to accept the license and confirm you want to install a plugin that is not digitally signed. Go ahead and install it anyway.

    5. Restart eclipse.

    Plugin Using

    After installing the plugin, we can use Checkstyle to check class design problems, method desig problems, code layout and formatting issues of you project.

    1. In Eclipse, select the project, click on Project -> Properties

    2. Select Checkstyle, select the checkbox of Checkstyle active for this project.

        and click OK.

    3. Click Yes.

    4. Open the source code file, and you will see...

    5. Put the mouse on , and you will see the problem of the code.

    Statement: To cite this documentalways state the source as shown above. If there are something wrong, please tell me by relpying below. Thanks.

  • 相关阅读:
    brctl 使用说明
    Flash文件系统介绍和平台采用squashfs+ubifs原因
    xargs
    svn的常用命令
    shell中的if用法
    shell中单双引号
    删除文件中的 ^M 字符
    博客园添加live2d看板娘
    IOS 自定义转场动画
    rails
  • 原文地址:https://www.cnblogs.com/jdoran/p/4516010.html
Copyright © 2011-2022 走看看