forked from oamg/leapp-repository
-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.pylintrc
More file actions
70 lines (66 loc) · 1.8 KB
/
.pylintrc
File metadata and controls
70 lines (66 loc) · 1.8 KB
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
[MESSAGES CONTROL]
disable=
# "F" Fatal errors that prevent further processing
import-error,
# "I" Informational noise
# "E" Error for important programming issues (likely bugs)
no-member,
no-name-in-module,
raising-bad-type,
redundant-keyword-arg, # it's one or the other, this one is not so bad at all
# "W" Warnings for stylistic problems or minor programming issues
arguments-differ,
cell-var-from-loop,
fixme,
lost-exception,
pointless-string-statement,
protected-access,
redefined-outer-name,
undefined-loop-variable,
unsubscriptable-object,
unused-argument,
unused-import,
unspecified-encoding,
# "C" Coding convention violations
missing-docstring,
wrong-import-order,
use-maxsplit-arg,
consider-using-dict-items,
consider-using-enumerate,
# "R" Refactor recommendations
duplicate-code,
too-few-public-methods,
too-many-branches,
too-many-locals,
too-many-statements,
consider-using-from-import,
use-list-literal,
use-dict-literal,
too-many-lines, # we do not want to take care about that one
too-many-positional-arguments,
# new for python3 version of pylint
unnecessary-pass,
raise-missing-from, # no 'raise from' in python 2
consider-using-f-string, # sorry, not gonna happen, still have to support py2
logging-format-interpolation,
# problem betwee Python 3.6 and 3.8+ pylint
useless-option-value
[FORMAT]
# Maximum number of characters on a single line.
max-line-length=119
[DESIGN]
max-args=11 # 2x + 1 from default
max-attributes=21 # 4x + 1 from default
[REPORTS]
msg-template='[{msg_id} {symbol}] {msg} File: {path}, line {line}, in {obj}'
[BASIC]
# In order to make a check more strict add proper regex http://pylint-messages.wikidot.com/messages:c0103
argument-rgx=.*
attr-rgx=.*
class-rgx=.*
const-rgx=.*
function-rgx=.*
method-rgx=.*
module-rgx=.*
variable-rgx=.*
inlinevar-rgx=.*