Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Pluggable Perl Metrics System
Perl
Failed to load latest commit information.
bin pod
lib/Perl/Metrics Checking in changes prior to tagging of version 0.08.
t Don't modify the line number of subroutines
xt eval { use ...; } can't catch an exception
.gitignore initial commit
.shipit initial commit
Changes Checking in changes prior to tagging of version 0.08.
MANIFEST.SKIP Checking in changes prior to tagging of version 0.01.
Makefile.PL
README.pod Added README.pod

README.pod

NAME

Perl::Metrics::Lite - Pluggable Perl Code Metrics System

SYNOPSIS

  use Perl::Metrics::Lite;
  my $analzyer   = Perl::Metrics::Lite->new;
  my $analysis   = $analzyer->analyze_files(@ARGV);
  my $file_stats = $analysis->file_stats;
  my $sub_stats = $analysis->sub_stats;

DESCRIPTION

Perl::Metrics::Lite is the pluggable perl code metrics system.

Perl::Metrics::Lite provides just enough methods to run static analysis of one or many Perl files and obtain a few metrics.

Perl::Metrics::Lite is far simpler than Perl::Metrics and more extensible than Perl::Metrics::Simple.

USAGE

See the measureperl and measureperl-checkstyle script (included with this distribution) for a simple example of usage.

CLASS METHODS

new

Takes no arguments and returns a new Perl::Metrics::Lite object.

OBJECT METHODS

analyze_files( @paths, @refs_to_file_contents )

Takes an array of files and or directory paths, and/or SCALAR refs to file contents and returns an Perl::Metrics::Lite::Analysis object.

SOURCE AVAILABILITY

This source is in Github:

  http://github.com/dann/p5-perl-metrics-lite

CONTRIBUTORS

Many thanks to:

AUTHOR

Dann <techmemo{at}gmail.com>

SEE ALSO

Perl::Metrics Perl::Metrics::Simple

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Something went wrong with that request. Please try again.