forked from PyCQA/bandit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pylintrc
97 lines (82 loc) · 3.36 KB
/
pylintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# The format of this file isn't really documented; just use --generate-rcfile
[Messages Control]
# C0111: Don't require docstrings on every method
# C0301: Handled by pep8
# C0325: Parens are required on print in py3x
# F0401: Imports are check by other linters
# W0511: TODOs in code comments are fine.
# W0622: Redefining id is fine.
# TODO(browne): fix these in the future
# C0103: invalid-name
# C0114: Missing module docstring
# C0115: Missing class docstring
# C0116: Missing function or method docstring
# C0201: consider-iterating-dictionary
# C0206: Consider iterating with .items()
# C0209: Foramtting a regular string which could be an f-string
# C0413: wrong-import-position
# C0415: Import outside toplevel
# C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty
# E0611: No name in module
# E1101: no-member
# R0801: Similar lines in 2 files
# R0902: too-many-instance-attributes
# R0912: too-many-branches
# R0913: too-many-arguments
# R0914: too-many-locals
# R0915: too-many-statements
# R1702: too-many-nested-blocks
# R1705: no-else-return
# R1710: inconsistent-return-statements
# R1714: Consider merging these comparisons with 'in'
# R1721: Unnecessary use of a comprehension
# R1732: Consider using 'with' for resource-allocating operations
# R1734: Consider using [] instead of list()
# R1735: use-dict-literal
# W0105: String statement has no effect
# W0201: attribute-defined-outside-init
# W0212: protected-access
# W0246: Useless parent or super() delegation
# W0603: global-statement
# W0612: Unused variable
# W0613: unused-argument
# W0621: redefined-outer-name
# W0707: Consider explicitly re-raising
# W0718: Catching too general exception Exception
# W1201: logging-not-lazy
# W1203: Use lazy % or % formatting in logging functions
# W1404: Implicit string concatenation found in call
# W1514: Using open without explicitly specifying an encoding
disable=C0103,C0114,C0115,C0116,C0201,C0206,C0209,C0301,C0413,C0415,C1802,F0401,W0511,W0622,E0611,E1101,R0801,R0902,R0912,R0913,R0914,R0915,R1702,R1705,R1710,R1714,R1721,R1732,R1734,R1735,W0105,W0201,W0212,W0246,W0603,W0612,W0613,W0621,W0707,W0718,W1201,W1203,W1404,W1514
[Basic]
# Variable names can be 1 to 31 characters long, with lowercase and underscores
variable-rgx=[a-z_][a-z0-9_]{0,30}$
# Argument names can be 2 to 31 characters long, with lowercase and underscores
argument-rgx=[a-z_][a-z0-9_]{1,30}$
# Method names should be at least 3 characters long
# and be lowecased with underscores
method-rgx=([a-z_][a-z0-9_]{2,50}|setUp|tearDown)$
# Module names matching manila-* are ok (files in bin/)
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(manila-[a-z0-9_-]+))$
# Don't require docstrings on tests.
no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$
[Design]
max-public-methods=100
min-public-methods=0
max-args=6
[Variables]
# List of additional names supposed to be defined in builtins. Remember that
# you should avoid to define new builtins when possible.
# _ is used by our localization
additional-builtins=_
[Similarities]
# Minimum lines number of a similarity.
min-similarity-lines=10
# Ignore comments when computing similarities.
ignore-comments=yes
# We don't need to do pylint on the examples, too many false positives
ignore-paths=examples
# Ignore docstrings when computing similarities.
ignore-docstrings=yes
# Ignore imports when computing similarities.
ignore-imports=yes