[GRASS-QA] SOCCER LAB GRASS QA: 1 clones ( writeascii.c ) 1 monsters and 4 warnings

cvs at proxy.soccerlab.polymtl.ca cvs at proxy.soccerlab.polymtl.ca
Fri Jun 16 11:35:31 EDT 2006


Hello soeren,

here a report on your recent GRASS-CVS change:

ANALYSIS

your changes to files/functions:


raster/r.out.vtk/writeascii.c functions


GetRasterValueAsDouble (Begins at: 33 Ends at: 63)
--------------+---------+-------+---------+
Complexity:   |       7 |       |      OK |
ParamNBR:     |       3 |       |      OK |
CalledNBR:    |       3 |       |      OK |
LOC:          |      31 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

writeVTKNormalHeader (Begins at: 69 Ends at: 95)
--------------+---------+-------+---------+
Complexity:   |       3 |       |      OK |
ParamNBR:     |       4 |       |      OK |
CalledNBR:    |      11 |       |      OK |
LOC:          |      27 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

writeVTKStructuredElevationHeader (Begins at: 101 Ends at: 112)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |       8 |       |      OK |
LOC:          |      12 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

writeVTKPolygonalElevationHeader (Begins at: 117 Ends at: 127)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |       7 |       |      OK |
LOC:          |      11 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

writeVTKCellDataHeader (Begins at: 132 Ends at: 136)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |       3 |       |      OK |
LOC:          |       5 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

writeVTKPointDataHeader (Begins at: 141 Ends at: 145)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |       3 |       |      OK |
LOC:          |       5 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

writeVTKStructuredCoordinates (Begins at: 152 Ends at: 200)
--------------+---------+-------+---------+
Complexity:   |       3 |       |      OK |
ParamNBR:     |       7 |    ** | Warning |
CalledNBR:    |      13 |       |      OK |
LOC:          |      49 |       |      OK |
--------------+---------+-------+---------+
at least 1 values are close to an outlier please consider revising code

writeVTKPolygonalCoordinates (Begins at: 206 Ends at: 313)
--------------+---------+-------+---------+
Complexity:   |       6 |       |      OK |
ParamNBR:     |       8 |    ** | Warning |
CalledNBR:    |      23 |       |      OK |
LOC:          |     108 |       |      OK |
--------------+---------+-------+---------+
1 metric are OUT OF RANGE!

writeVTKData (Begins at: 319 Ends at: 361)
--------------+---------+-------+---------+
Complexity:   |       3 |       |      OK |
ParamNBR:     |       6 |     * |         |
CalledNBR:    |      16 |       |      OK |
LOC:          |      43 |       |      OK |
--------------+---------+-------+---------+
at least 1 values are close to an outlier please consider revising code

writeVTKRGBImageData (Begins at: 369 Ends at: 428)
--------------+---------+-------+---------+
Complexity:   |       5 |       |      OK |
ParamNBR:     |       7 |    ** | Warning |
CalledNBR:    |      29 |       |      OK |
LOC:          |      60 |       |      OK |
--------------+---------+-------+---------+
at least 1 values are close to an outlier please consider revising code

writeVTKVectorData (Begins at: 435 Ends at: 486)
--------------+---------+-------+---------+
Complexity:   |       4 |       |      OK |
ParamNBR:     |       7 |    ** | Warning |
CalledNBR:    |      26 |       |      OK |
LOC:          |      52 |       |      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 raster/r.out.vtk/writeascii.c clones of  GetRasterValueAsDouble are:
	raster3d/r3.out.vtk/writeVTKData.c  GetRasterValueAsDouble


__________________________________________

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