forked from coala/coala-bears
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate_bear_requirements.py: Add Perl Meta
This enhances generate_bear_requirements.py to support perl bears and generate Makefile.PL using jinja2 template. closes coala#2483
- Loading branch information
Showing
6 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
use ExtUtils::MakeMaker; | ||
WriteMakefile( | ||
NAME => 'Coala::Bears', | ||
VERSION => '0.10', | ||
PREREQ_PM => {Perl::Critic => 1.126}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
use ExtUtils::MakeMaker; | ||
WriteMakefile( | ||
NAME => 'Coala::Bears', | ||
VERSION => '0.10', | ||
PREREQ_PM => {Perl::Critic => 1.126}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -233,3 +233,4 @@ cabal_requirements: | |
version: ==5.6.0.0 | ||
hlint: | ||
version: ==1.9.27 | ||
perl_requirements: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
from coalib.bearlib.abstractions.Linter import linter | ||
from dependency_management.requirements.DistributionRequirement import ( | ||
DistributionRequirement) | ||
from dependency_management.requirements.AnyOneOfRequirements import ( | ||
AnyOneOfRequirements) | ||
from dependency_managment.requirements.PerlRequirement import ( | ||
PerlRequirement) | ||
from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY | ||
|
||
|
||
|
@@ -24,15 +28,19 @@ class PerlCriticBear: | |
|
||
LANGUAGES = {'Perl'} | ||
REQUIREMENTS = { | ||
DistributionRequirement( | ||
apt_get='libperl-critic-perl', | ||
brew=None, | ||
dnf='perl-Perl-Critic', | ||
portage='dev-perl/Perl-Critic', | ||
xbps=None, | ||
yum='perl-Perl-Critic', | ||
zypper='perl-Perl-Critic', | ||
), | ||
AnyOneOfRequirements( | ||
[PerlRequirement(package='Critic', version='1.126'), | ||
DistributionRequirement( | ||
apt_get='libperl-critic-perl', | ||
brew=None, | ||
dnf='perl-Perl-Critic', | ||
portage='dev-perl/Perl-Critic', | ||
xbps=None, | ||
yum='perl-Perl-Critic', | ||
zypper='perl-Perl-Critic', | ||
), | ||
] | ||
) | ||
} | ||
AUTHORS = {'The coala developers'} | ||
AUTHORS_EMAILS = {'[email protected]'} | ||
|