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

PyLintBear: ignore PyLint rules individually #1475

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AGZ98
Copy link
Member

@AGZ98 AGZ98 commented Mar 4, 2017

User can now input id for PyLint checker that they want to disable. Fixes #18

For short term contributors: we understand that getting your commits well
defined like we require is a hard task and takes some learning. If you
look to help without wanting to contribute long term there's no need
for you to learn this. Just drop us a message and we'll take care of brushing
up your stuff for merge!

Checklist

  • I read the commit guidelines and I've followed
    them.
  • I ran coala over my code locally. (All commits have to pass
    individually.
    It is not sufficient to have "fixup commits" on your PR,
    our bot will still report the issues for the previous commit.) You will
    likely receive a lot of bot comments and build failures if coala does not
    pass on every single commit!

After you submit your pull request, DO NOT click the 'Update Branch' button.
When asked for a rebase, consult coala.io/rebase
instead.

Please consider helping us by reviewing other peoples pull requests as well:

The more you review, the more your score will grow at coala.io and we will
review your PRs faster!

@@ -32,7 +32,7 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains following spacing inconsistencies:

  • Trailing whitespaces.

SpaceConsistencyBear, severity NORMAL, section python.

The issue can be fixed by applying the following patch:

--- a/bears/python/PyLintBear.py
+++ b/bears/python/PyLintBear.py
@@ -32,7 +32,7 @@
 
     @staticmethod
     def create_arguments(filename, file, config_file,
-                         pylint_disable: typed_list(str)='', 
+                         pylint_disable: typed_list(str)='',
                          pylint_enable: typed_list(str)=None,
                          pylint_cli_options: str='',
                          pylint_rcfile: str=''):

@@ -32,7 +32,7 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

W291 trailing whitespace'

PycodestyleBear (W291), severity NORMAL, section autopep8.

@@ -32,7 +32,7 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code does not comply to PEP8.

PEP8Bear, severity NORMAL, section autopep8.

The issue can be fixed by applying the following patch:

--- a/bears/python/PyLintBear.py
+++ b/bears/python/PyLintBear.py
@@ -32,7 +32,7 @@
 
     @staticmethod
     def create_arguments(filename, file, config_file,
-                         pylint_disable: typed_list(str)='', 
+                         pylint_disable: typed_list(str)='',
                          pylint_enable: typed_list(str)=None,
                          pylint_cli_options: str='',
                          pylint_rcfile: str=''):

@@ -32,13 +32,13 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is longer than allowed. (91 > 79)

LineLengthBear, severity NORMAL, section linelength.

@@ -32,13 +32,13 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (91 > 79 characters)'

PycodestyleBear (E501), severity NORMAL, section autopep8.

@gitmate-bot
Copy link
Collaborator

Comment on 216a8b9.

Shortlog of HEAD commit does not match given regex: ([^:]|[^:]+: [A-Z0-9].*)

GitCommitBear, severity NORMAL, section commit.

@AGZ98 AGZ98 changed the title Bear issue PyLintBear: ignore PyLint rules individually Mar 4, 2017
@gitmate-bot gitmate-bot added size/M and removed size/S labels Mar 4, 2017
@@ -32,7 +32,7 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

W291 trailing whitespace'

PycodestyleBear (W291), severity NORMAL, section autopep8.

@@ -32,7 +32,7 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code does not comply to PEP8.

PEP8Bear, severity NORMAL, section autopep8.

The issue can be fixed by applying the following patch:

--- a/bears/python/PyLintBear.py
+++ b/bears/python/PyLintBear.py
@@ -32,7 +32,7 @@
 
     @staticmethod
     def create_arguments(filename, file, config_file,
-                         pylint_disable: typed_list(str)='', 
+                         pylint_disable: typed_list(str)='',
                          pylint_enable: typed_list(str)=None,
                          pylint_cli_options: str='',
                          pylint_rcfile: str=''):

@@ -32,7 +32,7 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains following spacing inconsistencies:

  • Trailing whitespaces.

SpaceConsistencyBear, severity NORMAL, section python.

The issue can be fixed by applying the following patch:

--- a/bears/python/PyLintBear.py
+++ b/bears/python/PyLintBear.py
@@ -32,7 +32,7 @@
 
     @staticmethod
     def create_arguments(filename, file, config_file,
-                         pylint_disable: typed_list(str)='', 
+                         pylint_disable: typed_list(str)='',
                          pylint_enable: typed_list(str)=None,
                          pylint_cli_options: str='',
                          pylint_rcfile: str=''):

@@ -32,13 +32,13 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (91 > 79 characters)'

PycodestyleBear (E501), severity NORMAL, section autopep8.

@@ -32,13 +32,13 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is longer than allowed. (91 > 79)

LineLengthBear, severity NORMAL, section linelength.

@gitmate-bot
Copy link
Collaborator

Comment on 216a8b9.

Shortlog of HEAD commit does not match given regex: ([^:]|[^:]+: [A-Z0-9].*)

GitCommitBear, severity NORMAL, section commit.

@@ -32,7 +32,7 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains following spacing inconsistencies:

  • Trailing whitespaces.

SpaceConsistencyBear, severity NORMAL, section python.

The issue can be fixed by applying the following patch:

--- a/bears/python/PyLintBear.py
+++ b/bears/python/PyLintBear.py
@@ -32,7 +32,7 @@
 
     @staticmethod
     def create_arguments(filename, file, config_file,
-                         pylint_disable: typed_list(str)='', 
+                         pylint_disable: typed_list(str)='',
                          pylint_enable: typed_list(str)=None,
                          pylint_cli_options: str='',
                          pylint_rcfile: str=''):

@@ -32,7 +32,7 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

W291 trailing whitespace'

PycodestyleBear (W291), severity NORMAL, section autopep8.

@@ -32,7 +32,7 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code does not comply to PEP8.

PEP8Bear, severity NORMAL, section autopep8.

The issue can be fixed by applying the following patch:

--- a/bears/python/PyLintBear.py
+++ b/bears/python/PyLintBear.py
@@ -32,7 +32,7 @@
 
     @staticmethod
     def create_arguments(filename, file, config_file,
-                         pylint_disable: typed_list(str)='', 
+                         pylint_disable: typed_list(str)='',
                          pylint_enable: typed_list(str)=None,
                          pylint_cli_options: str='',
                          pylint_rcfile: str=''):

@@ -32,13 +32,13 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is longer than allowed. (91 > 79)

LineLengthBear, severity NORMAL, section linelength.

@@ -32,13 +32,13 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (91 > 79 characters)'

PycodestyleBear (E501), severity NORMAL, section autopep8.

@gitmate-bot gitmate-bot added size/M and removed size/S labels Mar 4, 2017
@@ -32,7 +32,7 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains following spacing inconsistencies:

  • Trailing whitespaces.

SpaceConsistencyBear, severity NORMAL, section python.

The issue can be fixed by applying the following patch:

--- a/bears/python/PyLintBear.py
+++ b/bears/python/PyLintBear.py
@@ -32,7 +32,7 @@
 
     @staticmethod
     def create_arguments(filename, file, config_file,
-                         pylint_disable: typed_list(str)='', 
+                         pylint_disable: typed_list(str)='',
                          pylint_enable: typed_list(str)=None,
                          pylint_cli_options: str='',
                          pylint_rcfile: str=''):

@@ -32,7 +32,7 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

W291 trailing whitespace'

PycodestyleBear (W291), severity NORMAL, section autopep8.

@@ -32,7 +32,7 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code does not comply to PEP8.

PEP8Bear, severity NORMAL, section autopep8.

The issue can be fixed by applying the following patch:

--- a/bears/python/PyLintBear.py
+++ b/bears/python/PyLintBear.py
@@ -32,7 +32,7 @@
 
     @staticmethod
     def create_arguments(filename, file, config_file,
-                         pylint_disable: typed_list(str)='', 
+                         pylint_disable: typed_list(str)='',
                          pylint_enable: typed_list(str)=None,
                          pylint_cli_options: str='',
                          pylint_rcfile: str=''):

@@ -32,7 +32,7 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How this solves the problem?

@@ -49,8 +49,6 @@ def create_arguments(filename, file, config_file,
'--msg-template="L{line}C{column}: {msg_id} - {msg}"')
if pylint_disable:
args += ('--disable=' + ','.join(pylint_disable),)
if pylint_enable:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you should also change the tests.

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

22 similar comments
@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

PyLintBear: Use checker/rule as origin
6 participants