[GRASS-QA] GRASS QA: brad | ./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
Fri Sep 15 04:46:51 EDT 2006
Hello brad,
here a report on your recent GRASS-CVS change:
ANALYSIS
your changes to files/functions:
raster/r.cost/btree.c functions
insert (Begins at: 48 Ends at: 106)
--------------+---------+-------+---------+
Complexity: | 8 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 59 | | OK |
--------------+---------+-------+---------+
metrics are OK
find (Begins at: 109 Ends at: 149)
--------------+---------+-------+---------+
Complexity: | 5 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 4 | | OK |
LOC: | 41 | | OK |
--------------+---------+-------+---------+
metrics are OK
do_quit (Begins at: 151 Ends at: 156)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 6 | | OK |
--------------+---------+-------+---------+
metrics are OK
get_lowest (Begins at: 159 Ends at: 189)
--------------+---------+-------+---------+
Complexity: | 4 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 31 | | OK |
--------------+---------+-------+---------+
metrics are OK
delete (Begins at: 191 Ends at: 399)
--------------+---------+-------+---------+
Complexity: | 25 | * | |
ParamNBR: | 1 | | OK |
CalledNBR: | 18 | | OK |
LOC: | 209 | ** | Warning |
--------------+---------+-------+---------+
at least 1 values are close to an outlier please consider revising code
show_all (Begins at: 401 Ends at: 411)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 11 | | OK |
--------------+---------+-------+---------+
metrics are OK
show (Begins at: 413 Ends at: 432)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 20 | | OK |
--------------+---------+-------+---------+
metrics are OK
check_all (Begins at: 434 Ends at: 445)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 4 | | OK |
LOC: | 12 | | OK |
--------------+---------+-------+---------+
metrics are OK
check (Begins at: 447 Ends at: 488)
--------------+---------+-------+---------+
Complexity: | 8 | | OK |
ParamNBR: | 2 | | OK |
CalledNBR: | 14 | | OK |
LOC: | 42 | | OK |
--------------+---------+-------+---------+
metrics are OK
Clone analysis:
This file has 3 potentially cloned functions:
delete insert check
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-15 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