Badge of the Code Analysis (FxCop) like a 'Project status badge'
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 ?
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
Support Staff 1 Posted by Feodor Fitsner on 09 Feb, 2015 10:06 PM
Well, that something we might add in the future. Thanks for the suggestion.
2 Posted by Diego Giacomell... on 29 Oct, 2015 11:09 PM
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
FxCop
Plato
StyleCop
3 Posted by reg on 30 Oct, 2015 10:43 AM
hmm, is very interesting :)
need to check it later
please use nuget.org at least, for providing all your components...
or, does it already exists in AppVeyor o_O
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.