librelist archives

« back to archive

Running "metrics" function in only one file

Running "metrics" function in only one file

From:
Lucas Kanashiro
Date:
2013-12-09 @ 13:48
When we run the command: "analizo metrics path/file.java", the Analizo
generate the report of all files along the path. Is this correct? Cannot
Analizo generate the report of only one file?

Re: [analizo] Running "metrics" function in only one file

From:
Paulo Meirelles
Date:
2013-12-09 @ 14:32
2013/12/9 Lucas Kanashiro <kanashiro.duarte@gmail.com>

> When we run the command: "analizo metrics path/file.java", the Analizo
> generate the report of all files along the path. Is this correct?
>

No.It should generate just for a file/module/class.


> Cannot Analizo generate the report of only one file?
>

Please, test this case using the stable version: 0.17.0

best,
-- 
Paulo Meirelles
FGA-UnB (http://fga.unb.br)
CCSL-IME/USP (http://ccsl.ime.usp.br)

Re: [analizo] Running "metrics" function in only one file

From:
Antonio Terceiro
Date:
2013-12-09 @ 14:39
On Mon, Dec 09, 2013 at 11:48:50AM -0200, Lucas Kanashiro wrote:
> When we run the command: "analizo metrics path/file.java", the Analizo
> generate the report of all files along the path. Is this correct? Cannot
> Analizo generate the report of only one file?

from the manpage:

> USAGE
>          analizo metrics [OPTIONS] [<input>]
> 
> DESCRIPTION
>        analizo metrics analyzes source code in input and produces a 
metrics report. If input is ommitted, the current directory (.) is 
assumed.
> 
>        The produced report is written to the standard output, or to a 
file using the --output option, using the YAML format (see
>        http://www.yaml.org/)
> 
>        analizo metrics is part of the analizo suite.
> 
> OPTIONS
>        <input>
>            Tells analizo which source code directory you want to parse.
                                             ^^^^^^^^^
the documentation should probably be enhanced to make that more clear, but the
idea is that analyzing a singe file/module does not make much sense because of
dependencies etc.

-- 
Antonio Terceiro <terceiro@softwarelivre.org>
http://softwarelivre.org/terceiro