Absrtact: Recently the project team is doing code check, so the leader let the Checkstyle this plugin to understand, now I write our custom checkstyle.xml file record, so that we can use together:
One: To use the Checkstyle plug-in in eclipse to check the Java code, that must first install Eclipse Checkstyle plug-ins,
Java advanced (iii) ------ java programming specifications-Comparison of FindBugs, PMD, and CheckStyle code quality detection tools
In the previous article, we have learned how to automatically set the code format in myeclipse.
During the development process, we will find that we do not have much time to perform code check and review. However, we can use tools t
Java advanced (iv) ------ java programming specifications --- installation of FindBugs, PMD, and CheckStyle code quality detection tools
Here, the plug-in is used to install FindBugs, PMD, and CheckStyle for myeclipse.
You can search for checkstyle, pmd, and findbugs to f
PMD and Checkstyle
Depending on the PMD document, it checks the following sections in your code:
Unused local variablesAn empty catch blockParameter not usedEmpty if statementDuplicate import statementUnused private methodsCould be a singletons class.Short/Long variable and method nameCheckstyle Check the following sections:
Javadoc annotationNaming conventionsTitleImport statementVolume sizeBlankModifiersBlockMixed Check (pack live some useful, such
In fact, Checkstyle is a jar package, and third-party developers have developed Eclipse/idea plugins.Website:Https://github.com/checkstyle/checkstyleEclipse Plugin:Http://www.cnblogs.com/EasonJim/p/7690008.htmlIdea Plugin:Https://github.com/jshiell/checkstyle-ideaPlug-in detection xml:Google:https://github.com/checkstyle
A PMD document that examines the following sections of code:
Unused local variables
An empty catch block
Parameter not used
Empty if statement
Duplicate import statement
Unused private methods
Could be a singletons class.
Short/Long variable and method name
Checkstyle Check the following sections:
Javadoc annotation
Naming conventions
Title
Import statement
Volume size
Blank
Modifiers
Block
Mixed Check (pack live some useful, such as System.out and
Checkstyle is a project under SourceForge that provides a tool to help Java developers comply with certain coding specifications. It automates the process of code specification checking, freeing developers from this important but tedious task. It can check the code according to the set coding rules. For example, the specification of variable name, method body maximum number of lines, duplicate code check an
The previous time center needs the external package project to carry on the code quality Management, therefore in this to the previous period work does the summary.
Now many open source tools can be code to standardize the audit, more popular with the following several, roughly to a simple introduction.
PMD: is a BSD protocol issued by the Java program Code Checker, you can do to check whether the Java code
1. Overview
With the establishment and implementation of code specifications for the center, the project team's knowledge of code specification requirements, and the importance of software engineers to the coding of their own code, "code specification" has become a central "hot word". Then how to write a code of norms, how to develop coding standard habits. I believe a lot of people know checkstyle This coding specification tool, this article describ
problems, the translations published in the blog are basically not modified simultaneously.
Chapter 2. Checkstyle plug-in
The Checkstyle plugin uses Checkstyle to perform a quality check on the Java source files of your project and generate a report from the check results.29.1. Usage
To use the
Here are three open source tools, PMD, Checkstyle and findbugs, with emphasis on ant calls, and commercial software Jtest is said to be a well-known tool for code analysis, haha.
Checkstyle (http://checkstyle.sourceforge.net/) version 4.2
Introduction: Checkstyle is a development tool that can help programmers follow code specifications to write code,
It automat
http://chenzhou123520.iteye.com/blog/1627618The previous article introduced the Code specification series (i): Eclipse code templates settings, which mainly describes the configuration of Checkstyle in Eclipse. About Checkstyle, the introduction of Baidu Encyclopedia is described as follows: Checkstyle is a project under SourceForge, providing a tool to help
Checkstyle is a Java code specification checking tool. Using Checkstyle can force programmers to follow some kind of code specification. Checkstyle provides support for the Sun programming specification by default. By writing a configuration file, you can increase your own inspection specifications.
The latest version
file 6.4 Custom rules are established in the Checkstyledir directory
Checkstyle rules can be customized, detailed rules can refer to the Checkstyle document, here I only need to check a few rules, from the Checkstyle rule to remove unnecessary rules, to retain part of the need. The rules are as follows:
"-//puppy crawl//dtd Check Configuration 1.3//e
Use checkstyle in eclipse
Checkstyle is a Java program sourceCodeStyle tools can effectively help us to view code to better comply with coding standards, especially suitable for style standardization and unification during group development. Checkstyle provides high configurability to apply to various code specificati
About checkstyleChecksytle is a code format check tool. It can check the code according to the configured encoding rules.For example, naming variables that comply with the specifications and a good program style.If your project manager says at a meeting, "I hope the code we write is like a one-person code !" Checkstyle is definitely the correct choice, and checkstyle is mainly used in the following three as
Introduced
Checkstyle is a project under SourceForge that provides a tool to help Java developers comply with certain coding specifications. It automates the code-checking process and frees developers from this important, but tedious, task.
Checkstyle provides the main check content by default:
Javadoc Notes
• Naming conventions
• Title
Import Statement
• Volume
Maven and checkstyle
Reprinted by the author:
By: 88250
Date: January 1, July 20, 2010
Maven and checkstyle
Summary
Prerequisites
Example POM
Encoding Rule Configuration
List violations
Javadoc tag
Naming
Conclusion
Further reading
Summary
Checkstyle is a tool that helps Jav
Reprinted from: http://www.cnblogs.com/lanxuezaipiao/p/3202169.htmlCheckstyle is a project under SourceForge that provides a tool to help Java developers comply with certain coding specifications. It automates the process of code specification checking, freeing developers from this important but tedious task.Main contents of Checkstyle Test· Javadoc notes • Naming Conventions • Title · Import Statement • Vo
Label:FindBugs, Checkstyle, PMD installation and use of the eclipse plugin First, what is FindBugs, Checkstyle, PMD Findbugs, Checkstyle, and PMD can be plugged into eclipse as plug-ins, but there are also separate tools to implement their functions, such as the Findbugs tool that can be used without having to plug into eclipse. The functions of the three are sho
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.