[GRASS-QA] GRASS QA: jachym | ./grass6/raster/r.cost/btree.c |3
clones ( main.c btree.c )| 0 monsters | 1 warnings
grass-qa at proxy.soccerlab.polymtl.ca
grass-qa at proxy.soccerlab.polymtl.ca
Thu Sep 28 12:27:17 EDT 2006
Hello jachym,
here a report on your recent GRASS-CVS change:
ANALYSIS
your changes to files/functions:
raster/r.cost/btree.c functions
insert (Begins at: 49 Ends at: 107)
--------------+---------+-------+---------+
Complexity: | 8 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 59 | | OK |
--------------+---------+-------+---------+
metrics are OK
find (Begins at: 110 Ends at: 150)
--------------+---------+-------+---------+
Complexity: | 5 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 4 | | OK |
LOC: | 41 | | OK |
--------------+---------+-------+---------+
metrics are OK
do_quit (Begins at: 152 Ends at: 157)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 4 | | OK |
LOC: | 6 | | OK |
--------------+---------+-------+---------+
metrics are OK
get_lowest (Begins at: 160 Ends at: 190)
--------------+---------+-------+---------+
Complexity: | 4 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 31 | | OK |
--------------+---------+-------+---------+
metrics are OK
delete (Begins at: 192 Ends at: 400)
--------------+---------+-------+---------+
Complexity: | 25 | * | |
ParamNBR: | 1 | | OK |
CalledNBR: | 19 | | OK |
LOC: | 209 | ** | Warning |
--------------+---------+-------+---------+
at least 1 values are close to an outlier please consider revising code
show_all (Begins at: 402 Ends at: 412)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 11 | | OK |
--------------+---------+-------+---------+
metrics are OK
show (Begins at: 414 Ends at: 433)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 20 | | OK |
--------------+---------+-------+---------+
metrics are OK
check_all (Begins at: 435 Ends at: 444)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 10 | | OK |
--------------+---------+-------+---------+
metrics are OK
check (Begins at: 446 Ends at: 487)
--------------+---------+-------+---------+
Complexity: | 8 | | OK |
ParamNBR: | 2 | | OK |
CalledNBR: | 18 | | OK |
LOC: | 42 | | OK |
--------------+---------+-------+---------+
metrics are OK
Clone analysis:
This file has 3 potentially cloned functions:
check delete insert
In raster/r.cost/btree.c clones of delete are:
raster/r.walk/btree.c delete
In raster/r.cost/btree.c clones of check are:
raster/r.walk/btree.c check
In raster/r.cost/btree.c clones of insert are:
raster/r.walk/btree.c insert
__________________________________________
Threshold GRASS6 key metrics values at 2006-09-28 are:
---------------------------+-----------+---------+
median | upper | outlier |
| quartile | limit |
---------------------------+-----------+---------+
Complexity (Cyclo): 5 | 25 | 36 |
ParamNBR: 2 | 6 | 8 |
CalledNBR: 9 | 55 | 80 |
LOC: 39 | 179 | 252 |
---------------------------+-----------+---------+
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