Put my latest updated MyEclipse2014 integrated PMD code detection plug-in custom rule profile Java version released, to facilitate their future review, but also to see if they can help to have this need of small partners. FileName: cplatform_pmd5.2.3_rules.xml
· Junitstaticsuite:the Suite () method in a JUnit test needs to is both public and static.
Translation JUnit Static Suite: The Suite () method needs to be public and static in JUnit testing
· Junitspelling:some JUnit Framework methods are easy to misspell.
JUnit spelling: Some JUnit framework methods are easy to spell incorrectly.
· Junitassertionsshouldincludemessage:junit assertions should include a message-i.e., use the three argument version of a
Normal 0 7.8 lb 0 2 false false MicrosoftInternetExplorer4
· Emptycatchblock:empty Catch block finds instances where a exception is caught. In most circumstances, this swallows a exception which should to either on or acted.
Translation empty catch blocks: discovering empty catch blocks does not do anything unusual, in most cases, this will devour some exceptions that should be handled or reported
· Emptyifstmt:empty If Statement finds instances where a condition is checked but the nothing are d
· Beanmembersshouldserialize: If a class is a bean, or is referenced by a bean directly or indirectly it needs to be serializable. member variables need to be marked as transient, static, or have accessor methods in the class. marking variables as
· Propercloneimplementation:object Clone () should is implemented with Super.clone ().
Translate the appropriate cloning implementation: The object's Clone () method should contain the Super.clone () implementation
·
code. To use this convenient tool in eclipse, you need to install the Eclipse plug-in with PMD, which has the CPD function.
To find duplicate code, right-click an Eclipse project and selectPMD | find Suspect cut and paste, As shown in Figure 8:
Figure8.UseCPDPlugin running copy and paste Test
Once CPD is run, a report is created under your eclipse root directory.FolderContains a file called cpd.txt, which
you build or integrate through continuous integration. This is what I call progressive programming, which allows a certain level of quality testing in the coding process--no longer than this!
This article covers what I think is the "five Big" code Analysis area:
Coding standard
Code duplication
Code Coverage
Dependency analysis
Complexity monitoring
You can use the next few flexible Eclipse plug-ins to uncover these areas of
and the distance was relatively short, the impact of PMD on single-mode optical fiber systems was negligible. As the demand for bandwidth increases, especially in systems with 10 Gbit/s and a higher rate, PMD has become a factor limiting system performance, because it will lead to a large pulse widening or a low signal-to-noise ratio (SNR ). Shows the transfer distance restricted by the
, through the loop, fill the PUD entry one by one, and assign and initialize the next order Page table.(4) If there is no possible 1G block address mapping, the code logic here is similar to the one in the previous section, except that the constant loop call Alloc_init_pud is changed to ALLOC_INIT_PMD. However, ARM64 's MMU hardware provides a gray, powerful feature that supports the 1G size block mapping, which can get a lot of benefits if applied: no need to allocate subordinate translation ta
-in Translationplugin, support to support Chinese-English translation, Word reading, detailed installation documentation please refer to: Translationplugin Introduction and Installation manual Hot deployment Plug-in Jrebel
Jrebel Hot Deployment Plug-in installation and use refer to: Jrebel Hot Deployment Plugin Install and use Maven Helper
The Maven helper plug-in is used to find a very useful plug-in insta
Use Sonar for code Quality Management
This article describes how to build and use the code Quality Management Platform Sonar. Sonar is an open-source platform for managing the quality of source code. You will see the process from Sonar installation to setup, and how to use the Maven plug-in the project for convenient code quality management.Sonar Overview
Sonar i
About SonarSonar is an open source platform for code Quality management that manages the quality of your source code, and can detect code quality from seven dimensionsIn the form of plug-in, you can support code quality management and testing of more than 20 programming languages including Java,c#,c/c++,pl/sql,cobol,javascrip,groovy and so on.what can Sonarqube bring? Developers ' Seven Deadly Sins1. Poor complexity distributionFiles, classes, methods, and so on, if the complexity is too high wi
SonarQube code Quality Management Platform Installation and Use
Sonar Introduction
Sonar is an open-source platform for code quality management. It manages the quality of source code and can detect code quality from seven dimensions.
Supports code quality management and detection in more than 20 programming languages, including java, C #, C/C ++, PL/SQL, Cobol, JavaScrip, and Groovy.
What does sonarQube bring?
Developers 'seven Deadly Sins1. Poor comp
The last one said we had a preliminary business analysis and got the user, business use case and business scenario model. These three outcomes form the basic requirements framework and delineate the scope of the business. A baseline should be made at this time.
Of course, the first baseline contains very thick content, and there is more work to be done to achieve the full requirements. This article is about the detailed requirements process and outpu
perform large data processing in a single pass. The framework is designed to: a MapReduce cluster can be extended to thousands of nodes in a fault-tolerant manner. However, the MapReduce programming model has its own limitations. Its single input, two-stage data flows in strict, and the level is too low. For example, you would have to write custom code even for the most common operations. As a result, many programmers feel that the MapReduce framework is uncomfortable to
http://www.ibm.com/developerworks/cn/java/j-appfuse/AppFuse is an open source project and application that uses open source tools built on the Java platform to help us develop WEB applications quickly and efficiently. I originally developed it to reduce the unnecessary time spent building new WEB applications for customers. From the core, AppFuse is a project skeleton, similar to what the IDE creates when you create a new Web project through the wizard. When we create a project using AppFuse, it
Label:Vi/vim Use advanced: Use GDB debugging in Vim – use Vimgdb The help entry for the commands used in this section: In the original design of Unix system, there is a very important idea: each program only to achieve a single function, through the pipeline and other ways to connect multiple programs, so that they work together to achieve more powerful function
Teach you how to use start uml to draw Use Case Diagrams and uml use cases
I have recently prepared to study volley's source code, but I have read some blogs on the Internet. They all work with the diagram. This looks more intuitive and the analysis logic is also good, what kind of diagrams can clearly analyze the relationships between various types and how to ex
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.