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

MetricFails whenGate level
Security Ratingbelow B (any major or worse vulnerability)Critical: pipeline stops
Reliability Ratingbelow D (any blocker bug)Critical: pipeline stops
Maintainability Ratingbelow A (code-smell fix time over 5% of development time)Important: pipeline pauses, can be overridden
Coveragebelow 50%Important
Open issues, Cloud Service compatibilityabove 0Info only

Java code rules (SonarQube) (12)

RuleType · severityWhat it flags
CWE-676Vulnerability · MajorDo not use potentially dangerous functions
CWE-134Vulnerability · MajorDo not use format strings that are externally controlled
ConnectionTimeoutMechanismBug · CriticalHTTP requests should always have socket and connect timeouts
CQBP-72Code Smell · MajorAlways close ResourceResolver objects
CQBP-75Code Smell · MajorDo not use Sling servlet paths to register servlets
CQBP-44: logging rulesCode Smell · MinorCQBP-44 logging rules (seven variants)
CQBP-71Code Smell · MinorAvoid hardcoded apps and libs paths
AMSCORE-554Code Smell · MinorDo not use Sling scheduler
java:S1874Vulnerability or Bug · Info, Minor or MajorDo not use Experience Manager deprecated APIs (deprecated API removal)
AMSCORE-553Code Smell · MinorDo not use Experience Manager deprecated APIs (context-specific deprecation)
InjectAnnotationWithOptionalInjectionCheckSoftware quality · MinorDo not use @Inject annotation with @Optional in Sling Models
AEMSRE-870Software quality · MinorReuse instances of a HTTPClient

Content package rules (OakPAL) (14)

RuleType · severityWhat it flags
CQBP-84Bug · CriticalCustomers should not implement or extend Product APIs annotated with @ProviderType
BannedPathBug · CriticalDo not create or modify nodes under libs in customer packages
DuplicateOsgiConfigurationsBug · MajorPackages should not contain duplicate OSGi configurations
ConfigAndInstallShouldOnlyContainOsgiNodesBug · MajorConfig and install folders should only contain OSGi nodes
PackageOverlapsBug · MajorPackages should not overlap
ClassicUIAuthoringModeCode Smell · MinorThe default authoring mode should not be classic UI
ComponentWithOnlyClassicUIDialogCode Smell · MinorComponents with dialogs should have Touch UI dialogs
ImmutableMutableMixedPackageCode Smell · MinorPackages should not mix mutable and immutable content
ReverseReplicationCode Smell · MinorDo not use reverse replication agents
ClientlibProxyResourceBug · MinorResources in proxy-enabled client libraries should be in a folder named resources
CloudServiceIncompatibleWorkflowProcessBug · MajorUsage of Cloud Service incompatible workflow processes
StaticTemplateUsageCode Smell · MinorUsage of static templates is discouraged in favor of editable templates
LegacyFoundationComponentUsageCode Smell · MinorUsage of legacy foundation components is discouraged
SupportedRunmodeCode Smell · MinorOnly use supported run mode names and ordering

Oak index definition rules (OakPAL) (20)

RuleType · severityWhat it flags
IndexTikaNodeBug · BlockerCustom Lucene Oak indexes must have a Tika configuration
IndexAsyncPropertyBug · BlockerCustom Lucene Oak Indexes must not be synchronous
IndexDamAssetLuceneBug · BlockerCustom DAM Asset Lucene Oak indexes are properly structured / must not specify queryPaths
OakIndexLocationCode Smell · MinorCustom search index definition nodes must be direct children of /oak:index
IndexCompatVersionCode Smell · MajorCustom search index definition nodes must have a compatVersion of 2
IndexDescendantNodeTypeCode Smell · MinorDescendent nodes of custom search index definition nodes must be of type nt:unstructured
IndexRulesNodeCode Smell · MinorCustom search index definition nodes must contain a child node named indexRules that has children
IndexName, IndexValidFullyCustomNameCode Smell · MinorCustom search index definition nodes must follow naming conventions
IndexTypeBug · BlockerCustom search index definition nodes must use the index type Lucene
IndexSeedProperty, IndexReindexPropertyCode Smell · MinorCustom search index definition nodes must not contain a property named seed / reindex
IndexIncludedPathsWithoutQueryPathsCode Smell · MinorIndex node specifying includedPaths should also specify queryPaths with the same values
IndexFulltextOnGenericTypeCode Smell · MinorIndex node specifying nodeScopeIndex on a generic node type should also specify includedPaths and queryPaths
OverrideOfQueryLimitReadsCode Smell · MinorThe queryLimitReads property of the query engine should not be overridden
IndexDetectMultipleActiveVersionsOfSameIndexCode Smell · MinorMultiple active versions of the same index
oakpal-same-property-different-analyzed-valuesCode Smell · MinorSame property with different analyzed values in the same index definition
IndexHasValidTagsPropertyCode Smell · MinorTags property
IndexNotUnderUIContentImprovement · MinorIndex definition nodes must not be deployed in UI content package
CustomFulltextIndexesOfTheDamAssetCheckImprovement · MinorCustom full-text index definition of type damAssetLucene must be correctly prefixed with 'damAssetLucene'
RestrictIndexCustomizationImprovement · MinorCustomizing of certain standard index definitions is prohibited
Index definition hygieneImprovement · MinorIndex 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.

Sources

Scan, Convert, Verify, Install

How Surge Migrate helps with a move to AEM as a Cloud Service

Surge Migrate moves a website from any CMS to any CMS, and AEM as a Cloud Service is one of the systems it writes. Pages are converted automatically, and you check the result before you install anything.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →

Content packages installed on a local AEM as a Cloud Service SDK. See the worked examples.

On AEM 6.5 code: Scan AEM 6.5 code free. The scan reads a repository zip or a Best Practices Analyzer CSV in your browser and lists Cloud Service blockers with file, fix and effort. Nothing is uploaded.