[GRASS-QA] GRASS QA: martinl | ./grass6/lib/vector/Vlib/open.c |no
clones | 1 monsters | 0 warnings
grass-qa at proxy.soccerlab.polymtl.ca
grass-qa at proxy.soccerlab.polymtl.ca
Wed Mar 14 09:43:21 EDT 2007
Hello martinl,
here a report on your recent GRASS-CVS change:
ANALYSIS
your changes to files/functions:
lib/vector/Vlib/open.c functions
open_old_dummy (Begins at: 51 Ends at: 51)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 0 | | OK |
CalledNBR: | 0 | | OK |
LOC: | 1 | | OK |
--------------+---------+-------+---------+
metrics are OK
fatal_error (Begins at: 69 Ends at: 106)
--------------+---------+-------+---------+
Complexity: | 5 | | OK |
ParamNBR: | 2 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 38 | | OK |
--------------+---------+-------+---------+
metrics are OK
Vect_set_open_level (Begins at: 109 Ends at: 137)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 29 | | OK |
--------------+---------+-------+---------+
metrics are OK
Vect__open_old (Begins at: 140 Ends at: 395)
--------------+---------+-------+---------+
Complexity: | 31 | ** | Warning |
ParamNBR: | 5 | * | |
CalledNBR: | 103 | *** | MONSTER |
LOC: | 256 | ** | Warning |
--------------+---------+-------+---------+
1 metric are OUT OF RANGE!
Vect_open_old (Begins at: 398 Ends at: 418)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 1 | | OK |
LOC: | 21 | | OK |
--------------+---------+-------+---------+
metrics are OK
Vect_open_update (Begins at: 421 Ends at: 457)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 37 | | OK |
--------------+---------+-------+---------+
metrics are OK
Vect_open_old_head (Begins at: 460 Ends at: 477)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 1 | | OK |
LOC: | 18 | | OK |
--------------+---------+-------+---------+
metrics are OK
Vect_open_update_head (Begins at: 480 Ends at: 510)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 1 | | OK |
LOC: | 31 | | OK |
--------------+---------+-------+---------+
metrics are OK
Vect_open_new (Begins at: 513 Ends at: 594)
--------------+---------+-------+---------+
Complexity: | 6 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 36 | * | |
LOC: | 82 | | OK |
--------------+---------+-------+---------+
metrics are OK
Vect_coor_info (Begins at: 597 Ends at: 643)
--------------+---------+-------+---------+
Complexity: | 5 | | OK |
ParamNBR: | 2 | | OK |
CalledNBR: | 7 | | OK |
LOC: | 47 | | OK |
--------------+---------+-------+---------+
metrics are OK
Vect_maptype_info (Begins at: 646 Ends at: 676)
--------------+---------+-------+---------+
Complexity: | 5 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 4 | | OK |
LOC: | 31 | | OK |
--------------+---------+-------+---------+
metrics are OK
Vect_open_topo (Begins at: 679 Ends at: 756)
--------------+---------+-------+---------+
Complexity: | 7 | | OK |
ParamNBR: | 2 | | OK |
CalledNBR: | 16 | | OK |
LOC: | 78 | | OK |
--------------+---------+-------+---------+
metrics are OK
Vect_open_spatial_index (Begins at: 759 Ends at: 822)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 8 | | OK |
LOC: | 64 | | OK |
--------------+---------+-------+---------+
metrics are OK
Clone analysis:
This file does not contain cloned functions
__________________________________________
Threshold GRASS6 key metrics values at 2007-03-14 are:
---------------------------+-----------+---------+
median | upper | outlier |
| quartile | limit |
---------------------------+-----------+---------+
Complexity (Cyclo): 5 | 25 | 37 |
ParamNBR: 2 | 6 | 9 |
CalledNBR: 10 | 60 | 86 |
LOC: 43 | 195 | 272 |
---------------------------+-----------+---------+
Measures (see below Web page for details):
Complexity (Cyclo): a complexity index
ParamNBR: number of passed parameters
CalledNBR: number of called functions
LOC: Lines Of Code
Message interpretation:
OK : Nothing to say at all
* : above 75 % of value warning
** : this is getting close to be out of range, consider revising the code
***: this is a monster, definitely you should revise this function
__________________________________________
Brought to you by:
SOftware Cost-effective Change and Evolution Research (SOCCER) laboratory
http://web.soccerlab.polymtl.ca/grass-evolution/grass-browsers/grass-index-en.html
More information about the grass-qa
mailing list