5.1.3. Issue Kinds

The Axivion Suite detects six kinds of issues. Each issue kind is associated with an icon and a two-letter abbreviation used to refer to specific issue kinds in the Dashboard API. The following list describes the six issue kinds, along with their icons and abbreviations.

The analysis is highly configurable; therefore, the issues detected depend on your configuration. Consequently, you may only see a subset of these issue kinds in your analysis results.

Architecture Violation dashboard2-uiicon-architectureviolation AV

An architecture violation is an inconsistency between the architecture model and the implementation (i.e., the source code). There are two types: a divergence indicates a hidden dependency in the code that is not modeled in the architecture. An absence indicates a dependency in the architecture model that is not utilized in the source code. The architecture is the foundation of the system, essential for design, implementation, onboarding new colleagues, and planning or discussing changes to the system. Therefore, each architecture violation hinders key software development activities.

Clone dashboard2-uiicon-clone CL

A clone consists of two similar regions in the source code. A type 1 clone is an identical copy. A type 2 clone is a structural copy with renamed identifiers. A type 3 clone is a type 2 clone that also contains added, removed, or modified parts. Clones are often created via copy-and-paste. During source code maintenance – for example, during a bug fix or optimization – any change made to one instance of a clone will likely need to be applied to all other instances. Therefore, if a clone pair diverges because one side is modified, a developer must verify if the change should also be applied to the other side. Type 3 clone findings suggest existing potential inconsistencies.

Cyclic Dependency dashboard2-uiicon-cyclicdependency CY

A cyclic dependency is part of a cyclic structure (also known as a “strongly connected component”) in the call graph (or another dependency graph of the source code). By following a sequence of cyclic dependencies, it is possible to navigate through the cycle and return to the starting point in the code. Understanding and modifying code within a cycle is more difficult than in a tree-like dependency structure.

Dead Entity dashboard2-uiicon-deadcode DE

A callable entity in the source code that cannot be reached from the entry points of the system under analysis is a dead entity. Although dead entities do not contribute to system functionality, they increase maintenance costs because they must be understood, unit-tested, and often refactored. When dead code is resurrected, care must be taken to ensure that no obsolete bugs are reintroduced.

Metric Violation dashboard2-uiicon-metricviolation MV

Code metrics are numeric values used to measure properties of code (such as length, complexity, and nesting). Many metrics have a range of values considered acceptable; values outside this range are typically viewed as problematic. Code with values outside these thresholds violates the metric. In such cases, actions must be taken to improve the code (depending on the intent of the metric), for example, by ensuring it is not too complex or too long.

Style Violation dashboard2-uiicon-styleviolation SV

A broad range of findings – such as MISRA or AUTOSAR-C++ violations, potential bugs, safety and security anomalies, and violations of formatting schemas, coding, or naming conventions – are labeled as style violations. The actions required to fix a style violation depend heavily on the rule being violated. Many rules in the respective coding standards provide rationales and hints on how to fix the violation.

Multiple Issue Kinds dashboard2-uiicon-multipleissues

This icon indicates that multiple kinds of issues occur on the same line.