This is part of the Fake.DotNet.FxCop module.

Params

Parameter type for the FxCop tool

Record Fields

Record FieldDescription
ApplyOutXsl
Signature: bool

Apply the XSL style sheet to the output. Default false.

ConsoleXslFileName
Signature: string

Apply specified XSL to console output. Default empty.

CustomDictionary
Signature: string

Custom dictionary used by spelling rules. Default empty.

CustomRuleset
Signature: string

Rule set to be used for the analysis. It can be a file path to the rule set file or the file name of a built-in rule set. '+' enables all rules in the rule set; '-' disables all rules in the rule set; '=' sets rules to match the rule set and disables all rules that are not enabled in the rule set. Default empty.

DependencyDirectories
Signature: seq<string>

Locations to search for assembly dependencies. Default empty.

DirectOutputToConsole
Signature: bool

Output messages to console, including file and line number information. Default true.

FailOnError
Signature: ErrorLevel

The error level that will cause a build failure. Default ontFailBuild.

ForceOutput
Signature: bool

Write output XML and project files even in the case where no violations occurred. Default false.

IgnoreGeneratedCode
Signature: bool

Suppress analysis results against generated code. Default false.

ImportFiles
Signature: seq<string>

Import XML report(s) or FxCop project file(s). Default empty.

IncludeSummaryReport
Signature: bool

Display summary after analysis. Default true.

OutputXslFileName
Signature: string

Reference the specified XSL in the XML report file or "none" to generate an XML report with no XSL style sheet. Default empty.

PlatformDirectory
Signature: string

Location of platform assemblies. Default empty.

ProjectFile
Signature: string

Project file to load. Default empty.

ReportFileName
Signature: string

FxCop project or XML report output file. Default "FXCopResults.html" in the current working directory

RuleLibraries
Signature: seq<string>

Directory containing rule assemblies or path to rule assembly. Enables all rules. Default empty.

Rules
Signature: seq<string>

Namespace and CheckId strings that identify a Rule. '+' enables the rule; '-' disables the rule. Default empty.

SaveResultsInProjectFile
Signature: bool

Update the project file if there are any changes. Default false.

ToolPath
Signature: string

Path to the FxCop executable. Default = %VSINSTALLDIR%/Team Tools/Static Analysis Tools/FxCop/FxCopCmd.exe where %VSINSTALLDIR% is a Visual Stdio 2017 installation location derived from the registry

Types
Signature: seq<string>

Analyze only these types and members. Default empty

UseGAC
Signature: bool

Search Global Assembly Cache for missing references. Default false.

Verbose
Signature: bool

Give verbose output during analysis. Default true.

WorkingDirectory
Signature: string

Working directory for relative file paths. Default is the current working directory

Static members

Static memberDescription
Params.Create()
Signature: unit -> Params

FxCop Default parameters, values as above