[GRASS-QA] GRASS QA: scott | ./grass6/lib/db/sqlp/sql.c |1 clones (
sql.c )| 0 monsters | 0 warnings
grass-qa at proxy.soccerlab.polymtl.ca
grass-qa at proxy.soccerlab.polymtl.ca
Thu Apr 26 13:42:54 EDT 2007
Hello scott,
here a report on your recent GRASS-CVS change:
ANALYSIS
your changes to files/functions:
lib/db/sqlp/sql.c functions
sqpSaveStr (Begins at: 40 Ends at: 50)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 2 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 11 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpInitValue (Begins at: 53 Ends at: 59)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 0 | | OK |
LOC: | 7 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpCopyValue (Begins at: 62 Ends at: 74)
--------------+---------+-------+---------+
Complexity: | 3 | | OK |
ParamNBR: | 2 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 13 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpInitParser (Begins at: 76 Ends at: 89)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 0 | | OK |
LOC: | 14 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpCommand (Begins at: 91 Ends at: 95)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 0 | | OK |
LOC: | 5 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpTable (Begins at: 97 Ends at: 101)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 1 | | OK |
LOC: | 5 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpColumn (Begins at: 103 Ends at: 113)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 11 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpColumnDef (Begins at: 115 Ends at: 128)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 4 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 14 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpValue (Begins at: 130 Ends at: 162)
--------------+---------+-------+---------+
Complexity: | 5 | | OK |
ParamNBR: | 4 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 33 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpAssignment (Begins at: 164 Ends at: 200)
--------------+---------+-------+---------+
Complexity: | 6 | | OK |
ParamNBR: | 6 | * | |
CalledNBR: | 4 | | OK |
LOC: | 37 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpOrderColumn (Begins at: 202 Ends at: 208)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 2 | | OK |
CalledNBR: | 3 | | OK |
LOC: | 7 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpNewNode (Begins at: 211 Ends at: 217)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 1 | | OK |
LOC: | 7 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpNewExpressionNode (Begins at: 220 Ends at: 232)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 3 | | OK |
CalledNBR: | 1 | | OK |
LOC: | 13 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpNewColumnNode (Begins at: 235 Ends at: 245)
--------------+---------+-------+---------+
Complexity: | 1 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 11 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpNewValueNode (Begins at: 248 Ends at: 263)
--------------+---------+-------+---------+
Complexity: | 2 | | OK |
ParamNBR: | 4 | | OK |
CalledNBR: | 2 | | OK |
LOC: | 16 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpFreeNode (Begins at: 266 Ends at: 283)
--------------+---------+-------+---------+
Complexity: | 6 | | OK |
ParamNBR: | 1 | | OK |
CalledNBR: | 5 | | OK |
LOC: | 18 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpOperatorCode (Begins at: 286 Ends at: 330)
--------------+---------+-------+---------+
Complexity: | 16 | * | |
ParamNBR: | 1 | | OK |
CalledNBR: | 17 | | OK |
LOC: | 45 | | OK |
--------------+---------+-------+---------+
metrics are OK
sqpOperatorName (Begins at: 333 Ends at: 380)
--------------+---------+-------+---------+
Complexity: | 16 | * | |
ParamNBR: | 1 | | OK |
CalledNBR: | 0 | | OK |
LOC: | 48 | | OK |
--------------+---------+-------+---------+
metrics are OK
Clone analysis:
This file has 1 potentially cloned functions:
sqpSaveStr
In lib/db/sqlp/sql.c clones of sqpSaveStr are:
db/drivers/dbf/str.c save_string
__________________________________________
Threshold GRASS6 key metrics values at 2007-04-26 are:
---------------------------+-----------+---------+
median | upper | outlier |
| quartile | limit |
---------------------------+-----------+---------+
Complexity (Cyclo): 5 | 25 | 37 |
ParamNBR: 2 | 6 | 9 |
CalledNBR: 10 | 60 | 87 |
LOC: 43 | 195 | 273 |
---------------------------+-----------+---------+
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