Analizo
view release on metacpan or search on metacpan
lib/Analizo/Command/metrics.pm view on Meta::CPAN
if ($opt->globalonly) {
print $metrics->report_global_metrics_only;
}
else {
print $metrics->report;
}
close STDOUT;
}
=head1 DESCRIPTION
analizo metrics analyzes source code in I<input> and produces a metrics
report. If I<input> is omitted, the current directory (I<.>) is assumed.
The produced report is written to the standard output, or to a file using the
I<--output> option, using the YAML format (see I<http://www.yaml.org/>)
analizo metrics is part of the analizo suite.
=head1 OPTIONS
=over
=item <input>
Tells analizo which source code directory you want to parse.
=item --extractor <extractor>
Define which extractor method use to parse the source code. Default is Doxyparse.
When using the Doxyparse extractor (default), all files matching the languages
supported by doxyparse are processed, unless I<--language> is used.
=item --list, -l
Displays metric list.
=item --output <file>, -o <file>
Writes the output to <file> instead of standard output.
=item --globalonly, --global-only, -g
Don't output the details about modules: only output global (project-wide) metrics.
=item --language <lang>
Process only filenames matching known extensions for the <I<lang>> programming
language. To see which languages are supported, pass B<--language list>.
=item --exclude <dirs>, -x <dirs>
Exclude <I<dirs>> (a colon-separated list of directories) from the analysis.
This is useful, for example, when you want to focus on production code and
exclude test code from the analysis. You could do that by passing something
like pass B<--exclude test>.
=back
=head1 OUTPUT FORMAT
The output is a stream of YAML documents. The first one presents metrics for
the project as a whole. The subsequent ones present per-module metrics, and thus
there will be as many of them as there are modules in your project.
=head1 COPYRIGHT AND AUTHORS
See B<analizo(1)>.
=cut
1;
( run in 3.271 seconds using v1.01-cache-2.11-cpan-2398b32b56e )