Simple Code Metrics - plugin detail
Simple Code Metrics measure code metrics like: lines of code, number of classes and methods, cyclomatic complexity, LCOM (Lack of Cohesion in Methods) - variants 1 to 4.
It can not only work with a single java source file, but also with packages(even with a whole tree of source packages).
Using it you can automatically find for example 5 methods with the highest cyclomatic complexity or 3 packages with the highest average LCOM 4 score.
Behaviour of the plugin can be easily customised through options(tools-options-miscellaneous-SCM Options)
| Plugin owner: |
k_debski |
| Website: |
|
| Added: |
2008-05-19 |
| Last updated: |
2007-04-01 |
| NetBeans Versions: |
6.1 |
| License: |
GPL v3 |
| Category: |
|
| Size: |
0.08 MB |
| Downloaded: |
5,675 times |
| Rating: |
|
Verifications for NetBeans versions
Plugin is not subject to any verification |
Introduction
Simple Code Metrics measure code metrics and statistics like: - lines of code
- number of classes
- number of methods
- cyclomatic complexity
- LCOM (Lack of Cohesion in Methods) - variants 1 to 4
- lines with imports
- blank lines
Using it you can automatically find for example 5 methods with the highest cyclomatic complexity or 3 packages with the highest average LCOM 4 score.
Quick tutorial: - Install plugin
- Go to tools-options-miscellaneous-SCM Options and choose metrics
- Open the project which is going to be measured
- Select a single node with java source file or a package. If it a package all packages and classes below are going to be measured. All non java files will be skipped. To measure the whole project select "Source Packages" node.
- Click "SCM" icon(Should be on your Edit toolbar)
- Open output window (CTRL+4 by default).
- Choose "Analyse of ...".
Limitations: - No support for inner classes
- Local variables can not hide class variables
What's new in this version
|
[ You have to be logged in to be able to comment. ]
User Comments
I have updated this plugin to work with NB 7.1
How I can do to send it? Make a project at Google Code?
Posted by mosca_morta on Mar 12, 2012
This doesn't work in NB 6.9.1.
There's an "SCM" icon at the top bar but it's not clickable. Then again, I see that it's been an eternity in software years since this has been updated...
Posted by Zerex71 on Sep 21, 2011
How can I interpret results?
Nice program thanks.This is exactly what I need to assess the OO degree of my codes.However, I dont understand the points that program gives as output.Can you explain it briefly?BTW: I have an idea about metrics as a beginner.
Posted by cananhas on Mar 07, 2011
Great Plugin!
Hi!
Great plugin, very interesting statistics!
Performance could be a little bit better.
Thank!
Posted by t3_chris on Nov 04, 2009
Doesn't work in NetBeans 6.5 RC1
Doesn't work in NetBeans 6.5 RC1. Tools->Options->SCM Options tab is broken.
Can this be configured to count all non-comment & non-blank lines. i.e include only the package definition, import statements and all non-blank lines.
Posted by darvar on Oct 22, 2008
How do you define LCOM
How do you define Lack of Cohesion in Methods and what are variants 1 to 4?
Posted by maksym on Jul 14, 2008