Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom dictionary support to FxCop #489

Merged
merged 1 commit into from
Jul 2, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/app/FakeLib/FXCopHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ type FxCopParams =
FailOnError : FxCopErrorLevel
TimeOut : TimeSpan
ToolPath : string
ForceOutput : bool }
ForceOutput : bool
CustomDictionary : string }

/// This checks the result file with some XML queries for errors
/// [omit]
Expand Down Expand Up @@ -80,7 +81,8 @@ let FxCopDefaults =
FailOnError = FxCopErrorLevel.DontFailBuild
TimeOut = TimeSpan.FromMinutes 5.
ToolPath = ProgramFilesX86 @@ @"Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\FxCopCmd.exe"
ForceOutput = false }
ForceOutput = false
CustomDictionary = String.Empty }

/// Run FxCop on a group of assemblies.
let FxCop setParams (assemblies : string seq) =
Expand Down Expand Up @@ -122,6 +124,7 @@ let FxCop setParams (assemblies : string seq) =
append param.SaveResultsInProjectFile "/u "
append param.Verbose "/v "
append param.UseGACSwitch "/gac "
appendFormat "/dic:\"{0}\" " param.CustomDictionary
(!args).ToString()

tracefn "FxCop command\n%s %s" param.ToolPath commandLineCommands
Expand Down