FxCop Module
Contains a task to invoke the FxCop tool
Example
Target.create "FxCop" (fun _ ->
Directory.ensure "./_Reports"
let rules = [ "-Microsoft.Design#CA1011" // maybe sometimes
"-Microsoft.Design#CA1062" ] // null checks, In F#!
!! ("**/bin/Debug/*.dll")
|> FxCop.run { FxCop.Params.Create() with WorkingDirectory = "."
UseGAC = true
Verbose = false
ReportFileName = "_Reports/FxCopReport.xml"
Rules = rules
FailOnError = FxCop.ErrorLevel.Warning
IgnoreGeneratedCode = true})
Types
Type | Description |
Functions and values
Function or value | Description |
Full Usage:
FxCop.run param assemblies
Parameters:
Params
-
The FxCop parameters
assemblies : seq<string>
-
Sequence of assemblies to run FxCop against
|
|