Eclipse Plugin Checkstyle installation uses

Source: Internet
Author: User
Tags modifier naming convention checkstyle

method One:1.Eclipse, select Help->software updates->find and install 2. Select Search for new features to install select Next 3. Select New Remote Site 4. Enter the update address Http://eclipse-cs.sourceforge.net/update 5. Restart after installation Method Two:1. After downloading the Eclipse plugin http://sourceforge.net/projects/eclipse-cs/, put the two folders inside plugins and Features the following files are copied to the corresponding plugins and features directories under the Eclipse Directory 2. If you just start eclipse directly, you may get errors such as Classnotfoundexceptions, So you have to add a parameter-clean when you start eclipse. This allows eclipse to update many of the plug-in information it currently installs, such as your eclipse on D, and then D:\eclipse\eclipse.exe-clean. CheckStyle UseSelect the project, right-click Checkstyle->check code with Checkstyle, check for errors result output of Checkstyle  Sequence       output content meaning 1 type is missing a Javadoc commentclass   missing type description 2 "{" Should be on the previous Line "{" should be located in the previous row 3Methos is missing a Javadoc comment method is missing Javadoc comment 4Expected @throws tag for "Exception" in the comments want to have @throws description 5 "." is preceeded with whitespace "." Cannot have spaces 6 "." is followed by whitespace "." Cannot have space after 7 "=" is not preceeded with whitespace "=" preceded by a missing space 8 "=" is not followed with whitespace "=" Missing space 9 "}" should is on the same line "}" should be in the same row as the next statement 10Unused @param tag for "unused" no parameter "unused", no need to comment 11Variable "CA" mis Sing Javadoc variable "CA" missing Javadoc comment 12Line longer than 80characters line length more than 8013Line contains a tab character line contains "tab" Character 14Redundant "public" modifier redundant "public" modifier15final modifier out of order with the JSL suggestionfinal modifier the wrong sequence 16Avoid using the ". *" form of importimport format avoids using ". *" 17Redundant import from the same package import content 18Unused Impor T-java.util.listimport came in Java.util.list was not used 19Duplicate import to line 13 duplicate import same content 20Import from illegal PACKage import content from an illegal package "while" construct must "{}" "while" statement missing "{}" 22Variable "STest1" must be private and with accessor m The Ethod variable "sTest1" should be private, and there is a method that calls it 23Variable "ABC" must match pattern "^[a-z][a-za-z0-9]*$" variable "abc" does not conform to the naming convention ^[a-z][ A-za-z0-9]*$ "are followed by whitespace" ("cannot have space after") "is proceeded by whitespace") "cannot have spaces in front of you   related articles: Checkstyle makes With introduction

Http://wenku.baidu.com/link?url=AjrcXIcGH18_j5NTpy9D-oxbnsVNiATiCj-27FglrldVpoYCcymyTUPus_ 9mdixiziumyvojxdt60cbsqsdi-j7egjufihtvoyh2jgtzrb7

Official website: http://sourceforge.net/projects/checkstyle/

Related tools:

Findbugs

Pmd

Nbcheckstyle

Eclipse Plugin Checkstyle installation uses

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.