PerTenantExtensionCop Analyzer Rules

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

Rules

Id Title Category Default Severity
PTE0001 Object ID must be in free range. ObjectValidation Error
PTE0002 Field ID must be in free range. ObjectValidation Error
PTE0003 Functions must not subscribe to CompanyOpen events. ObjectValidation Error
PTE0004 Table definitions must have a matching permission set. ObjectValidation Error
PTE0005 Property 'target' has invalid value. PackageValidation Error
PTE0006 Encryption key functions must not be invoked. PackageValidation Error
PTE0007 Test assertion functions are not allowed in a non-test context. PackageValidation Error
PTE0008 Fields must use ApplicationArea property. PackageValidation Error
PTE0009 This app.json property must not be used for per-tenant extensions. PackageValidation Error
PTE0010 The extension name length must not exceed the specified limit. PackageValidation Error
PTE0011 The extension publisher length must not exceed the specified limit. PackageValidation Error
PTE0012 InternalsVisibleTo should not be used as a security feature. Extensibility Warning

See Also

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