PerTenantExtensionCop Analyzer Rules

PerTenantExtensionCop is an analyzer that enforces rules that must be respected by extensions meant to be installed for individual tenants.

Rules

IdTitleCategoryDefault severity
PTE0001Object ID must be in free range.ExtensibilityError
PTE0002Field ID must be in free range.ExtensibilityError
PTE0003Procedures must not subscribe to CompanyOpen eventsExtensibilityError
PTE0004Table definitions must have a matching permission set.ConfigurationError
PTE0005The compilation target of an application must be a value that is allowed in a multi-tenant SaaS environmentExtensibilityError
PTE0006Encryption key functions must not be invoked.ExtensibilityError
PTE0007Test assertion functions are not allowed in a non-test context.ExtensibilityError
PTE0008Page controls and actions must use the ApplicationArea propertyExtensibilityError
PTE0009This app.json property must not be used for per-tenant extensions.ExtensibilityError
PTE0010The extension name is too long.ExtensibilityError
PTE0011The publisher name is too long.ExtensibilityError
PTE0012InternalsVisibleTo should not be used as a security feature.ExtensibilityWarning
PTE0013Entitlements cannot be defined in an extension.ConfigurationError
PTE0014Permission Sets should not be defined in XML files.ConfigurationWarning
PTE0015The extension name is not valid.ExtensibilityError
PTE0016Permission set extensions should not include permissions for objects defined in another application.ExtensibilityWarning
PTE0017Permission set extensions should not include permission sets defined in another application.ExtensibilityWarning
PTE0018Permission set extensions should not include permission sets which include permissions for objects defined in another application.ExtensibilityWarning
PTE0019Permission set extensions should not include wildcard permissions.ExtensibilityWarning
PTE0020Use the 'application' property instead of specifying an explicit dependency on Base Application.ExtensibilityWarning
PTE0021Defining reserved namespaces is not allowed.ConfigurationError
PTE0022The member ID should be within the allowed rangeExtensibilityInfo
PTE0023The enum ordinal value should be within the allowed rangeExtensibilityInfo
PTE0024Moving tables or fields is not allowed on per-tenant extensions.ExtensibilityError
PTE0025Avoid using duplicate object namesExtensibilityWarning
PTE0026Table fields should use the AllowInCustomizations propertyExtensibilityHidden

Using the Code Analysis Tool
Ruleset for the Code Analysis Tool
Using the Code Analysis Tools with the Ruleset