[GRASS-QA] GRASS QA: hamish | ./grass6/imagery/i.points/curses.c |7 clones ( curses.c curses.c )| 0 monsters | 0 warnings

cvs at proxy.soccerlab.polymtl.ca cvs at proxy.soccerlab.polymtl.ca
Wed Jun 28 04:11:12 EDT 2006


Hello hamish,

here a report on your recent GRASS-CVS change:

ANALYSIS

your changes to files/functions:


imagery/i.points/curses.c functions


make_window (Begins at: 11 Ends at: 31)
--------------+---------+-------+---------+
Complexity:   |       2 |       |      OK |
ParamNBR:     |       4 |       |      OK |
CalledNBR:    |       6 |       |      OK |
LOC:          |      21 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Begin_curses (Begins at: 33 Ends at: 55)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       9 |       |      OK |
LOC:          |      23 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

End_curses (Begins at: 57 Ends at: 66)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       3 |       |      OK |
LOC:          |      10 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Suspend_curses (Begins at: 68 Ends at: 76)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       4 |       |      OK |
LOC:          |       9 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Resume_curses (Begins at: 78 Ends at: 86)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       4 |       |      OK |
LOC:          |       9 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Curses_allow_interrupts (Begins at: 88 Ends at: 97)
--------------+---------+-------+---------+
Complexity:   |       2 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       3 |       |      OK |
LOC:          |      10 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Curses_clear_window (Begins at: 99 Ends at: 114)
--------------+---------+-------+---------+
Complexity:   |       3 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       4 |       |      OK |
LOC:          |      16 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Curses_outline_window (Begins at: 116 Ends at: 146)
--------------+---------+-------+---------+
Complexity:   |       4 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |      16 |       |      OK |
LOC:          |      31 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Curses_write_window (Begins at: 148 Ends at: 175)
--------------+---------+-------+---------+
Complexity:   |       6 |       |      OK |
ParamNBR:     |       4 |       |      OK |
CalledNBR:    |       6 |       |      OK |
LOC:          |      28 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Curses_replot_screen (Begins at: 179 Ends at: 188)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       3 |       |      OK |
LOC:          |      10 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Curses_prompt_gets (Begins at: 190 Ends at: 238)
--------------+---------+-------+---------+
Complexity:   |       6 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |       9 |       |      OK |
LOC:          |      49 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Beep (Begins at: 241 Ends at: 247)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       2 |       |      OK |
LOC:          |       7 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Curses_getch (Begins at: 250 Ends at: 282)
--------------+---------+-------+---------+
Complexity:   |       7 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       6 |       |      OK |
LOC:          |      33 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Clone analysis:

This file has 7 potentially cloned functions:
  Curses_outline_window  make_window  Curses_getch  Curses_clear_window  Curses_write_window  Curses_prompt_gets  End_curses

In imagery/i.points/curses.c clones of  Curses_outline_window are:
	imagery/i.vpoints/curses.c  Curses_outline_window
	imagery/i.ortho.photo/photo.2image/curses.c  Curses_outline_window

In imagery/i.points/curses.c clones of  Curses_prompt_gets are:
	imagery/i.vpoints/curses.c  Curses_prompt_gets
	imagery/i.ortho.photo/photo.2image/curses.c  Curses_prompt_gets

In imagery/i.points/curses.c clones of  make_window are:
	imagery/i.vpoints/curses.c  make_window
	imagery/i.ortho.photo/photo.2image/curses.c  make_window

In imagery/i.points/curses.c clones of  Curses_getch are:
	imagery/i.vpoints/curses.c  Curses_getch
	imagery/i.ortho.photo/photo.2target/curses.c  Curses_getch
	imagery/i.ortho.photo/photo.2image/curses.c  Curses_getch
	imagery/i.class/curses.c  Curses_getch

In imagery/i.points/curses.c clones of  Curses_write_window are:
	imagery/i.vpoints/curses.c  Curses_write_window
	imagery/i.ortho.photo/photo.2image/curses.c  Curses_write_window

In imagery/i.points/curses.c clones of  Curses_clear_window are:
	imagery/i.vpoints/curses.c  Curses_clear_window
	imagery/i.ortho.photo/photo.2image/curses.c  Curses_clear_window

In imagery/i.points/curses.c clones of  End_curses are:
	imagery/i.ortho.photo/photo.2target/colors.c  set_colors
	imagery/i.ortho.photo/photo.2image/curses.c  End_curses


__________________________________________

Threshold GRASS6 key metrics values at 2006-06-28 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