1. Use of MVN Checkstyle plugin
You can get Checkstyle reports on target/site/checkstyle.html and target/without any setup, directly running MVN checkstyle:checkstyle Checkstyle-result.xml. The check rule for the Checkstyle used is Sun_checks.xml-sun Microsystems Definition (default).
If you want to use custom rules, the version above maven3.0 needs to be added under the Pom.xml
And it should be
The above is for a single module project.
For project with multiple module, you need to make a
Read and display of PMD format model
has been in the Mayflower, spent more than 10 days of research has finally come to fruition, write a diary to commemorate.
PMD, full name polygon model Document, is a three-dimensional modeling format, mainly used in Mikumikudance and Pmdeditor. The description of the format is even less, so my research mainly refer to Itsuhane's MMD library.
Here are some simple free-to-share tools, technical support groups: 592132877, providing customized service development.GIF Motion Synthesis toolThe main function is to scan all the zip files in the specified folder, then extract the pictures in the zip file, and synthesize a GIF picture, save to the new path, support the time to set GIF, the demo effect is as follows:: GIF compositing toolFile Bulk Move ToolThe main function is to copy all the files in the specified folder and subfolders to the
, grammar analysis, semantic analysis ... But unlike compilers, they can customize a variety of complex rules to analyze the code.Static Detection tools:Pmd
1) PMD is a code-checking tool that analyzes Java source code to identify potential problems:
1) Potential bug: Empty Try/catch/finally/switch statement
2) Unused code: Unused local variables, parameters, private methods, etc.
easier it is to add new product features. Tools such as Checkstyle can help find places that can affect maintainability, conflict with coding standards, such as large classes, too long methods, unused variables, and so on.
about PMDAnother Open-source tool, called PMD, provides similar functionality as Checkstyle. I prefer Checkstyle, but
Ncodegenerate is a razor syntax based on the. NET platform.CodeGenerate a tool.
Main features:
1. Use razor and C.
2. syntax highlighting prompt, which is automatically folded.
2. Enter a smart prompt. The @ model syntax smart prompt is supported.
3. The parameter model is directly customized using the C # class.
4. Supports multiple databases (currently MySQL, SQL Server, and Oracle), and supports expansion of write plug-ins.
5. Support
" code analysis areas:
Coding standards
Code duplication
Code Coverage
Dependency analysis
Monitoring of complexity
You can use the next few flexible Eclipse plugins to uncover these areas of analysis:
CheckStyle: For coding standards
PMD CPD: Help Find code duplication
Coverlipse: Measure code Coverage
JDepend: Providing dependency analysis
Eclipse Metric Plugin: Effectively isolate complexity
· 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
· 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
· 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
·
Blur tool, sharpen tool, smudge tool: RUse of the Blur tool: Reduce the contrast between pixels and reduce the contrast of the image.The sharpening tool, in contrast to the use of the Blur tool, enhances the contrast between pixel
. DBSchema document, which is connected in the following document.
Attached:
NCodeGenerate.zip
Document: Document
NCodeGenerate series of articles:I. What is NCodeGenerate? Ii. Code Generation Tool-NCodeGenerate tutorial (1) traverse all tables in the database III. Code Generation Tool-NCodeGenerate tutorial (2) code Generation Tool-NCodeGenerate tutorial (3) ge
Special character escape
Because WEB applications need to be federated to multiple languages, each containing some special characters, for dynamic or tabbed languages, a problem that we often encounter when we need to dynamically construct the content of a language is the escape of special characters. The following are some of the special character types that Web developers most frequently need to escape: HTML special characters; JavaScript special characters; SQL special characters;
If you do n
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
CodeSmith is one of the most widely used tools in code generation and has rich template resources and users. Many of my friends used CodeSmith and there are many ready-made templates. NCodeGenerate provides a template Conversion Tool from CodeSmith to NCodeGenerate. It makes it easier for users to switch from CodeSmith to NCodeGenerate. Next we will introduce it.
Open the tool menu> CodeSmith Conversion
Ncodegenerate asCodeGenerate tool. You can edit templates, check syntax, and execute template generation code. If there is no logical error in the template, there is no problem in the whole process. But who can ensure there is no error in the written template? Can you? I cannot.ProgramDevelopers know that code debugging takes much longer than code writing during development. Okay, ncodegenerate provides the debugging function. Today, we will briefly t
There are a lot of plug-ins in the eclipse environment that can help us with the static analysis of the code, which can help us find bugs in the code as early as possible. Here are a few common plug-ins:
1. PMD
We can install the PMD plug-in for eclipse through Http://pmd.sourceforge.net/eclipse.
PMD is a Java source Code analysis
Compile tool (Compilers)
Compiler
Masm32 v8.2Masm32 v9.0
Learning w32asm programming uses masm32, because 99% of win32asm programmers use MASM. Http://www.movsd.com/
RadAsm 2.2.1.2
The Assembly editor requires masm32. this version provides good support for Chinese characters. Chinese: caocongEnglish to the official website download: http://www.radasm.com/
Auxiliary Tools
Apilist 1.01
Displays,
************* before you start HBase, make sure the ZK cluster is started ***************** The location of the Hmaster is not configured in the configuration file, and the result is which node starts HBase and which node is hmaster******* ****** HBase can start multiple hmaster by hbase-daemon.sh start Master, which is redundant standby status ****** To view the startup process:------------------------------------------------------------------------hmasterhregionserver---------------------- --
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.