[GRASS-QA] GRASS QA: soeren | ./grass6/raster/r.to.rast3/main.c |2
clones ( main.c )| 0 monsters | 0 warnings
grass-qa at proxy.soccerlab.polymtl.ca
grass-qa at proxy.soccerlab.polymtl.ca
Mon Aug 14 15:16:23 EDT 2006
Hello soeren,
here a report on your recent GRASS-CVS change:
ANALYSIS
your changes to files/functions:
raster/r.to.rast3/main.c functions
fatal_error (Begins at: 49 Ends at: 68)
--------------+---------+-------+---------+
Complexity: | 4 | | OK |
ParamNBR: | 4 | | OK |
CalledNBR: | 6 | | OK |
LOC: | 20 | | OK |
--------------+---------+-------+---------+
metrics are OK
set_params (Begins at: 73 Ends at: 89)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 0 | | OK |
CalledNBR: | 5 | | OK |
LOC: | 17 | | OK |
--------------+---------+-------+---------+
metrics are OK
raster_to_g3d (Begins at: 96 Ends at: 167)
--------------+---------+-------+---------+
Complexity: | 12 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 26 | | OK |
LOC: | 72 | | OK |
--------------+---------+-------+---------+
metrics are OK
main (Begins at: 173 Ends at: 344)
--------------+---------+-------+---------+
Complexity: | 22 | * | |
ParamNBR: | 2 | | OK |
CalledNBR: | 55 | * | |
LOC: | 172 | * | |
--------------+---------+-------+---------+
metrics are OK
open_input_raster_map (Begins at: 351 Ends at: 366)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 2 | | OK |
CalledNBR: | 4 | | OK |
LOC: | 16 | | OK |
--------------+---------+-------+---------+
metrics are OK
close_input_raster_map (Begins at: 371 Ends at: 375)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 5 | | OK |
--------------+---------+-------+---------+
metrics are OK
Clone analysis:
This file has 2 potentially cloned functions:
SetParameters OpenInputMap
In raster/r.to.rast3/main.c clones of OpenInputMap are:
raster3d/r3.out.vtk/main.c OpenInputMap
In raster/r.to.rast3/main.c clones of SetParameters are:
raster3d/base/r3.mask.main.c setParams
__________________________________________
Threshold GRASS6 key metrics values at 2006-08-14 are:
---------------------------+-----------+---------+
median | upper | outlier |
| quartile | limit |
---------------------------+-----------+---------+
Complexity (Cyclo): 5 | 25 | 36 |
ParamNBR: 2 | 6 | 8 |
CalledNBR: 9 | 55 | 80 |
LOC: 39 | 179 | 251 |
---------------------------+-----------+---------+
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