forked from xneby/sioworkers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pylintrc
139 lines (104 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[MASTER]
profile=no
persistent=no
load-plugins=
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=migrations
[MESSAGES CONTROL]
# F0401 = Unable to import module
# E1002 = Use of super on an old style class
# E1101 = "has no member"
# E1120 = No value for argument '%s' in constructor call
# E1121 = Too many positional arguments for constructor call
# E1123 = Unexpected keyword argument '%s' in constructor call
# W0142 = *args and **kwargs support
# W0212 = Accessing protected attribute of client class
# W0223 = Method is abstract in class but is not overridden
# W0232 = Class has no __init__ method
# W0613 = Unused argument
# W0622 = Redefining built-in
# W0614 = Unused import from wildcard
# R0201 = Method could be a function
# R0901 = Too many ancestors
# R0902 = Too many instance attributes
# R0903 = Too few public methods
# R0904 = Too many public methods
# R0911 = Too many return statements
# R0912 = Too many branches
# R0913 = Too many arguments
# R0915 = Too many statements
# R0921 = Abstract class not referenced
# R0922 = Abstract class is only referenced %s times
# C0103 = Invalid name
# C0111 = Missing docstring
# C0302 = Too many lines in module
# C0330 = Wrong continued indentation
# I0011 = Local disables
# I0013 = Ignoring entire file
# similarities = similar code fragments
disable=F0401, E1002,E1101,E1120,E1121,E1123, W0142,W0212,W0232,W0223,W0613,W0622,W0614, R0201,R0901,R0902,R0903,R0904,R0911,R0912,R0913,R0915,R0921,R0922, C0103,C0111,C0302,C0330, I0011,I0013, similarities
[REPORTS]
output-format=colorized
files-output=no
reports=no
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
msg-template={path} {line} {msg_id} {msg}
[VARIABLES]
init-import=no
dummy-variables-rgx=_|dummy|created
additional-builtins=
[TYPECHECK]
ignore-mixin-members=yes
ignored-classes=SQLObject,WSGIRequest
zope=no
generated-members=REQUEST,acl_users,aq_parent,objects,_meta,id,DoesNotExist
[SIMILARITIES]
min-similarity-lines=8
ignore-comments=yes
ignore-docstrings=yes
ignore-imports=no
[MISCELLANEOUS]
notes=FIXME,TODO
[FORMAT]
max-line-length=79
max-module-lines=1000
indent-string=' '
[BASIC]
required-attributes=
bad-functions=apply,input
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
class-rgx=[A-Z_][a-zA-Z0-9]+$
function-rgx=[a-z_][a-z0-9_]{1,40}$
method-rgx=[a-z_][a-z0-9_]{1,40}$
attr-rgx=[a-z_][a-z0-9_]{1,40}$
argument-rgx=[a-z_][a-z0-9_]{1,40}$
variable-rgx=[a-z_][a-z0-9_]{1,40}$
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
good-names=i,j,k,ex,Run,_,qs
bad-names=baz,toto,tutu,tata
no-docstring-rgx=__.*__
[DESIGN]
max-args=8
ignored-argument-names=_.*
max-locals=30
max-returns=6
max-branchs=12
max-statements=60
max-parents=7
max-attributes=7
min-public-methods=2
max-public-methods=20
[IMPORTS]
deprecated-modules=regsub,TERMIOS,Bastion,rexec
import-graph=
ext-import-graph=
int-import-graph=
[CLASSES]
ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
defining-attr-methods=__init__,__new__,setUp
valid-classmethod-first-arg=cls
valid-metaclass-classmethod-first-arg=mcs
[EXCEPTIONS]
overgeneral-exceptions=Exception