Correctness |
Correctness rules check the code for syntax errors.
Index
Rule | Description | Type | Severity |
---|---|---|---|
SPF010101: Specify component type in the manifest | The manifest must specify the type of component | Project | CriticalError |
SPF010102: Specify valid component type in the manifest | The manifest must specify a valid component type | Project | CriticalError |
SPF010201: Define the solution name property | The package-solution.json file needs to contain the Solution Name property. | PackageSolutionConfig | CriticalError |
SPF010202: Define a version number for your solution | The package-solution.json file doesn't contain the Solution Version property. | PackageSolutionConfig | CriticalError |
SPF010203: Ensure that the solution version number is valid | The package-solution.json file doesn't specify a valid solution version number | PackageSolutionConfig | CriticalError |
SPF010204: Define a valid id for your solution | The package-solution.json file doesn't contain the Solution Id property. | PackageSolutionConfig | CriticalError |
SPF010205: Ensure that the solution id is valid | The package-solution.json file doesn't specify a properly formatted Solution Id (Guid). | PackageSolutionConfig | CriticalError |
SPF010206: Specify solution configuration in the package-solution.json file | The package-solution.json file must specify solution configuration | PackageSolutionConfig | CriticalError |
SPF010207: Specify solution paths configuration in the package-solution.json file | The package-solution.json file must specify solution paths configuration | PackageSolutionConfig | CriticalError |
SPF010208: 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 |
SPF010301: Define CDN base path | The write-manifests.json file doesn't specify the CDN base path. | WriteManifestsConfig | CriticalError |
SPF010302: Specify valid CDN base path | The write-manifests.json file doesn't specify a valid CDN base path. | WriteManifestsConfig | CriticalError |
SPF010401: Specify the entry point for a bundle component | Bundle component must specify the entry point | BundleEntry | Error |
SPF010402: Component entry point in a bundle must point to a valid project file | Component entry point in a bundle must point to a valid project file | BundleEntry | Error |
SPF010403: Specify a valid bundle entry output path | Bundle entry must specify the bundle output path | BundleEntry | CriticalError |
SPF010404: Bundle entry output path must be located under the dist folder | Bundle entry output path must be located under the dist folder | BundleEntry | CriticalError |
SPF010601: React event handlers are defined using camelCased properties | React event handlers are defined using camelCased properties | Src | Error |
SPF010701: Specify the Web Part Id | The Web Part manifest must specify the id | Web Part Manifest | CriticalError |
SPF010702: 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 |
SPF010703: Specify the Web Part Title | The Web Part manifest must specify the Web Part Title | Web Part Manifest | CriticalError |
SPF010704: Specify Web Part version | Web Part manifest must specify the Web Part version | Web Part Manifest | CriticalError |
SPF010705: Specify valid Web Part version | Web Part manifest must specify valid Web Part version using a valid SemVer version number or * | Web Part Manifest | CriticalError |
SPF010706: Specify the Web Part manifest version | Web Part manifest must specify the manifest version number | Web Part Manifest | CriticalError |
SPF010707: Specify valid Web Part manifest version | Web Part manifest must specify a valid manifest version number | Web Part Manifest | CriticalError |
SPF010708: Specify Web Part Properties | Web Part manifest must specify Web Part Properties | Web Part Manifest | CriticalError |
SPF010709: Specify valid Web Part Id | Specify a valid Web Part Id using a Guid | Web Part Manifest | CriticalError |
SPF010710: Use a valid font icon as Web Part icon | Web Part uses as icon one of the valid font icons | Web Part Manifest | Warning |
SPF010711: 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 | Warning |
SPF010712: Specify the Web Part Description | The Web Part manifest must specify the Web Part Description | Web Part Manifest | Warning |
SPF010713: Specify Web Part image | The Web Part manifest must specify a Web Part image | Web Part Manifest | Warning |
SPF010714: 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 |
SPF010715: Specify valid Web Part image URL | Specify valid Web Part image URL | Web Part Manifest | Warning |
SPF010801: 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 | Warning |
SPF010802: Don't use HttpClient to connect to SharePoint | Don't use HttpClient to connect to SharePoint. Use the SPHttpClient instead | JavaScriptFile | CriticalError |
SPF010803: Don't use PropertyPaneTextField with numeric properties | Don't use PropertyPaneTextField with numeric properties | JavaScriptFile | CriticalWarning |
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.