Skip to content
devonfw-core edited this page Jan 9, 2023 · 4 revisions

Rules

This sections describes all SonarQube rules provided by this plugin.

Architectural Dependency Rules

The following image illustrates the devonfw architecture rules. The arrows show the allowed dependencies in green, discouraged dependencies in orange and forbidden dependencies in red. Devon Architecture Rules

Within the same component you are always allowed to call code from the same layer and scope as well as the API from the next layer below. Discouraged and forbidden dependencies are always implemented by its own SonarQube rule. This gives you absolute flexibility to customize the severity of such architecture violation. These dependencies have a white circle with a unique label. For each label we link the according rule to give you transparency and help you customizing.

Package Rules

Additionally, there is a generic rule that checks the devonfw packaging conventions:

Naming Convention Rules

Security Rules

As of version 3.2.1, we have started adding security-related rules to our plugin: