[GRASS-QA] GRASS QA: brad | ./grass6/lib/gis/alloc.c |4 clones ( alloc.c )| 0 monsters | 0 warnings

grass-qa at proxy.soccerlab.polymtl.ca grass-qa at proxy.soccerlab.polymtl.ca
Wed Dec 20 05:36:05 EST 2006



Hello brad,

here a report on your recent GRASS-CVS change:

ANALYSIS

your changes to files/functions:


lib/gis/alloc.c functions


G_malloc (Begins at: 17 Ends at: 45)
--------------+---------+-------+---------+
Complexity:   |       3 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       2 |       |      OK |
LOC:          |      29 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

G_calloc (Begins at: 47 Ends at: 80)
--------------+---------+-------+---------+
Complexity:   |       4 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |       2 |       |      OK |
LOC:          |      34 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

G_realloc (Begins at: 82 Ends at: 100)
--------------+---------+-------+---------+
Complexity:   |       4 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |       3 |       |      OK |
LOC:          |      19 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

G_free (Begins at: 102 Ends at: 105)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       1 |       |      OK |
LOC:          |       4 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Clone analysis:

This file has 4 potentially cloned functions:
  G_allocate_d_raster_buf  G_allocate_f_raster_buf  G_allocate_c_raster_buf  G_allocate_cell_buf

In lib/gis/alloc_cell.c clones of  G_allocate_f_raster_buf are:
	lib/gis/alloc_cell.c  G_allocate_d_raster_buf
	lib/gis/alloc_cell.c  G_allocate_c_raster_buf
	lib/gis/alloc_cell.c  G_allocate_cell_buf

In lib/gis/alloc_cell.c clones of  G_allocate_cell_buf are:
	lib/gis/alloc_cell.c  G_allocate_d_raster_buf
	lib/gis/alloc_cell.c  G_allocate_f_raster_buf
	lib/gis/alloc_cell.c  G_allocate_c_raster_buf

In lib/gis/alloc_cell.c clones of  G_allocate_c_raster_buf are:
	lib/gis/alloc_cell.c  G_allocate_d_raster_buf
	lib/gis/alloc_cell.c  G_allocate_f_raster_buf
	lib/gis/alloc_cell.c  G_allocate_cell_buf

In lib/gis/alloc_cell.c clones of  G_allocate_d_raster_buf are:
	lib/gis/alloc_cell.c  G_allocate_f_raster_buf
	lib/gis/alloc_cell.c  G_allocate_c_raster_buf
	lib/gis/alloc_cell.c  G_allocate_cell_buf


__________________________________________

Threshold GRASS6 key metrics values at 2006-12-20 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