.pylintrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 25 Apr 2012 19:42:00 +0300
changeset 434 c66a176a8af9
parent 312 fc29a6c443ba
child 546 419b08030903
permissions -rw-r--r--
Switch input method.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
312
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
# Brain-dead errors regarding standard language features
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
#   W0142 = *args and **kwargs support
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
#   W0403 = Relative imports
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
# Pointless whinging
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
#   R0201 = Method could be a function
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
#   W0212 = Accessing protected attribute of client class
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
#   W0613 = Unused argument
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
#   W0232 = Class has no __init__ method
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
#   R0903 = Too few public methods
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
#   C0301 = Line too long
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
#   R0913 = Too many arguments
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
#   C0103 = Invalid name
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
#   R0914 = Too many local variables
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
# PyLint's module importation is unreliable
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
#   F0401 = Unable to import module
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
#   W0402 = Uses of a deprecated module
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
# Already an error when wildcard imports are used
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
#   W0614 = Unused import from wildcard
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
# Sometimes disabled depending on how bad a module is
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
#   C0111 = Missing docstring
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
# Disable the message(s) with the given id(s).
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
disable-msg=W0142,W0403,R0201,W0212,W0613,W0232,R0903,W0614,C0111,C0301,R0913,C0103,F0401,W0402,R0914
fc29a6c443ba http://stackoverflow.com/questions/35470/are-there-any-static-analysis-tools-for-python
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28