FXC350201: Assembly should not contain problems which are detected with Microsoft FxCop |
The assembly will be checked with Microsoft FxCop for potential problems (if the tool is installed).
CheckId | FXC350201 |
---|---|
TypeName | FxCopAnalysis |
Severity | Error |
Type | Assembly |
The rule will be executed if the tool FxCop is installed locally. If the tool will not be found the rule will throw an exception.
Important: Not all FxCop are applied. The analysis uses a subset of FxCop rules which are defined in file [SPCAFInstallation]/RuleSets/MSOCAF.ruleset. The file uses the same FxCop rules as MSOCAF (Microsoft SharePoint Online Code Analysis Framework) to provide similiar behaviour. You can override the used ruleset file by using the configuration parameter 'FxCopRuleSets' in the SPCAF ruleset file.
Name | Description |
---|---|
FxCopExecutable | Absolute or relative path to FxCop executable FxCopCmd.exe. By default SPCAF searches for FxCopCmd.exe at the typical installation locations of FxCop. |
FxCopDirectories | List of directories (separated by ';') in which FxCop searches for referenced assemblies. |
FxCopRuleSets | List of FxCop rule set files (separated by ';'). By default SPCAF uses the MSOCAF.ruleset to limit the number of applied rules to a recommended set for SharePoint. |
To suppress this violation in managed code add the following attribute to the method which contains the instruction (available since SPCAF version v5.2). Learn more about SuppressMessage here.
[SuppressMessage("SPCAF.Integration.FxCop.FxCop", "FXC350201:FxCopAnalysis", Justification = "Provide reason for suppression here")]