fxcopcmd

Globally disabling FxCop errors in TeamCity

对着背影说爱祢 提交于 2019-12-14 02:06:54
问题 Ok, another FxCop question for today. I've read the arguments regarding the IdentifiersShouldBeCasedCorrectly rule, and whether or not it should be "XML" or "Xml". Well, I'm an "XML" guy and I want to stay that way. Therefore, I do not want FxCop to correct me all of the time. I have been using the SuppressMessage attribute only for specific cases. I have also used FxCop to mark a ton of errors and copied them as "module" level SuppressMessage statements into assemblyinfo.cs. That works

Jenkins FxCop errors should fail the build

我的梦境 提交于 2019-12-13 04:08:31
问题 I have a FxCop.project file which i call using a Jenkins job "C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe" /project:"D:\Testing\Source\FxCop\BrokerApplication.FxCop" /out:"D:\Testing\Source\FxCop\BrokerApplication.xml" What i want is to fail the job if there are any FxCop errors. Is there anyway to do this ? 回答1: After googling for hours I found a partial answer here and decided to update it to an executable. You can find my solution here. How to run it: Checkout FxCopParser.exe

sonar fxcop results not displayed

泪湿孤枕 提交于 2019-12-11 10:41:10
问题 I'm trying to use Sonar on some ASP.Net applications. I have installed Sonar and configured C# environment, and I get this working...except for FXcop (Code Analysis). I followed the official documentation : sonar-runner.bat is ok FXCop path is well configured Sonnar-runner launches FXcop (12.0) correctly FXCop builds the "fxcop-report.xml" in the .sonar directory of the project This file contains some "issues" that I should see in Sonarqube FXCop exit with 1024 code, wich seems ok for sonar

FxCop behavior in VS2010, Code Analysis, and SuppressMessage

拟墨画扇 提交于 2019-12-06 06:21:04
问题 I have a class like this one: [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Io")] public void ParaQueFalleCalidadCodigoUnoIo_ReglaCA1709() { } public void ParaQueFalleCalidadCodigoDosIo_ReglaCA1709() { } I use a custom Ruleset file CustomRules.ruleset <RuleSet Name="RulesNet" ToolsVersion="10.0"> <RuleHintPaths> <Path>C:\Fxcop10.0\Rules</Path> </RuleHintPaths> <Rules AnalyzerId="Microsoft.Analyzers

FxCop behavior in VS2010, Code Analysis, and SuppressMessage

人盡茶涼 提交于 2019-12-04 11:28:05
I have a class like this one: [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Io")] public void ParaQueFalleCalidadCodigoUnoIo_ReglaCA1709() { } public void ParaQueFalleCalidadCodigoDosIo_ReglaCA1709() { } I use a custom Ruleset file CustomRules.ruleset <RuleSet Name="RulesNet" ToolsVersion="10.0"> <RuleHintPaths> <Path>C:\Fxcop10.0\Rules</Path> </RuleHintPaths> <Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed"> <Rule Id="CA1709" Action="Warning" /> </Rules> </RuleSet