Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moznion/Perl-Lint
Yet Another Perl Source Code Linter
https://github.com/moznion/Perl-Lint
Last synced: 3 months ago
JSON representation
Yet Another Perl Source Code Linter
- Host: GitHub
- URL: https://github.com/moznion/Perl-Lint
- Owner: moznion
- License: other
- Created: 2014-05-01T07:55:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-29T16:53:42.000Z (about 8 years ago)
- Last Synced: 2024-06-18T21:34:18.793Z (5 months ago)
- Language: Perl
- Homepage: https://metacpan.org/pod/Perl::Lint
- Size: 771 KB
- Stars: 94
- Watchers: 19
- Forks: 12
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/moznion/Perl-Lint.svg?branch=master)](https://travis-ci.org/moznion/Perl-Lint) [![Coverage Status](https://img.shields.io/coveralls/moznion/Perl-Lint/master.svg?style=flat)](https://coveralls.io/r/moznion/Perl-Lint?branch=master)
# NAMEPerl::Lint - Yet Another Perl Source Code Linter
# SYNOPSIS
use Perl::Lint;
my $linter = Perl::Lint->new;
my $target_files = [qw(foo/bar.pl buz.pm)];
my $violations = $linter->lint($target_files);# DESCRIPTION
Perl::Lint is the yet another source code linter for perl.
# AIMS
Development of this module aims to create a fast and flexible static analyzer for Perl5 that has compatibility with Perl::Critic
Please see also [http://news.perlfoundation.org/2014/03/grant-proposal-perllint---yet.html](http://news.perlfoundation.org/2014/03/grant-proposal-perllint---yet.html).
# METHODS
- `$linter->lint($target_files:SCALAR or ARRAYREF, $args:HASHREF)`
`lint` checks the violations of target files. It can export.
On default, this function checks the all of policies that are in `Perl::Lint::Policy::*`.# PERFORMANCE
Benchmark script: [https://github.com/moznion/Perl-Lint/blob/master/author/benchmark\_lint\_vs\_critic.pl](https://github.com/moznion/Perl-Lint/blob/master/author/benchmark_lint_vs_critic.pl).
Rate Perl::Critic Perl::Lint
Perl::Critic 20.6/s -- -78%
Perl::Lint 92.0/s 348% --# SEE ALSO
[Perl::Critic](https://metacpan.org/pod/Perl::Critic)
# LICENSE
Copyright (C) moznion.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.# AUTHOR
moznion