[GRASS-QA] GRASS QA: soeren | ./grass6/raster3d/r3.out.vtk/writeVTKData.c |1 clones ( mask_functions.c main.c main.c writeVTKData.c )| 0 monsters | 2 warnings

grass-qa at proxy.soccerlab.polymtl.ca grass-qa at proxy.soccerlab.polymtl.ca
Sun Sep 24 12:30:41 EDT 2006



Hello soeren,

here a report on your recent GRASS-CVS change:

ANALYSIS

your changes to files/functions:


raster3d/r3.out.vtk/writeVTKData.c functions


get_raster_value_as_double (Begins at: 38 Ends at: 68)
--------------+---------+-------+---------+
Complexity:   |       7 |       |      OK |
ParamNBR:     |       3 |       |      OK |
CalledNBR:    |       3 |       |      OK |
LOC:          |      31 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

get_g3d_raster_value_as_double (Begins at: 73 Ends at: 96)
--------------+---------+-------+---------+
Complexity:   |       4 |       |      OK |
ParamNBR:     |       6 |     * |         |
CalledNBR:    |       4 |       |      OK |
LOC:          |      24 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

write_vtk_points (Begins at: 101 Ends at: 240)
--------------+---------+-------+---------+
Complexity:   |       5 |       |      OK |
ParamNBR:     |       5 |     * |         |
CalledNBR:    |      46 |     * |         |
LOC:          |     140 |     * |         |
--------------+---------+-------+---------+
metrics are OK

write_vtk_unstructured_grid_cells (Begins at: 245 Ends at: 307)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |       9 |       |      OK |
LOC:          |      63 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

write_vtk_data (Begins at: 313 Ends at: 375)
--------------+---------+-------+---------+
Complexity:   |       3 |       |      OK |
ParamNBR:     |       5 |     * |         |
CalledNBR:    |      15 |       |      OK |
LOC:          |      63 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

write_vtk_rgb_data (Begins at: 381 Ends at: 475)
--------------+---------+-------+---------+
Complexity:   |      10 |       |      OK |
ParamNBR:     |       7 |    ** | Warning |
CalledNBR:    |      20 |       |      OK |
LOC:          |      95 |       |      OK |
--------------+---------+-------+---------+
at least 1 values are close to an outlier please consider revising code

write_vtk_vector_data (Begins at: 481 Ends at: 557)
--------------+---------+-------+---------+
Complexity:   |       8 |       |      OK |
ParamNBR:     |       7 |    ** | Warning |
CalledNBR:    |      14 |       |      OK |
LOC:          |      77 |       |      OK |
--------------+---------+-------+---------+
at least 1 values are close to an outlier please consider revising code

Clone analysis:

This file has 1 potentially cloned functions:
  GetRasterValueAsDouble

In raster3d/r3.out.vtk/writeVTKData.c clones of  GetRasterValueAsDouble are:
	raster/r.out.vtk/writeascii.c  get_raster_value_as_double


__________________________________________

Threshold GRASS6 key metrics values at 2006-09-24 are:
---------------------------+-----------+---------+
                    median | upper     | outlier |
                           | quartile  | limit   |
---------------------------+-----------+---------+
Complexity (Cyclo):      5 |        25 |      36 |
ParamNBR:                2 |         6 |       8 |
CalledNBR:               9 |        55 |      80 |
LOC:                    39 |       179 |     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