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

Metrics -extension: Most columns are NULL in database table metrics #91

Open
mniemela opened this issue Sep 1, 2014 · 12 comments
Open

Comments

@mniemela
Copy link
Contributor

mniemela commented Sep 1, 2014

After executing CVSAnalY with Metrics, most of the columns in database table metrics are null. Is this a matter of stuff not being implemented, or is there a bug?

@sduenas
Copy link
Member

sduenas commented Sep 1, 2014

To execute Metrics extension, you have to install first sloccount, cccc and python-metrics packages. All of them are in Debian.
Please check if you have them installed.

@andygrunwald
Copy link
Contributor

Maybe this should be documented in a good way.
We need several tools:

  • kdsi
  • halstead
  • mccabe
  • pymetrics
  • cccc
  • sloccount

For details have a look at https://github.com/MetricsGrimoire/CVSAnalY/blob/master/pycvsanaly2/extensions/Metrics.py and search for "find_program".

@linzhp
Copy link
Contributor

linzhp commented Sep 1, 2014

Looks like the Mccabe metrics for Java is not implemented. So if you are analyzing Java source files, those columns will be empty

@andygrunwald
Copy link
Contributor

I added a small chapter about this tools into the readme: a6b09b9
Sadly i can`t find (fast) the links of mccabe, halstead and kdsi tool.
Do you know where this is located?

@linzhp: You are right. Metrics for many languages are not implemented. Maybe this kind of implementation needs refactoring as well. But feel free to add new languages :)
I will be happy to review it.

@mniemela: Does this help?

@linzhp
Copy link
Contributor

linzhp commented Sep 2, 2014

I am implementing mccabe for Java. Checkout https://github.com/linzhp/CVSAnalY/tree/mccabe_for_java. Will create a pull request once it's done.

@mniemela
Copy link
Contributor Author

mniemela commented Sep 2, 2014

Btw, where can you find kdsi and halstead for debian? A quick googling session didn't find those packets.

@sduenas
Copy link
Member

sduenas commented Sep 2, 2014

@mniemela Try with the cmetrics bundle (https://github.com/MetricsGrimoire/CMetrics)

@sduenas
Copy link
Member

sduenas commented Sep 2, 2014

@linzhp Thanks! Sounds great!

@mniemela
Copy link
Contributor Author

mniemela commented Sep 2, 2014

Also, maybe Metrics should print some error if the additional packages haven't been installed?

@andygrunwald
Copy link
Contributor

Good idea. Can you create a PR for this?

Am Dienstag, 2. September 2014 schrieb Mikael :

Also, maybe Metrics should print some error if the additional packages
haven't been installed?


Reply to this email directly or view it on GitHub
#91 (comment)
.

@mniemela
Copy link
Contributor Author

mniemela commented Sep 3, 2014

Hmm, it looks like there are printouts for situations when programs are not installed. However, for some reason I didn't get them when running Metrics.

@andygrunwald
Copy link
Contributor

@sduenas does CMetrics provide kdsi, halstead and mccabe executables?

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

No branches or pull requests

4 participants