[GRASS-QA] GRASS QA: hamish | ./grass6/raster/r.le/r.le.setup/sample.c |no clones | 10 monsters | 2 warnings

grass-qa at proxy.soccerlab.polymtl.ca grass-qa at proxy.soccerlab.polymtl.ca
Wed Oct 11 05:10:42 EDT 2006



Hello hamish,

here a report on your recent GRASS-CVS change:

ANALYSIS

your changes to files/functions:


raster/r.le/r.le.setup/sample.c functions


sample (Begins at: 51 Ends at: 115)
--------------+---------+-------+---------+
Complexity:   |       5 |       |      OK |
ParamNBR:     |       8 |    ** | Warning |
CalledNBR:    |      16 |       |      OK |
LOC:          |      65 |       |      OK |
--------------+---------+-------+---------+
at least 1 values are close to an outlier please consider revising code

man_unit (Begins at: 121 Ends at: 652)
--------------+---------+-------+---------+
Complexity:   |      57 |   *** | MONSTER |
ParamNBR:     |       9 |   *** | MONSTER |
CalledNBR:    |     157 |   *** | MONSTER |
LOC:          |     532 |   *** | MONSTER |
--------------+---------+-------+---------+
4 metric are OUT OF RANGE!

draw_grid (Begins at: 657 Ends at: 718)
--------------+---------+-------+---------+
Complexity:   |       3 |       |      OK |
ParamNBR:     |      10 |   *** | MONSTER |
CalledNBR:    |       8 |       |      OK |
LOC:          |      62 |       |      OK |
--------------+---------+-------+---------+
1 metric are OUT OF RANGE!

calc_unit_loc (Begins at: 723 Ends at: 959)
--------------+---------+-------+---------+
Complexity:   |      28 |    ** | Warning |
ParamNBR:     |      22 |   *** | MONSTER |
CalledNBR:    |      44 |     * |         |
LOC:          |     237 |    ** | Warning |
--------------+---------+-------+---------+
1 metric are OUT OF RANGE!

get_rd (Begins at: 964 Ends at: 976)
--------------+---------+-------+---------+
Complexity:   |       2 |       |      OK |
ParamNBR:     |       8 |    ** | Warning |
CalledNBR:    |       2 |       |      OK |
LOC:          |      13 |       |      OK |
--------------+---------+-------+---------+
at least 1 values are close to an outlier please consider revising code

f (Begins at: 981 Ends at: 986)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       1 |       |      OK |
LOC:          |       6 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

overlap (Begins at: 991 Ends at: 997)
--------------+---------+-------+---------+
Complexity:   |       2 |       |      OK |
ParamNBR:     |       6 |     * |         |
CalledNBR:    |       0 |       |      OK |
LOC:          |       7 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

calc_num (Begins at: 1002 Ends at: 1028)
--------------+---------+-------+---------+
Complexity:   |       4 |       |      OK |
ParamNBR:     |      11 |   *** | MONSTER |
CalledNBR:    |       4 |       |      OK |
LOC:          |      27 |       |      OK |
--------------+---------+-------+---------+
1 metric are OUT OF RANGE!

graph_unit (Begins at: 1036 Ends at: 1431)
--------------+---------+-------+---------+
Complexity:   |      35 |    ** | Warning |
ParamNBR:     |       9 |   *** | MONSTER |
CalledNBR:    |     117 |   *** | MONSTER |
LOC:          |     396 |   *** | MONSTER |
--------------+---------+-------+---------+
3 metric are OUT OF RANGE!

draw_box (Begins at: 1436 Ends at: 1465)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       5 |     * |         |
CalledNBR:    |      11 |       |      OK |
LOC:          |      30 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

draw_circle (Begins at: 1470 Ends at: 1510)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       5 |     * |         |
CalledNBR:    |       7 |       |      OK |
LOC:          |      41 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

numtrap (Begins at: 1515 Ends at: 1583)
--------------+---------+-------+---------+
Complexity:   |      10 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |      11 |       |      OK |
LOC:          |      69 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Clone analysis:

This file does not contain  cloned functions

__________________________________________

Threshold GRASS6 key metrics values at 2006-10-11 are:
---------------------------+-----------+---------+
                    median | upper     | outlier |
                           | quartile  | limit   |
---------------------------+-----------+---------+
Complexity (Cyclo):      5 |        25 |      37 |
ParamNBR:                2 |         6 |       8 |
CalledNBR:              10 |        60 |      85 |
LOC:                    41 |       189 |     264 |
---------------------------+-----------+---------+

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