Common java code quality inspection tool .md

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.

references:

  1. Java code quality checks checkstyle, pmd, cpd, p3c, findbugs, jacoco, sonarquebe as well as integration and Jenkins
Published 418 original articles · won praise 745 · Views 1.26 million +

Guess you like

Origin blog.csdn.net/u013467442/article/details/103208554
Recommended