Skip to content

Commit

Permalink
Testing FxCop badge
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Oct 1, 2015
1 parent 565ce90 commit 7f369e3
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,4 @@ tools/coverage/
tools/fxcop-report.xml
opencoverCoverage.xml
tools/fxcop-report.html
tools/FxCop-badge.svg
8 changes: 5 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ build:

after_build:
- cmd: >-
"C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe" /project:.\src\SampleProject.FxCop /out:fxcop-report.html /oXsl:.\tools\FxCopRichConsoleOutput.xsl /applyoutXsl
"C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe" /project:.\src\SampleProject.FxCop /out:.\tools\fxcop-report.xml
.\tools\DotBadge -b "FxCop:fxcop-report.xml" -output "FxCop-badge.svg"
test_script:
- cmd: >-
Expand All @@ -26,6 +28,6 @@ test_script:
- ps: .\src\packages\coveralls.net.0.6.0\tools\csmacnz.Coveralls.exe --opencover -i opencoverCoverage.xml --repoToken $env:COVERALLS_REPO_TOKEN --commitId $env:APPVEYOR_REPO_COMMIT --commitBranch $env:APPVEYOR_REPO_BRANCH --commitAuthor $env:APPVEYOR_REPO_COMMIT_AUTHOR --commitEmail $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL --commitMessage $env:APPVEYOR_REPO_COMMIT_MESSAGE --jobId $env:APPVEYOR_JOB_ID

artifacts:
- path: fxcop-report.html
name: FxCop
- path: .\tools\FxCop-badge.svg
name: FxCop-badge.svg

2 changes: 1 addition & 1 deletion src/SampleProject.FxCop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<FxCopProject Version="10.0" Name="SampleProject">
<ProjectOptions>
<SharedProject>True</SharedProject>
<Stylesheet Apply="True">$(FxCopDir)\Xml\FxCopReport.xsl</Stylesheet>
<Stylesheet Apply="False">$(FxCopDir)\Xml\FxCopReport.xsl</Stylesheet>
<SaveMessages>
<Project Status="Active, Excluded" NewOnly="False" />
<Report Status="Active" NewOnly="False" />
Expand Down
Binary file added tools/DotBadge.Extensions.dll
Binary file not shown.
Binary file added tools/DotBadge.dll
Binary file not shown.
Binary file added tools/DotBadge.exe
Binary file not shown.
Binary file added tools/HelperSharp.dll
Binary file not shown.
7 changes: 5 additions & 2 deletions tools/runFxCop.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
@echo ------------------------------------------
@echo Running FxCop...
@echo ------------------------------------------
@"C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe" /project:"..\SRC\SampleProject.FxCop" /out:fxcop-report.html /oXsl:FxCopReport.xsl /applyoutXsl
@echo fxcop-report.xml file created.
rem @"C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe" /project:"..\SRC\SampleProject.FxCop" /out:fxcop-report.html /oXsl:FxCopReport.xsl /applyoutXsl
@"C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe" /project:"..\SRC\SampleProject.FxCop" /out:fxcop-report.xml
@echo fxcop-report.html file created.

DotBadge -b "FxCop:fxcop-report.xml" -output "FxCop-badge.svg"

@echo Done!
@pause
Expand Down

0 comments on commit 7f369e3

Please sign in to comment.