Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dann/p5-perl-metrics-lite
Pluggable Perl Metrics System
https://github.com/dann/p5-perl-metrics-lite
Last synced: 25 days ago
JSON representation
Pluggable Perl Metrics System
- Host: GitHub
- URL: https://github.com/dann/p5-perl-metrics-lite
- Owner: dann
- License: other
- Created: 2011-12-20T14:15:41.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2019-02-28T13:44:14.000Z (over 5 years ago)
- Last Synced: 2024-10-03T10:18:16.480Z (about 1 month ago)
- Language: Perl
- Homepage:
- Size: 79.1 KB
- Stars: 6
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://metacpan.org/pod/Perl::Metrics)
and more extensible than [Perl::Metrics::Simple](https://metacpan.org/pod/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](https://metacpan.org/pod/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](https://metacpan.org/pod/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](https://metacpan.org/pod/Perl::Metrics)
[Perl::Metrics::Simple](https://metacpan.org/pod/Perl::Metrics::Simple)# LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.