[GRASS-QA] GRASS QA: hamish | ./grass6/imagery/i.points/input.c |6 clones ( analyze.c ask.c input.c )| 0 monsters | 0 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.points/input.c functions


Input_pointer (Begins at: 20 Ends at: 23)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       1 |       |      OK |
LOC:          |       4 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Input_box (Begins at: 25 Ends at: 28)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       3 |       |      OK |
CalledNBR:    |       1 |       |      OK |
LOC:          |       4 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Input_other (Begins at: 30 Ends at: 46)
--------------+---------+-------+---------+
Complexity:   |       2 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |       5 |       |      OK |
LOC:          |      17 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

mouse (Begins at: 48 Ends at: 105)
--------------+---------+-------+---------+
Complexity:   |      12 |       |      OK |
ParamNBR:     |       4 |       |      OK |
CalledNBR:    |       9 |       |      OK |
LOC:          |      58 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

use_mouse_msg (Begins at: 109 Ends at: 114)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       1 |       |      OK |
LOC:          |       6 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

draw_objects (Begins at: 116 Ends at: 180)
--------------+---------+-------+---------+
Complexity:   |       8 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |      16 |       |      OK |
LOC:          |      65 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

find (Begins at: 182 Ends at: 204)
--------------+---------+-------+---------+
Complexity:   |       7 |       |      OK |
ParamNBR:     |       3 |       |      OK |
CalledNBR:    |       1 |       |      OK |
LOC:          |      23 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

select_option (Begins at: 206 Ends at: 218)
--------------+---------+-------+---------+
Complexity:   |       3 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |       0 |       |      OK |
LOC:          |      13 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

draw_option_boxes (Begins at: 220 Ends at: 239)
--------------+---------+-------+---------+
Complexity:   |       3 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       5 |       |      OK |
LOC:          |      20 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

visible (Begins at: 241 Ends at: 246)
--------------+---------+-------+---------+
Complexity:   |       2 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       0 |       |      OK |
LOC:          |       6 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Menu_msg (Begins at: 248 Ends at: 268)
--------------+---------+-------+---------+
Complexity:   |       2 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       5 |       |      OK |
LOC:          |      21 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Start_mouse_in_menu (Begins at: 271 Ends at: 278)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       1 |       |      OK |
LOC:          |       8 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Clone analysis:

This file has 6 potentially cloned functions:
  Menu_msg  mouse  draw_objects  find  select_option  draw_option_boxes

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

In imagery/i.points/input.c clones of  mouse are:
	imagery/i.class/input.c  mouse

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

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

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

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


__________________________________________

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