[GRASS-QA] GRASS QA: martinl |parser.c | 2 clones | 0 monsters |0
warnings
soccerlab.info at gmail.com
soccerlab.info at gmail.com
Wed Sep 10 12:28:21 EDT 2008
Hello martinl,
here's a report on your recent GRASS-SVN change :
ANALYSIS
your changes to files/class/methods/functions :
*****************************************************************
File :grass/branches/develbranch_6/lib/gis/parser.c
*****************************************************************
Class
Item(Begins at: 108, Ends at:113)
+--------+--------+--------+--------+--------+--------+
| DIT | NOC | WMC | RFC | CBO | LCOM |
+------------+--------+--------+--------+--------+--------+--------|
|NEW Metrics | 1 | 0 | 0 | 0 | 0 | 0 |
+------------+--------+--------+--------+--------+--------+--------|
|OLD Metrics | | | | | | |
+------------+--------+--------+--------+--------+--------+--------+
Function
check_an_opt(Begins at: 2206, Ends at:2248)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 10 | *** | MONSTER | |
ParamNBR: | 4 | *** | MONSTER | |
CalledNBR: | 13 | *** | MONSTER | |
LOC: | 43 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
check_double(Begins at: 2314, Ends at:2350)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 14 | *** | MONSTER | |
ParamNBR: | 2 | *** | MONSTER | |
CalledNBR: | 6 | *** | MONSTER | |
LOC: | 37 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
check_int(Begins at: 2250, Ends at:2286)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 14 | *** | MONSTER | |
ParamNBR: | 2 | *** | MONSTER | |
CalledNBR: | 6 | *** | MONSTER | |
LOC: | 37 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
check_multiple_opts(Begins at: 2463, Ends at:2499)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 8 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 5 | *** | MONSTER | |
LOC: | 37 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
check_opts(Begins at: 2170, Ends at:2204)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 7 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 3 | *** | MONSTER | |
LOC: | 35 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
check_overwrite(Begins at: 2502, Ends at:2565)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 12 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 16 | *** | MONSTER | |
LOC: | 64 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
check_required(Begins at: 2378, Ends at:2401)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 4 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 2 | *** | MONSTER | |
LOC: | 24 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
check_string(Begins at: 2352, Ends at:2376)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 9 | *** | MONSTER | |
ParamNBR: | 2 | *** | MONSTER | |
CalledNBR: | 6 | *** | MONSTER | |
LOC: | 25 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
contains(Begins at: 2088, Ends at:2096)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 3 | *** | MONSTER | |
ParamNBR: | 2 | *** | MONSTER | |
CalledNBR: | 0 | *** | MONSTER | |
LOC: | 9 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
generate_tcl(Begins at: 1820, Ends at:1918)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 12 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 34 | *** | MONSTER | |
LOC: | 99 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
gis_prompt(Begins at: 2725, Ends at:2769)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 11 | *** | MONSTER | |
ParamNBR: | 2 | *** | MONSTER | |
CalledNBR: | 20 | *** | MONSTER | |
LOC: | 45 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_define_flag(Begins at: 179, Ends at:216)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 3 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 4 | *** | MONSTER | |
LOC: | 38 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_define_module(Begins at: 650, Ends at:663)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 1 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 0 | *** | MONSTER | |
LOC: | 14 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_define_option(Begins at: 235, Ends at:286)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 3 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 4 | *** | MONSTER | |
LOC: | 52 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_define_standard_option(Begins at: 315, Ends at:641)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 38 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 43 | *** | MONSTER | |
LOC: | 327 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_disable_interactive(Begins at: 158, Ends at:163)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 1 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 0 | *** | MONSTER | |
LOC: | 6 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_gui(Begins at: 1978, Ends at:1993)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 3 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 5 | *** | MONSTER | |
LOC: | 16 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_gui_tcltk(Begins at: 1923, Ends at:1952)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 6 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 12 | *** | MONSTER | |
LOC: | 30 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_gui_wx(Begins at: 1957, Ends at:1969)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 3 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 6 | *** | MONSTER | |
LOC: | 13 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_parser(Begins at: 702, Ends at:963)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 41 | *** | MONSTER | |
ParamNBR: | 2 | *** | MONSTER | |
CalledNBR: | 85 | *** | MONSTER | |
LOC: | 262 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_recreate_command(Begins at: 2779, Ends at:2878)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 14 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 26 | *** | MONSTER | |
LOC: | 100 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_script(Begins at: 1701, Ends at:1813)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 24 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 46 | *** | MONSTER | |
LOC: | 113 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_tcltk(Begins at: 1998, Ends at:2006)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 3 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 2 | *** | MONSTER | |
LOC: | 9 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_usage(Begins at: 1013, Ends at:1184)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 34 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 53 | *** | MONSTER | |
LOC: | 172 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_usage_html(Begins at: 1477, Ends at:1696)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 42 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 85 | *** | MONSTER | |
LOC: | 220 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
G_usage_xml(Begins at: 1239, Ends at:1472)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 31 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 87 | *** | MONSTER | |
LOC: | 234 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
interactive(Begins at: 2567, Ends at:2593)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 6 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 4 | *** | MONSTER | |
LOC: | 27 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
interactive_flag(Begins at: 2595, Ends at:2604)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 1 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 4 | *** | MONSTER | |
LOC: | 10 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
interactive_option(Begins at: 2606, Ends at:2693)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 24 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 37 | *** | MONSTER | |
LOC: | 88 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
is_option(Begins at: 2098, Ends at:2111)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 4 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 2 | *** | MONSTER | |
LOC: | 14 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
print_escaped_for_html(Begins at: 1218, Ends at:1232)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 4 | *** | MONSTER | |
ParamNBR: | 2 | *** | MONSTER | |
CalledNBR: | 5 | *** | MONSTER | |
LOC: | 15 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
print_escaped_for_xml(Begins at: 1194, Ends at:1211)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 7 | *** | MONSTER | |
ParamNBR: | 2 | *** | MONSTER | |
CalledNBR: | 4 | *** | MONSTER | |
LOC: | 18 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
set_flag(Begins at: 2059, Ends at:2083)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 4 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 4 | *** | MONSTER | |
LOC: | 25 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
set_option(Begins at: 2113, Ends at:2168)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 8 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 13 | *** | MONSTER | |
LOC: | 56 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
show(Begins at: 2045, Ends at:2057)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 3 | *** | MONSTER | |
ParamNBR: | 2 | *** | MONSTER | |
CalledNBR: | 3 | *** | MONSTER | |
LOC: | 13 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
show_options(Begins at: 2015, Ends at:2043)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 4 | *** | MONSTER | |
ParamNBR: | 2 | *** | MONSTER | |
CalledNBR: | 11 | *** | MONSTER | |
LOC: | 29 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
split_gisprompt(Begins at: 2695, Ends at:2723)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 7 | *** | MONSTER | |
ParamNBR: | 4 | *** | MONSTER | |
CalledNBR: | 0 | *** | MONSTER | |
LOC: | 29 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
split_opts(Begins at: 2403, Ends at:2461)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 10 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 6 | *** | MONSTER | |
LOC: | 59 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
uses_new_gisprompt(Begins at: 966, Ends at:988)
--------------+---------+-------+--------------+-----------+
| New Metrics |Old Metrics|
--------------+---------+-------+--------------+-----------+
Complexity: | 5 | *** | MONSTER | |
ParamNBR: | 1 | *** | MONSTER | |
CalledNBR: | 2 | *** | MONSTER | |
LOC: | 23 | *** | MONSTER | |
--------------+---------+-------+--------------+-----------+
Conclusion: | this function is a MONSTER |
-----------------------------------------------------------+
metrics are OK
Clone analysis:
This file has 2 potentially cloned functions:
check_double
In /var/project-manager/grass/grassSVN/grass/branches/develbranch_6/lib/gis/parser.c clones of check_double are:
/var/project-manager/grass/grassSVN/grass/branches/develbranch_6/lib/gis/parser.c check_int
In /var/project-manager/grass/grassSVN/grass/branches/develbranch_6/lib/gis/parser.c clones of check_int are:
/var/project-manager/grass/grassSVN/grass/branches/develbranch_6/lib/gis/parser.c check_double
____________________________________________
Threshold GRASS6 key metrics values at Wed Sep 10 12:34:47 EDT 2008 are:
----------------------+-----------+-----------+-----------+
| warning | middle | extrem |
| limits | limits | limits |
----------------------+-----------+-----------+-----------+
Complexity (Cyclo): | 0 | 0 | 0 |
ParamNBR: | 0 | 0 | 0 |
CalledNBR: | 0 | 0 | 0 |
LOC: | 0 | 0 | 0 |
----------------------+-----------+-----------+-----------+
Please visite our web site on your project at :http://web.soccerlab.polymtl.ca/project-manager/index.html
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
-Global analysis: based on 21 metrics(the fourth preceding include)
Message interpretation :
OK : Nothing to say at all
* : this is getting close to be out of range, consider revising the code
** : this is a baby monster, you should revise this function
***: this is a monster, definitely you should revise this function
Conclusion interpretation :
CORRECT : if all metrics are situated before warning limits
WARNING : if 1 to more metrics are between warning and middle limits
BABY_MONSTER: if 1 to more metrics are between middle and extreme limits
MONSTERS : if 1 to more metrics are in the extreme limits
_______________________________________________
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