[GRASS-QA] GRASS QA: hamish | ./grass6/imagery/i.vpoints/analyze.c
|6 clones ( analyze.c ask.c input.c analyze.c )| 0 monsters |
3 warnings
cvs at proxy.soccerlab.polymtl.ca
cvs at proxy.soccerlab.polymtl.ca
Wed Jul 5 04:31:05 EDT 2006
Hello hamish,
here a report on your recent GRASS-CVS change:
ANALYSIS
your changes to files/functions:
imagery/i.vpoints/analyze.c functions
do_1st (Begins at: 65 Ends at: 74)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 10 | | OK |
--------------+---------+-------+---------+
metrics are OK
do_2nd (Begins at: 76 Ends at: 85)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 10 | | OK |
--------------+---------+-------+---------+
metrics are OK
do_3rd (Begins at: 87 Ends at: 96)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 10 | | OK |
--------------+---------+-------+---------+
metrics are OK
delete_mark (Begins at: 98 Ends at: 115)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 4 | | OK |
LOC: | 18 | | OK |
--------------+---------+-------+---------+
metrics are OK
delete_control_point (Begins at: 117 Ends at: 143)
--------------+---------+-------+---------+
Complexity: | 3 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 9 | | OK |
LOC: | 27 | | OK |
--------------+---------+-------+---------+
metrics are OK
do_warp (Begins at: 147 Ends at: 168)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 22 | | OK |
--------------+---------+-------+---------+
metrics are OK
no_warp (Begins at: 170 Ends at: 173)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 0 | | OK |
LOC: | 4 | | OK |
--------------+---------+-------+---------+
metrics are OK
warp (Begins at: 175 Ends at: 179)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 1 | | OK |
LOC: | 5 | | OK |
--------------+---------+-------+---------+
metrics are OK
rast_redraw (Begins at: 181 Ends at: 187)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 7 | | OK |
--------------+---------+-------+---------+
metrics are OK
uparrow (Begins at: 190 Ends at: 196)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 2 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 7 | | OK |
--------------+---------+-------+---------+
metrics are OK
downarrow (Begins at: 198 Ends at: 204)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 2 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 7 | | OK |
--------------+---------+-------+---------+
metrics are OK
pick (Begins at: 206 Ends at: 271)
--------------+---------+-------+---------+
Complexity: | 10 | | OK |
ParamNBR: | 2 | | OK |
CalledNBR: | 13 | | OK |
LOC: | 66 | | OK |
--------------+---------+-------+---------+
metrics are OK
done (Begins at: 273 Ends at: 277)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 1 | | OK |
LOC: | 5 | | OK |
--------------+---------+-------+---------+
metrics are OK
cancel_which (Begins at: 279 Ends at: 291)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 13 | | OK |
--------------+---------+-------+---------+
metrics are OK
inbox (Begins at: 293 Ends at: 296)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 0 | | OK |
LOC: | 4 | | OK |
--------------+---------+-------+---------+
metrics are OK
dotext (Begins at: 298 Ends at: 312)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 7 | ** | Warning |
CalledNBR: | 9 | | OK |
LOC: | 15 | | OK |
--------------+---------+-------+---------+
at least 1 values are close to an outlier please consider revising code
compute_transformation (Begins at: 314 Ends at: 388)
--------------+---------+-------+---------+
Complexity: | 10 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 8 | | OK |
LOC: | 75 | | OK |
--------------+---------+-------+---------+
metrics are OK
to_file (Begins at: 390 Ends at: 416)
--------------+---------+-------+---------+
Complexity: | 3 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 10 | | OK |
LOC: | 27 | | OK |
--------------+---------+-------+---------+
metrics are OK
askfile (Begins at: 418 Ends at: 439)
--------------+---------+-------+---------+
Complexity: | 5 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 10 | | OK |
LOC: | 22 | | OK |
--------------+---------+-------+---------+
metrics are OK
to_printer (Begins at: 441 Ends at: 452)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 6 | | OK |
LOC: | 12 | | OK |
--------------+---------+-------+---------+
metrics are OK
do_report (Begins at: 454 Ends at: 498)
--------------+---------+-------+---------+
Complexity: | 5 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 20 | | OK |
LOC: | 45 | | OK |
--------------+---------+-------+---------+
metrics are OK
printcentered (Begins at: 500 Ends at: 517)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 4 | | OK |
LOC: | 18 | | OK |
--------------+---------+-------+---------+
metrics are OK
show_point (Begins at: 519 Ends at: 531)
--------------+---------+-------+---------+
Complexity: | 3 | | OK |
ParamNBR: | 2 | | OK |
CalledNBR: | 4 | | OK |
LOC: | 13 | | OK |
--------------+---------+-------+---------+
metrics are OK
get_order (Begins at: 533 Ends at: 551)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 1 | | OK |
LOC: | 19 | | OK |
--------------+---------+-------+---------+
metrics are OK
analyze (Begins at: 553 Ends at: 788)
--------------+---------+-------+---------+
Complexity: | 15 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 60 | ** | Warning |
LOC: | 236 | ** | Warning |
--------------+---------+-------+---------+
at least 2 values are close to an outlier please consider revising code
Clone analysis:
This file has 6 potentially cloned functions:
dotext to_file do_report printcentered delete_mark askfile
In imagery/i.vpoints/analyze.c clones of printcentered are:
imagery/i.points/analyze.c printcentered
imagery/i.ortho.photo/photo.2target/analyze.c printcentered
imagery/i.ortho.photo/photo.2image/analyze.c printcentered
In imagery/i.vpoints/analyze.c clones of do_report are:
imagery/i.points/analyze.c do_report
imagery/i.ortho.photo/photo.2image/analyze.c do_report
In imagery/i.vpoints/analyze.c clones of delete_mark are:
lib/gis/color_org.c G__organize_colors
In imagery/i.vpoints/analyze.c clones of to_file are:
imagery/i.points/analyze.c to_file
imagery/i.ortho.photo/photo.2target/analyze.c to_file
imagery/i.ortho.photo/photo.2image/analyze.c to_file
In imagery/i.vpoints/analyze.c clones of askfile are:
imagery/i.points/analyze.c askfile
imagery/i.ortho.photo/photo.2target/analyze.c askfile
imagery/i.ortho.photo/photo.2image/analyze.c askfile
In imagery/i.vpoints/analyze.c clones of dotext are:
imagery/i.points/analyze.c dotext
imagery/i.ortho.photo/photo.2image/use_camera.c dotext
imagery/i.ortho.photo/photo.2image/mark.c dotext
__________________________________________
Threshold GRASS6 key metrics values at 2006-07-05 are:
---------------------------+-----------+---------+
median | upper | outlier |
| quartile | limit |
---------------------------+-----------+---------+
Complexity (Cyclo): 5 | 25 | 37 |
ParamNBR: 2 | 6 | 8 |
CalledNBR: 9 | 55 | 79 |
LOC: 40 | 180 | 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