Analyze your C# Source files using PowerShell and the Get-RoslynInfo C(www.dougfinke.com)

submitted by NoldorinNoldorin(829) 6 months, 22 days ago

"Get-RoslynInfo let’s me walk up to directory, get a listing of all C# files and then pipe it to my custom Roslyn SyntaxWalker, PipelinedSyntaxWalker, which visits the Classes and Methods and gives the results below. It shows me the name the declaration, either the class name or method name, the file it is in (including the full file name) and the line number it was found on"

3 comments |category: |Views: 25

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by NoldorinNoldorin(829) 6 months, 22 days ago 0

This is a pretty cool application of both Roslyn and Powershell in my view. Being able to reliability pull up statistics about your code like this, while perhaps not exceedingly useful to many people, is a pretty neat trick nonetheless...

Reply

posted by dpetersondpeterson(4397) replied to NoldorinNoldorin(829), 6 months, 22 days ago 0

I can see it being very useful in shops where code metrics are employed. Not necessarily to see how much code people are outputting, but how the code is changing. It could be graphed over time and possibly used along with other tools (like blame) to help visualize how different departments are effecting the codebase.
If nothing else, it has the "wow" factor.

Reply

posted by NoldorinNoldorin(829) replied to dpetersondpeterson(4397), 6 months, 21 days ago 0

This is true. Depending on the software management methodology being used, it could definitely be handy. As part of Continuous Integration it could definitely play a role.

Reply

information Login or create an account to comment on this story