It has been about 4 months since I studied PMD and customized the rules in my work. In fact, PMD has many worthy of my learning source code, but because of time did not have to pen. Today's brief summary of PMD and file filtering design of the
1. Lexical analyzer
Function: Read the input characters of the source program and form them into a word base to generate and output a lexical unit sequence.
Ii. Design Principles
1) symbol classification of c programming language: keywords, identifiers, constants, operators, operators
2) lexical analyzer Dual Output:
3) Regular Expression and state transition di
PMD is a source code parser. It finds common programming flaws, such as unused variables, empty catch blocks, unnecessary object creation, and so on. It supports Java, JavaScript, Salesforce.com Apex, Plsql, Apache Velocity, XML, XSL, and more.In addition, it includes CPD (copy-paste-detector, copy-paste detector). CPD in Java, C, C + +, C #, Groovy, PHP, Ruby, F
ArticleDirectory
E: \ SRC \ confirmratelimitactivity
I didn't know about PMD before. I recently heard about PC lint before I started to get in touch with it. If such a good tool is used, it can help me a lot better.CodeHabits and norms are of great help ~
Let's see how he works.
Many companies use PC lint as a static code review tool for C/C ++. It is said that Microsoft regards PC lint
To improve the quality of your code, in addition to improving logical control and understanding of business processes, there is room for improvement in the code itself, such as some potential problems that can be avoided early. Similar to the content of the coding code, if all rely on the coder to do their own checks, it will undoubtedly require a lot of work, if
Note: Based on lucene5.5.x version One, simple introduction of IK Analyzer
IK Analyzer is linliangyi2007 's work, and then thanks for his blog address:http://linliangyi2007.iteye.com/
IK Analyzer supports two participle, one is the most fine-grained participle (recommended use, IK default to use the most fine-grained), there is a kind of intelligent participle (
Before formally entering the test, it is helpful to do some static code analysis and code review to improve the quality and the system, the above is the data proofPMD It is a Java source code parser based on a static rule set that identifies potential problems such as:– Possible bug--empty try/catch/finally/switch bloc
PMD 5.7.0 was released. PMD is a Java program code checker that is released using the BSD protocol. The tool can check whether the Java code contains unused variables, contains empty fetch blocks, contains unnecessary objects, and so on. The software is powerful and highly efficient, and is a good helper for Java progr
projects agreed by the company code. If improving code quality is the primary goal, then PMD is a good choice. But if you want more features and really use tools to modify the code, you should try jalopy.
jalopy, Jalopy is an easy to configure source
worth changingNo search function is configured, but the abbreviation allows us to quickly find a rule.Provides independent programs on the GUI to detect jar files and generate reports, which is very convenient.Many plug-ins are not implemented. You can use FindBugs independently, but you cannot modify the source code at the same time.
PMD
Check
Before formally entering the test, it is helpful to do some static code analysis and code review to improve the quality and the system, the above is the data proofPMD It is a Java source code parser based on a static rule set that identifies potential problems such as:– Possible bug--empty try/catch/finally/switch bloc
It's written in front.
OK, I admit, I am lazy, wrote a day of documents, here to paste directly, I hope you can understand, if you need a complete format of the document, please go to my Baidu library download, address is:
Http://wenku.baidu.com/view/d2849ff04693daef5ef73d34.html
Below, start one. Objective:
Recently to track the code quality of a project to ensure the quality of the project. The individual always thinks that the quality assurance th
agreed by the company code. If improving code quality is the primary goal, then PMD is a good choice. But if you want more features and really use tools to modify the code, you should try jalopy.
Jalopy
Jalopy is an easily configurable source
provides timely feedback to the coder, which is not a project management tool and does not focus on the implementation of the project from functional analysis to design coding, to testing the whole process.(ii) installationDownload and install Sourcemontor from official website, after installation(iii) Use(1) The new project is shown as follows:(2) Select the development language, such as Java,(3) Fill in the new file name and select the path,(4) Select the path of the project
Label:
Recently Learning MyBatis official documents, see the "Project Document" section has a lot of content has not seen, make a note, understand.
PMD Scans the Java source code to look for potential problems such as:
Possible bugs, such as an empty Try/catch/finally/switch declaration
Dead co
], mappartitionsrdd[4] at mappartitions at basicoperators.scala:174)! Unresolvedrelation None, Temp_shengli_mobile, noneSummarize this article from the source code point of View Analysis Analyzer in the SQL parser resolved unresolve Logical Plan analyze process, the execu
Yahoo open-source MySQL Performance Analysis Tool (MySQL Performance Analyzer ),
Address: https://github.com/yahoo/mysql_perf_analyzerMySQL Performance Analyzer is an open source project for MySQL performance monitoring and analysis. This repository implements des two sub projects: Java web application project myperf J
This article introduces a small open-source project: FLV Encapsulation Format analyzer. FLV, short for Flash Video, is a widely used Video encapsulation format on the Internet. Video websites such as Youtube and Youku all use FLV to encapsulate videos. My project is not large and can be used to learn the FLV Encapsulation Format Structure. In addition, it supports separating video streams and audio streams
This article introduces a small open-source project: H.264 bitstream analyzer. In the course of learning, we have obtained a lot of resources from the open-source community, which is also a feedback to the open-source community.
My project is not large and can be used to learn the H.264
This article introduces a small open-source project: JPEG analyzer. The full name of JPEG is Joint Photographic Experts Group (combined with the image Expert Group), which is the most widely used image encoding standard today. My project is not large and can be used to learn JPEG coding standards. It works better if you look at the source
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.