Skip to content

Commit

Permalink
Following review -- add a simple sample of useage
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Nov 2, 2018
1 parent 3bb180a commit f6d00b7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/app/Fake.DotNet.FxCop/FxCop.fs
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/// Contains a task to invoke the FxCop tool
///
/// ### Sample
///
/// 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})
///
[<RequireQualifiedAccess>]
module Fake.DotNet.FxCop

Expand Down

0 comments on commit f6d00b7

Please sign in to comment.