Badge of the Code Analysis (FxCop) like a 'Project status badge'

reg's Avatar

reg

08 Feb, 2015 04:43 PM

While I was thinking about the problem with .NET 4.0...

hmm., it will be helpful for team etc. and this as part of the CI should be a more convenient
but yes, this features are really for some new additional service like a Code Climate, SonarQube and similar

However, this can be easier - i.e. this already exist with FxCop, right ? for example:

Using "CodeAnalysis" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\.\FxCopTask.dll".
Task "CodeAnalysis"
Running Code Analysis...
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\FxCop\FxCopCmd.exe /outputCulture:1033 /out:"bin\Release\vsSolutionBuildEvent.dll.CodeAnalysisLog.xml" /file:"bin\Release\vsSolutionBuildEvent.dll" /reference: ... /ruleSet:"=MinimumRecommendedRules.ruleset" /rulesetdirectory:"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\\Rule Sets" /rule:"-C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\FxCop\\Rules" /searchgac /ignoreinvalidtargets /forceoutput /successfile /ignoregeneratedcode /saveMessagesToReport:Active /timeout:120

Then all messages we can see in 'Compilation messages' for example:

warning CA1060: Microsoft.Design : Because it is a P/Invoke method, 'HProcess.GetSystemDefaultLCID()' should be defined in a class named NativeMethods, SafeNativeMethods, or UnsafeNativeMethods.

So! how about of the simple metrics for this as additional details with the 'Build passing' (Project status badge)

all features exist and need only to think about the statuses or rating for badges. it also maybe as number of issues, ratio, simple QG or Technical Debt etc. :) see SonarQube and others...
and to separate list of Issues from FxCop (currently this all in "Messages")

what you think ?

  1. Support Staff 1 Posted by Feodor Fitsner on 09 Feb, 2015 10:06 PM

    Feodor Fitsner's Avatar

    Well, that something we might add in the future. Thanks for the suggestion.

  2. 2 Posted by Diego Giacomell... on 29 Oct, 2015 11:09 PM

    Diego Giacomelli's Avatar

    I've created BadgesSharp to fill this gap: https://github.com/giacomelli/BadgesSharp

    Nowadays it supports DupFinder , FxCop, Plato ando StyleCop badges.

    Take a look:

    DupFinder
    DupFinder

    FxCop
    FxCop

    Plato
    Plato

    StyleCop
    StyleCop

  3. 3 Posted by reg on 30 Oct, 2015 10:43 AM

    reg's Avatar

    hmm, is very interesting :)
    need to check it later

    BadgesSharpCmd.exe - 1.55mb

    please use nuget.org at least, for providing all your components...
    or, does it already exists in AppVeyor o_O

    after_build:
            - cmd: >
            "C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe" /project:[Your FxCop file].FxCop /out:fxcop-report.xml
    
            BadgesSharpCmd -o [your GitHub username] -r [your GitHub repository] -a %GITHUB_REPO_TOKEN% -b FxCop -c fxcop-report.xml
    
  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM
20 Sep, 2024 05:50 PM