[GRASS-QA] GRASS QA: brad | ./grass6/imagery/i.class/curses.c |5
clones ( curses.c )| 0 monsters | 0 warnings
grass-qa at proxy.soccerlab.polymtl.ca
grass-qa at proxy.soccerlab.polymtl.ca
Thu Mar 1 19:38:14 EST 2007
Hello brad,
here a report on your recent GRASS-CVS change:
ANALYSIS
your changes to files/functions:
imagery/i.class/curses.c functions
make_window (Begins at: 16 Ends at: 36)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 4 | | OK |
CalledNBR: | 7 | | OK |
LOC: | 21 | | OK |
--------------+---------+-------+---------+
metrics are OK
Begin_curses (Begins at: 38 Ends at: 59)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 9 | | OK |
LOC: | 22 | | OK |
--------------+---------+-------+---------+
metrics are OK
End_curses (Begins at: 62 Ends at: 70)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 9 | | OK |
--------------+---------+-------+---------+
metrics are OK
Suspend_curses (Begins at: 73 Ends at: 81)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 4 | | OK |
LOC: | 9 | | OK |
--------------+---------+-------+---------+
metrics are OK
Resume_curses (Begins at: 84 Ends at: 91)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 4 | | OK |
LOC: | 8 | | OK |
--------------+---------+-------+---------+
metrics are OK
Curses_allow_interrupts (Begins at: 94 Ends at: 102)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 9 | | OK |
--------------+---------+-------+---------+
metrics are OK
Curses_clear_window (Begins at: 105 Ends at: 119)
--------------+---------+-------+---------+
Complexity: | 3 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 4 | | OK |
LOC: | 15 | | OK |
--------------+---------+-------+---------+
metrics are OK
Curses_outline_window (Begins at: 122 Ends at: 151)
--------------+---------+-------+---------+
Complexity: | 4 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 16 | | OK |
LOC: | 30 | | OK |
--------------+---------+-------+---------+
metrics are OK
Curses_write_window (Begins at: 154 Ends at: 180)
--------------+---------+-------+---------+
Complexity: | 6 | | OK |
ParamNBR: | 4 | | OK |
CalledNBR: | 7 | | OK |
LOC: | 27 | | OK |
--------------+---------+-------+---------+
metrics are OK
Curses_replot_screen (Begins at: 184 Ends at: 192)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 9 | | OK |
--------------+---------+-------+---------+
metrics are OK
Curses_prompt_gets (Begins at: 195 Ends at: 242)
--------------+---------+-------+---------+
Complexity: | 6 | | OK |
ParamNBR: | 2 | | OK |
CalledNBR: | 9 | | OK |
LOC: | 48 | | OK |
--------------+---------+-------+---------+
metrics are OK
Beep (Begins at: 244 Ends at: 249)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 6 | | OK |
--------------+---------+-------+---------+
metrics are OK
Curses_getch (Begins at: 251 Ends at: 283)
--------------+---------+-------+---------+
Complexity: | 7 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 6 | | OK |
LOC: | 33 | | OK |
--------------+---------+-------+---------+
metrics are OK
Clone analysis:
This file has 5 potentially cloned functions:
Curses_clear_window Curses_outline_window Begin_curses Curses_write_window Curses_prompt_gets
In imagery/i.class/curses.c clones of Curses_outline_window are:
imagery/i.ortho.photo/photo.2target/curses.c Curses_outline_window
In imagery/i.class/curses.c clones of Curses_prompt_gets are:
imagery/i.ortho.photo/photo.2target/curses.c Curses_prompt_gets
In imagery/i.class/curses.c clones of Curses_write_window are:
imagery/i.ortho.photo/photo.2target/curses.c Curses_write_window
In imagery/i.class/curses.c clones of Begin_curses are:
imagery/i.vpoints/curses.c Begin_curses
imagery/i.ortho.photo/photo.2target/curses.c Begin_curses
imagery/i.ortho.photo/photo.2image/curses.c Begin_curses
In imagery/i.class/curses.c clones of Curses_clear_window are:
imagery/i.ortho.photo/photo.2target/curses.c Curses_clear_window
__________________________________________
Threshold GRASS6 key metrics values at 2007-03-01 are:
---------------------------+-----------+---------+
median | upper | outlier |
| quartile | limit |
---------------------------+-----------+---------+
Complexity (Cyclo): 5 | 25 | 37 |
ParamNBR: 2 | 6 | 8 |
CalledNBR: 10 | 60 | 86 |
LOC: 42 | 190 | 265 |
---------------------------+-----------+---------+
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