Updated on 2024-08-27 GMT+08:00

Glossary

Table 1 CodeArts Check glossary

Glossary

Definition

Duplication rate

Formula: Duplication rate = Duplicate LOC/Total LOC.

Duplicate lines: identical code in multiple locations within a program.

Duplicate blocks: Java: 10 consecutive lines; others: 100 consecutive characters in 10 lines.

Rule

Rules are used to check code, including code issue impact and fix suggestions.

Rule set

A set of check rules defined for specific languages to improve code quality.

Cyclomatic complexity

A metric used to indicate the code complexity. It has an impact on the code maintainability and testability. A high cyclomatic complexity indicates a high possibility of code errors.

Formula: Average cyclomatic complexity = Loop complexity/Number of functions.

Categorization of cyclomatic complexity:

  • 1–5: little risk
  • 6–10: moderate risk
  • 11–20: medium risk
  • 21–50: high risk
  • 51+: extremely high risk
  • N/A: language not supported

SDLC

Software development life cycle.

Issue display

A function showing the lines of code where issues are found. Users can view and fix code issues online.

Delayed rollout

The upgraded check engines may detect new issues. These new issues will be counted if not fixed or masked during a 60-day buffer period.

Execution plan

An automatic triggering mode of check tasks for more flexible, easy to use, and automated check.