[GRASS-QA] GRASS QA: glynn | ./grass6/lib/gis/color_rules.c |no
clones | 2 monsters | 0 warnings
grass-qa at proxy.soccerlab.polymtl.ca
grass-qa at proxy.soccerlab.polymtl.ca
Thu Apr 12 17:34:29 EDT 2007
Hello glynn,
here a report on your recent GRASS-CVS change:
ANALYSIS
your changes to files/functions:
lib/gis/color_rules.c functions
G_parse_color_rule (Begins at: 42 Ends at: 106)
--------------+---------+-------+---------+
Complexity: | 10 | | OK |
ParamNBR: | 10 | *** | MONSTER |
CalledNBR: | 10 | | OK |
LOC: | 65 | | OK |
--------------+---------+-------+---------+
1 metric are OUT OF RANGE!
G_parse_color_rule_error (Begins at: 108 Ends at: 120)
--------------+---------+-------+---------+
Complexity: | 9 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 6 | | OK |
LOC: | 13 | | OK |
--------------+---------+-------+---------+
metrics are OK
G_read_color_rule (Begins at: 122 Ends at: 153)
--------------+---------+-------+---------+
Complexity: | 5 | | OK |
ParamNBR: | 10 | *** | MONSTER |
CalledNBR: | 6 | | OK |
LOC: | 32 | | OK |
--------------+---------+-------+---------+
1 metric are OUT OF RANGE!
G_read_color_rules (Begins at: 155 Ends at: 233)
--------------+---------+-------+---------+
Complexity: | 12 | | OK |
ParamNBR: | 6 | * | |
CalledNBR: | 9 | | OK |
LOC: | 79 | | OK |
--------------+---------+-------+---------+
metrics are OK
load_color_rules (Begins at: 235 Ends at: 252)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 5 | * | |
CalledNBR: | 5 | | OK |
LOC: | 18 | | OK |
--------------+---------+-------+---------+
metrics are OK
G_make_colors (Begins at: 254 Ends at: 257)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 4 | | OK |
CalledNBR: | 1 | | OK |
LOC: | 4 | | OK |
--------------+---------+-------+---------+
metrics are OK
G_make_fp_colors (Begins at: 259 Ends at: 262)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 4 | | OK |
CalledNBR: | 1 | | OK |
LOC: | 4 | | OK |
--------------+---------+-------+---------+
metrics are OK
Clone analysis:
This file does not contain cloned functions
__________________________________________
Threshold GRASS6 key metrics values at 2007-04-12 are:
---------------------------+-----------+---------+
median | upper | outlier |
| quartile | limit |
---------------------------+-----------+---------+
Complexity (Cyclo): 5 | 25 | 37 |
ParamNBR: 2 | 6 | 9 |
CalledNBR: 10 | 60 | 87 |
LOC: 43 | 195 | 272 |
---------------------------+-----------+---------+
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