Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for comments/metrics in C# code #59

Closed
GoogleCodeExporter opened this issue Aug 23, 2015 · 4 comments
Closed

Support for comments/metrics in C# code #59

GoogleCodeExporter opened this issue Aug 23, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

Apologies in advance if this is not the appropriate venue for questions...

Does gitinspector work for repositories containing .Net code (specifically C#, 
*.cs files)?
How about Windows PowerShell code (*.ps1, *.psm1)?

Original issue reported on code.google.com by [email protected] on 19 Feb 2015 at 5:03

@GoogleCodeExporter
Copy link
Author

You can get them scanned by just supplying -f cs,ps1,psm1. However, comments 
and metrics won't be correctly calculated. For that, all that is needed is a 
simple modification to the following files/modules:

comments.py
metrics.py

Both modules are written to be very general in order to support as many 
languages as possible.

To add support for comments, just modify __comment_begining__, __comment_end__ 
and/or __comment__ in comments.py.

To add support for metrics (ELOC and cyclomatic complexity) you just need to 
modify __metric_eloc__ and __metric_cc_tokens__ in metrics.py.

Patches are welcome :)

/Adam Waldenberg

Original comment by [email protected] on 20 Feb 2015 at 4:58

  • Changed title: Support for comments/metrics in C# and PowerShell code
  • Changed state: Accepted
  • Added labels: Priority-Low
  • Removed labels: Priority-Medium

@adam-waldenberg adam-waldenberg added this to the 0.4.2 milestone Sep 24, 2015
@adam-waldenberg adam-waldenberg changed the title Support for comments/metrics in C# and PowerShell code Support for comments/metrics in C# code Sep 24, 2015
@adam-waldenberg
Copy link
Member

I decided to skip the PowerShell part of this issue. It does not feel as important as the C# support. Furthermore, I don't have a good grasp on it.

@carloreggiani
Copy link

I'm trying to use gitinspector for COBOL language, but I'm feeling alone :(

Any support?

@adam-waldenberg
Copy link
Member

It's not supported, no. However, it should be easy enough to add. Again, patches/pull requests are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants