-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pylintrc
80 lines (57 loc) · 1.59 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
[MASTER]
# List of files/directories to blacklist (not paths)
ignore=
[MESSAGES CONTROL]
# Definitions of codes disabled
# For a list of error codes, see:
# http://pylint-messages.wikidot.com/all-codes
disable=
attribute-defined-outside-init,
cyclic-import,
duplicate-code,
fixme,
import-error,
inconsistent-return-statements,
keyword-arg-before-vararg,
no-name-in-module,
protected-access,
too-few-public-methods,
unused-argument,
undefined-all-variable,
[BASIC]
# Module name regex
module-rgx=[a-z_][a-z0-9_]{2,30}$
# Constant name regex
const-rgx=[a-zA-Z_][a-zA-Z0-9_]{2,30}$
# Class name regex
class-rgx=[A-Z_][a-zA-Z_]+$
# Function name regex
function-rgx=[a-z_][a-z0-9_]{2,30}$
# Method name regex
method-rgx=[a-z_][a-z0-9_]{2,30}$
# Attribute name regex
attr-rgx=[a-z_][a-z0-9_]{2,30}$
# Argument name regex
argument-rgx=[a-z_][a-z0-9_]{2,30}$
# Variable name regex
variable-rgx=[a-z_][a-z0-9_]{2,30}$
# Class attribute name regex
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
# In-line variable name regex
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
# Variable names that are always ok
good-names=x,y
[DESIGN]
# The maximum number of arguments allowed
max-args=9
# The maximum number of return statements
max-returns=8
[REPORTS]
# The message output template
msg-template={msg_id}:{line:3d},{column:2d}: {msg} ({symbol})
[SIMILARITIES]
ignore-imports=yes
ignore-comments=yes
ignore-docstrings=yes
[VARIABLES]
dummy-variables-rgx=args|attribute|choice_index|command|game_event|map_name|new_value|old_value|return_value|team_only|value|x