Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Blog - Using Gendarme with CruiseControl.Net for code analysis
</msbuild>
2: <exec>
3: <executable>powershell</executable>
4: <buildArgs>-Command "Get-ChildItem -Path 'D:\SomeDir\Work' -Recurse -Include MyCompany*.dll -Exclude *.Test*.dll,*Generated.dll | sort -Property Name -Unique | sort -Property FullName | foreach {$_.FullName} | Out-File -FilePath 'D:\SomeDir\Artifact\AssembliesForCodeAnalysis.txt' -Width 255"</buildArgs>
5: </exec>
6: <gendarme>
7: <executable>C:\Program Files (x86)\Gendarme\gendarme.exe</executable>
8: <assemblyListFile>D:\SomeDir\Artifact\AssembliesForCodeAnalysis.txt</assemblyListFile>
9: <baseDirectory>D:\SomeDir\Work</baseDirectory>
10: <limit>2000</limit>
11: <severity>medium+</severity>
12: <confidence>high</confidence>
13: <quiet>FALSE</quiet>
14: <verbose>TRUE</verbose>
15: <failBuildOnFoundDefects>FALSE</failBuildOnFoundDefects>
16: <verifyTimeoutSeconds>600</verifyTimeoutSeconds>
17: </gendarme>
18: </tasks>
19: <publishers>
20: <merge>
21: <files>
22: <file>D:\SomeDir\Artifact\test-results\*.xml</file>
23: <file>D:\SomeDir\Artifact\gendarme-results.xml</file>
24: </files>
25: </merge>
26: <statistics />
<buildPlugins>
<buildReportBuildPlugin>
<xslFileNames>
<xslFile>xsl\gendarme-summary-ccnet.xsl</xslFile>
</xslFileNames>
<xslReportBuildPlugin description="Gendarme Report" actionName="GendarmeBuildReport" xslFileName="xsl\gendarme-report-ccnet.xsl"/>
</buildReportBuildPlugin>
Get-ChildItem -Path 'D:\SomeDir\Work' -Recurse -Include MyCompany*.dll -Exclude *.Test*.dll,*Generated.dll | sort -Property Name -Unique | sort -Property FullName | foreach {$_.FullName} | Out-File -FilePath 'D:\SomeDir\Artifact\AssembliesForCodeAnalysis.txt' -Width 255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment