Skip to content
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

DistributionRequirement enhancements #1403

Merged
merged 6 commits into from
Feb 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ gem "csvlint"
gem "puppet-lint"
gem "reek"
gem "rubocop"
gem "ruby"
gem "scss_lint", require: false
gem "sqlint"
3 changes: 3 additions & 0 deletions bears/java/CheckstyleBear.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from coalib.bearlib.abstractions.Linter import linter
from coalib.settings.Setting import path
from dependency_management.requirements.DistributionRequirement import (
DistributionRequirement)


_online_styles = {
Expand Down Expand Up @@ -43,6 +45,7 @@ class CheckstyleBear:
"""

LANGUAGES = {'Java'}
REQUIREMENTS = {DistributionRequirement(apt_get='default-jre')}
AUTHORS = {'The coala developers'}
AUTHORS_EMAILS = {'[email protected]'}
LICENSE = 'AGPL-3.0'
Expand Down
3 changes: 1 addition & 2 deletions bears/perl/PerlCriticBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ class PerlCriticBear:
"""

LANGUAGES = {'Perl'}
REQUIREMENTS = {DistributionRequirement(apt_get='perl'),
DistributionRequirement(apt_get='libperl-critic-perl')}
REQUIREMENTS = {DistributionRequirement(apt_get='libperl-critic-perl')}
AUTHORS = {'The coala developers'}
AUTHORS_EMAILS = {'[email protected]'}
LICENSE = 'AGPL-3.0'
Expand Down
3 changes: 3 additions & 0 deletions bears/php/PHPLintBear.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from coalib.bearlib.abstractions.Linter import linter
from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY
from dependency_management.requirements.DistributionRequirement import (
DistributionRequirement)


@linter(executable='php',
Expand All @@ -13,6 +15,7 @@ class PHPLintBear:
Checks the code with ``php -l``. This runs it on each file separately.
"""
LANGUAGES = {'PHP'}
REQUIREMENTS = {DistributionRequirement(apt_get='php-cli')}
AUTHORS = {'The coala developers'}
AUTHORS_EMAILS = {'[email protected]'}
LICENSE = 'AGPL-3.0'
Expand Down
4 changes: 3 additions & 1 deletion bears/ruby/RubySyntaxBear.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from coalib.bearlib.abstractions.Linter import linter
from dependency_management.requirements.GemRequirement import GemRequirement
from dependency_management.requirements.DistributionRequirement import (
DistributionRequirement)


@linter(executable='ruby',
Expand All @@ -14,7 +16,7 @@ class RubySyntaxBear:
Checks the code with ``ruby -wc`` on each file separately.
"""
LANGUAGES = {'Ruby'}
REQUIREMENTS = {GemRequirement('ruby', '2.1.5')}
REQUIREMENTS = {DistributionRequirement(apt_get='ruby')}
AUTHORS = {'The coala developers'}
AUTHORS_EMAILS = {'[email protected]'}
LICENSE = 'AGPL-3.0'
Expand Down
3 changes: 3 additions & 0 deletions bears/scala/ScalaLintBear.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from os.path import abspath, dirname, join

from coalib.bearlib.abstractions.Linter import linter
from dependency_management.requirements.DistributionRequirement import (
DistributionRequirement)


scalastyle_config_file = join(dirname(abspath(__file__)),
Expand All @@ -18,6 +20,7 @@ class ScalaLintBear:
"""

LANGUAGES = {'Scala'}
REQUIREMENTS = {DistributionRequirement(apt_get='default-jre')}
AUTHORS = {'The coala developers'}
AUTHORS_EMAILS = {'[email protected]'}
LICENSE = 'AGPL-3.0'
Expand Down
2 changes: 1 addition & 1 deletion bears/xml2/XMLBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class XMLBear:
See http://xmlsoft.org/xmllint.html
"""
LANGUAGES = {'XML'}
REQUIREMENTS = {DistributionRequirement(apt_get='libxml2')}
REQUIREMENTS = {DistributionRequirement(apt_get='libxml2-utils')}
AUTHORS = {'The coala developers'}
AUTHORS_EMAILS = {'[email protected]'}
LICENSE = 'AGPL-3.0'
Expand Down