[GRASS-QA] GRASS QA: hamish | ./grass6/imagery/i.points/analyze.c |6 clones ( analyze.c )| 0 monsters | 3 warnings

cvs at proxy.soccerlab.polymtl.ca cvs at proxy.soccerlab.polymtl.ca
Wed Jul 5 04:31:05 EDT 2006


Hello hamish,

here a report on your recent GRASS-CVS change:

ANALYSIS

your changes to files/functions:


imagery/i.points/analyze.c functions


analyze (Begins at: 57 Ends at: 267)
--------------+---------+-------+---------+
Complexity:   |      12 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |      57 |    ** | Warning |
LOC:          |     211 |    ** | Warning |
--------------+---------+-------+---------+
at least 2 values are close to an outlier please consider revising code

uparrow (Begins at: 270 Ends at: 276)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |       2 |       |      OK |
LOC:          |       7 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

downarrow (Begins at: 278 Ends at: 284)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |       2 |       |      OK |
LOC:          |       7 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

pick (Begins at: 286 Ends at: 335)
--------------+---------+-------+---------+
Complexity:   |       8 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |      10 |       |      OK |
LOC:          |      50 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

done (Begins at: 337 Ends at: 341)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       1 |       |      OK |
LOC:          |       5 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

cancel_which (Begins at: 343 Ends at: 355)
--------------+---------+-------+---------+
Complexity:   |       2 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       3 |       |      OK |
LOC:          |      13 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

inbox (Begins at: 357 Ends at: 360)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       3 |       |      OK |
CalledNBR:    |       0 |       |      OK |
LOC:          |       4 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

dotext (Begins at: 362 Ends at: 376)
--------------+---------+-------+---------+
Complexity:   |       2 |       |      OK |
ParamNBR:     |       7 |    ** | Warning |
CalledNBR:    |       9 |       |      OK |
LOC:          |      15 |       |      OK |
--------------+---------+-------+---------+
at least 1 values are close to an outlier please consider revising code

compute_transformation (Begins at: 378 Ends at: 439)
--------------+---------+-------+---------+
Complexity:   |       9 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       5 |       |      OK |
LOC:          |      62 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

to_file (Begins at: 441 Ends at: 467)
--------------+---------+-------+---------+
Complexity:   |       3 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |      10 |       |      OK |
LOC:          |      27 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

askfile (Begins at: 469 Ends at: 490)
--------------+---------+-------+---------+
Complexity:   |       5 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |      10 |       |      OK |
LOC:          |      22 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

to_printer (Begins at: 492 Ends at: 502)
--------------+---------+-------+---------+
Complexity:   |       1 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |       5 |       |      OK |
LOC:          |      11 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

do_report (Begins at: 504 Ends at: 548)
--------------+---------+-------+---------+
Complexity:   |       5 |       |      OK |
ParamNBR:     |       1 |       |      OK |
CalledNBR:    |      20 |       |      OK |
LOC:          |      45 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

printcentered (Begins at: 550 Ends at: 567)
--------------+---------+-------+---------+
Complexity:   |       2 |       |      OK |
ParamNBR:     |       3 |       |      OK |
CalledNBR:    |       4 |       |      OK |
LOC:          |      18 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

show_point (Begins at: 569 Ends at: 580)
--------------+---------+-------+---------+
Complexity:   |       3 |       |      OK |
ParamNBR:     |       2 |       |      OK |
CalledNBR:    |       4 |       |      OK |
LOC:          |      12 |       |      OK |
--------------+---------+-------+---------+
metrics are OK

Clone analysis:

This file has 6 potentially cloned functions:
  dotext  to_file  do_report  printcentered  askfile  analyze

In imagery/i.points/analyze.c clones of  analyze are:
	imagery/i.ortho.photo/photo.2image/analyze.c  analyze

In imagery/i.points/analyze.c clones of  printcentered are:
	imagery/i.vpoints/analyze.c  printcentered
	imagery/i.ortho.photo/photo.2target/analyze.c  printcentered
	imagery/i.ortho.photo/photo.2image/analyze.c  printcentered

In imagery/i.points/analyze.c clones of  do_report are:
	imagery/i.vpoints/analyze.c  do_report
	imagery/i.ortho.photo/photo.2image/analyze.c  do_report

In imagery/i.points/analyze.c clones of  to_file are:
	imagery/i.vpoints/analyze.c  to_file
	imagery/i.ortho.photo/photo.2target/analyze.c  to_file
	imagery/i.ortho.photo/photo.2image/analyze.c  to_file

In imagery/i.points/analyze.c clones of  askfile are:
	imagery/i.vpoints/analyze.c  askfile
	imagery/i.ortho.photo/photo.2target/analyze.c  askfile
	imagery/i.ortho.photo/photo.2image/analyze.c  askfile

In imagery/i.points/analyze.c clones of  dotext are:
	imagery/i.vpoints/analyze.c  dotext
	imagery/i.ortho.photo/photo.2image/use_camera.c  dotext
	imagery/i.ortho.photo/photo.2image/mark.c  dotext


__________________________________________

Threshold GRASS6 key metrics values at 2006-07-05 are:
---------------------------+-----------+---------+
                    median | upper     | outlier |
                           | quartile  | limit   |
---------------------------+-----------+---------+
Complexity (Cyclo):      5 |        25 |      37 |
ParamNBR:                2 |         6 |       8 |
CalledNBR:               9 |        55 |      79 |
LOC:                    40 |       180 |     252 |
---------------------------+-----------+---------+

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