Common scanning tool
-
PMD-CPD: Copy / Paste Detector (CPD) detection of the code repetition rate
-
PMD: Java source code analysis, identify potential bug
-
Findbugs: Java bug check
-
checkstyle: Fixed team coding style, naming style and fixed wrap style
-
P3C: Alibaba Java specification, this is the PMD scanning, but removed n rule PMD comes to perform only Ali's rule
-
Sonar Quabe: a one-stop platform code quality review
-
JaCoCo (Java Code Coverage): Test coverage test coverage widget code means, for example, may be configured to cover and branch coverage global row.
JaCoCo contains multiple scales coverage counter, comprising
instruction-level cover (Instructions, C0coverage),
branches (Branches, C1coverage),
cyclomatic complexity (CyclomaticComplexity),
covered lines (Lines),
the method covers (non-abstract methods),
covering class (classes) -
Fortify: Fortify SCA security scan tool for detecting security coding rule, is a static, software source code of white-box security testing tools
-
SourceMonitor: code complexity metric ring
The complexity of the code ring (Cyclomatic complexity, sometimes translated as cyclomatic complexity)] A code is a measure of the complexity of the calculation formula.
Code Complexity ring E = - N 2 +
E = number of edges in the program control flow graph of
N = number of the program control flow graph midpoint
easily conclude that: the higher the complexity of the code ring, the more easily bug.