Correctness
Expand Minimize

Correctness

Correctness rules check the code for syntax errors.

Index

Rule Description Type Severity
SPF019801: Define the solution name property The package-solution.json file needs to contain the Solution Name property. PackageSolutionConfig CriticalWarning
SPF019802: Define a version number for your solution The package-solution.json file doesn't contain the Solution Version property. PackageSolutionConfig CriticalError
SPF019803: Ensure that the solution version number is valid The package-solution.json file doesn't specify a valid solution version number PackageSolutionConfig CriticalError
SPF019804: Define a valid id for your solution The package-solution.json file doesn't contain the Solution Id property. PackageSolutionConfig CriticalError
SPF019805: Ensure that the solution id is valid The package-solution.json file doesn't specify a properly formatted Solution Id (Guid). PackageSolutionConfig CriticalError
SPF019806: Specify a bundle entry point Bundle entry must specify the bundle entry point BundleEntry CriticalError
SPF019807: Bundle entry point must point to a valid project file Bundle entry point must point to a valid project file BundleEntry CriticalError
SPF019808: Specify a valid bundle entry output path Bundle entry must specify the bundle output path BundleEntry CriticalError
SPF019809: Specify solution configuration in the package-solution.json file The package-solution.json file must specify solution configuration PackageSolutionConfig CriticalError
SPF019810: Specify solution paths configuration in the package-solution.json file The package-solution.json file must specify solution paths configuration PackageSolutionConfig CriticalError
SPF019811: Bundle entry output path must be located under the dist folder Bundle entry output path must be located under the dist folder BundleEntry CriticalError
SPF019812: Specify the path of the zipped package in the package-solution.json file The package-solution.json file must specify the path of the zipped package PackageSolutionConfig CriticalError
SPF019813: Specify component type in the manifest The manifest must specify the type of component Project CriticalError
SPF019814: Specify valid component type in the manifest The manifest must specify a valid component type Project CriticalError
SPF019815: React event handlers are defined using camelCased properties React event handlers are defined using camelCased properties Src CriticalError
SPF019816: Define CDN base path The write-manifests.json file doesn't specify the CDN base path. WriteManifestsConfig CriticalError
SPF019817: Specify valid CDN base path The write-manifests.json file doesn't specify a valid CDN base path. WriteManifestsConfig CriticalError
SPF019901: Specify the Web Part Id The Web Part manifest must specify the id Web Part Manifest CriticalError
SPF019902: Don't use the same id for multiple web parts Different Web Parts in the same project shouldn't be using the same IDs Web Part Manifest CriticalError
SPF019903: Specify the Web Part Title The Web Part manifest must specify the Web Part Title Web Part Manifest CriticalError
SPF019905: Specify Web Part version Web Part manifest must specify the Web Part version Web Part Manifest CriticalError
SPF019906: Specify valid Web Part version Web Part manifest must specify valid Web Part version using a valid SemVer version number Web Part Manifest CriticalError
SPF019907: Specify the Web Part manifest version Web Part manifest must specify the manifest version number Web Part Manifest CriticalError
SPF019908: Specify valid Web Part manifest version Web Part manifest must specify a valid manifest version number Web Part Manifest CriticalError
SPF019910: Specify Web Part Properties Web Part manifest must specify Web Part Properties Web Part Manifest CriticalError
SPF019911: Specify valid Web Part Id Specify a valid Web Part Id using a Guid Web Part Manifest CriticalError
SPF019912: Use a valid font icon as Web Part icon Web Part uses as icon one of the valid font icons Web Part Manifest Warning
SPF019913: Ensure that Web Part properties used in code are defined in the Web Part manifest All Web Part properties used in code must be defined in the Web Part manifest JavaScriptFile CriticalError
SPF019914: Ensure that Web Part properties specified in the manifest are used in code Web Part properties specified in the manifest should be used in code Web Part Manifest CriticalError
SPF019915: Specify the Web Part Description The Web Part manifest must specify the Web Part Description Web Part Manifest CriticalError
SPF019916: Specify Web Part image The Web Part manifest must specify a Web Part image Web Part Manifest CriticalError
SPF019917: Don't specify both Web Part icon and Web Part image Web Part manifest shouldn't specify both the Web Part icon and Web Part image Web Part Manifest Warning
SPF019918: Specify valid Web Part image URL Specify valid Web Part image URL Web Part Manifest CriticalError
SPF229901: Client Side Web Part doesn't use optimized scripts Client Side Web Part doesn't use optimized scripts Web Part Manifest CriticalError
Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.