-
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 Metadata #2888
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 ( | ||
PerlRequirement) | ||
from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY | ||
|
||
|
||
|
@@ -24,14 +28,18 @@ 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'), | ||
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. The code does not comply to PEP8. Origin: PEP8Bear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpeyw4fo2e/bears/perl/PerlCriticBear.py
+++ b/tmp/tmpeyw4fo2e/bears/perl/PerlCriticBear.py
@@ -29,7 +29,7 @@
LANGUAGES = {'Perl'}
REQUIREMENTS = {
AnyOneOfRequirements(
- [PerlRequirement(package='Critic',version='==1.126'),
+ [PerlRequirement(package='Critic', version='==1.126'),
DistributionRequirement(
apt_get='libperl-critic-perl',
brew=None, 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. E231 missing whitespace after ',' Origin: PycodestyleBear (E231), Section: |
||
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', | ||
), | ||
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. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpeyw4fo2e/bears/perl/PerlCriticBear.py
+++ b/tmp/tmpeyw4fo2e/bears/perl/PerlCriticBear.py
@@ -38,7 +38,7 @@
xbps=None,
yum='perl-Perl-Critic',
zypper='perl-Perl-Critic',
- ),
+ ),
],
),
} 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 think the best way to prevent any such errors are using vs code editor 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. The code does not comply to PEP8. Origin: PEP8Bear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpeyw4fo2e/bears/perl/PerlCriticBear.py
+++ b/tmp/tmpeyw4fo2e/bears/perl/PerlCriticBear.py
@@ -38,8 +38,8 @@
xbps=None,
yum='perl-Perl-Critic',
zypper='perl-Perl-Critic',
- ),
- ],
+ ),
+ ],
),
}
AUTHORS = {'The coala developers'} 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. W291 trailing whitespace Origin: PycodestyleBear (W291), Section: |
||
], | ||
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. E124 closing bracket does not match visual indentation Origin: PycodestyleBear (E124), Section: |
||
), | ||
} | ||
AUTHORS = {'The coala developers'} | ||
|
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.
add blank at the end of code to prevent travis failing
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.
Sure 😄