Reference · updated
Cloud Manager code quality rules explained
Cloud Manager runs Adobe's custom code quality rules on every pipeline: SonarQube rules on your Java code and OakPAL checks on your content packages and Oak index definitions. Below is one page per rule, 46 pages in all. Each gives what triggers the rule, a before/after example, the fix and whether it stops your pipeline.
Adobe's page lists the rules with their key, type, severity and the Cloud Manager release that introduced them. We checked it on 10 Nov 2026. Rules that are variants of the same check (the seven CQBP-44 logging rules, the two IndexDamAssetLucene checks) share one page.
How the quality gate decides
| Metric | Fails when | Gate level |
|---|---|---|
| Security Rating | below B (any major or worse vulnerability) | Critical: pipeline stops |
| Reliability Rating | below D (any blocker bug) | Critical: pipeline stops |
| Maintainability Rating | below A (code-smell fix time over 5% of development time) | Important: pipeline pauses, can be overridden |
| Coverage | below 50% | Important |
| Open issues, Cloud Service compatibility | above 0 | Info only |
Java code rules (SonarQube) (12)
| Rule | Type · severity | What it flags |
|---|---|---|
| CWE-676 | Vulnerability · Major | Do not use potentially dangerous functions |
| CWE-134 | Vulnerability · Major | Do not use format strings that are externally controlled |
| ConnectionTimeoutMechanism | Bug · Critical | HTTP requests should always have socket and connect timeouts |
| CQBP-72 | Code Smell · Major | Always close ResourceResolver objects |
| CQBP-75 | Code Smell · Major | Do not use Sling servlet paths to register servlets |
| CQBP-44: logging rules | Code Smell · Minor | CQBP-44 logging rules (seven variants) |
| CQBP-71 | Code Smell · Minor | Avoid hardcoded apps and libs paths |
| AMSCORE-554 | Code Smell · Minor | Do not use Sling scheduler |
| java:S1874 | Vulnerability or Bug · Info, Minor or Major | Do not use Experience Manager deprecated APIs (deprecated API removal) |
| AMSCORE-553 | Code Smell · Minor | Do not use Experience Manager deprecated APIs (context-specific deprecation) |
| InjectAnnotationWithOptionalInjectionCheck | Software quality · Minor | Do not use @Inject annotation with @Optional in Sling Models |
| AEMSRE-870 | Software quality · Minor | Reuse instances of a HTTPClient |
Content package rules (OakPAL) (14)
| Rule | Type · severity | What it flags |
|---|---|---|
| CQBP-84 | Bug · Critical | Customers should not implement or extend Product APIs annotated with @ProviderType |
| BannedPath | Bug · Critical | Do not create or modify nodes under libs in customer packages |
| DuplicateOsgiConfigurations | Bug · Major | Packages should not contain duplicate OSGi configurations |
| ConfigAndInstallShouldOnlyContainOsgiNodes | Bug · Major | Config and install folders should only contain OSGi nodes |
| PackageOverlaps | Bug · Major | Packages should not overlap |
| ClassicUIAuthoringMode | Code Smell · Minor | The default authoring mode should not be classic UI |
| ComponentWithOnlyClassicUIDialog | Code Smell · Minor | Components with dialogs should have Touch UI dialogs |
| ImmutableMutableMixedPackage | Code Smell · Minor | Packages should not mix mutable and immutable content |
| ReverseReplication | Code Smell · Minor | Do not use reverse replication agents |
| ClientlibProxyResource | Bug · Minor | Resources in proxy-enabled client libraries should be in a folder named resources |
| CloudServiceIncompatibleWorkflowProcess | Bug · Major | Usage of Cloud Service incompatible workflow processes |
| StaticTemplateUsage | Code Smell · Minor | Usage of static templates is discouraged in favor of editable templates |
| LegacyFoundationComponentUsage | Code Smell · Minor | Usage of legacy foundation components is discouraged |
| SupportedRunmode | Code Smell · Minor | Only use supported run mode names and ordering |
Oak index definition rules (OakPAL) (20)
| Rule | Type · severity | What it flags |
|---|---|---|
| IndexTikaNode | Bug · Blocker | Custom Lucene Oak indexes must have a Tika configuration |
| IndexAsyncProperty | Bug · Blocker | Custom Lucene Oak Indexes must not be synchronous |
| IndexDamAssetLucene | Bug · Blocker | Custom DAM Asset Lucene Oak indexes are properly structured / must not specify queryPaths |
| OakIndexLocation | Code Smell · Minor | Custom search index definition nodes must be direct children of /oak:index |
| IndexCompatVersion | Code Smell · Major | Custom search index definition nodes must have a compatVersion of 2 |
| IndexDescendantNodeType | Code Smell · Minor | Descendent nodes of custom search index definition nodes must be of type nt:unstructured |
| IndexRulesNode | Code Smell · Minor | Custom search index definition nodes must contain a child node named indexRules that has children |
| IndexName, IndexValidFullyCustomName | Code Smell · Minor | Custom search index definition nodes must follow naming conventions |
| IndexType | Bug · Blocker | Custom search index definition nodes must use the index type Lucene |
| IndexSeedProperty, IndexReindexProperty | Code Smell · Minor | Custom search index definition nodes must not contain a property named seed / reindex |
| IndexIncludedPathsWithoutQueryPaths | Code Smell · Minor | Index node specifying includedPaths should also specify queryPaths with the same values |
| IndexFulltextOnGenericType | Code Smell · Minor | Index node specifying nodeScopeIndex on a generic node type should also specify includedPaths and queryPaths |
| OverrideOfQueryLimitReads | Code Smell · Minor | The queryLimitReads property of the query engine should not be overridden |
| IndexDetectMultipleActiveVersionsOfSameIndex | Code Smell · Minor | Multiple active versions of the same index |
| oakpal-same-property-different-analyzed-values | Code Smell · Minor | Same property with different analyzed values in the same index definition |
| IndexHasValidTagsProperty | Code Smell · Minor | Tags property |
| IndexNotUnderUIContent | Improvement · Minor | Index definition nodes must not be deployed in UI content package |
| CustomFulltextIndexesOfTheDamAssetCheck | Improvement · Minor | Custom full-text index definition of type damAssetLucene must be correctly prefixed with 'damAssetLucene' |
| RestrictIndexCustomization | Improvement · Minor | Customizing of certain standard index definitions is prohibited |
| Index definition hygiene | Improvement · Minor | Index definition hygiene: duplicate property names, tokenizer naming, spaces in paths |
Questions
Where do I see which rules my build broke?
In Cloud Manager, open the pipeline execution and the code quality step, then download the details. Each row names the rule key, file and line.
Which rules actually stop a pipeline?
Rules that push the Security Rating below B or the Reliability Rating below D are critical failures. Since August 2024 several index rules also fail the pipeline directly. Most code smells only matter in bulk, through the Maintainability Rating.
Can I check this before pushing to Cloud Manager?
Yes. Many checks can run in your own Maven build (the FileVault package validators and the AEM Analyser plugin in the AEM project archetype), and SonarQube can run locally. Our free readiness scan also lists Cloud Service blockers from a repository zip in your browser.
How are these different from Best Practices Analyzer codes?
BPA scans a running AEM 6.x instance before migration. Code quality rules scan your code and packages on every Cloud Manager build. Several overlap, for example BannedPath and BPA LOCP.
Related references: Best Practices Analyzer codes · deprecated AEM APIs · Cloud Manager failing on deprecated APIs · custom Oak indexes on Cloud Service · Cloud Manager build and deployment errors.