[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
Sun Nov 12 23:21:47 EST 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: 653)
--------------+---------+-------+---------+
Complexity:   |      57 |   *** | MONSTER |
ParamNBR:     |       9 |   *** | MONSTER |
CalledNBR:    |     155 |   *** | MONSTER |
LOC:          |     533 |   *** | MONSTER |
--------------+---------+-------+---------+
4 metric are OUT OF RANGE!

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

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

get_rd (Begins at: 965 Ends at: 977)
--------------+---------+-------+---------+
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: 982 Ends at: 987)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       1 |       |      OK |
LOC:          |       6 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

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

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

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

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

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

numtrap (Begins at: 1516 Ends at: 1584)
--------------+---------+-------+---------+
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-11-12 are:
---------------------------+-----------+---------+
                    median | upper     | outlier |
                           | quartile  | limit   |
---------------------------+-----------+---------+
Complexity (Cyclo):      5 |        25 |      37 |
ParamNBR:                2 |         6 |       8 |
CalledNBR:              10 |        60 |      85 |
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