-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generate_bear_requirements.py: Add Perl Meta #2896
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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}, | ||
); |
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}, | ||
); |
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: {} |
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 ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this dependency manager available in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No it is not available, Thank you for pointing me in the right direction ... I will create There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think there is a need to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will you be fixing this @Ishaan29 ? |
||
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]'} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isnt a template if it has literal values in it.