forked from secure-device-onboard/client-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pylintrc
65 lines (42 loc) · 1.04 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
[MASTER]
jobs=1
[MESSAGES CONTROL]
# Disable errors related to import and imported members
disable=R0201,C0413,E0401,E1101,R0903
[REPORTS]
output-format=text
#output-format=parseable
reports=yes
evaluation=10.0 - ((float(20 * error + 10 * warning + refactor + convention) / statement) * 10)
#comment=no
[FORMAT]
max-line-length=80
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
max-module-lines=1000
indent-string=' '
indent-after-paren=4
[MISCELLANEOUS]
notes=FIXME,XXX,TODO
[BASIC]
good-names=i,n,j,k,ex,Run,f,_
bad-names=foo,bar,baz,toto,tutu,tata,lala
const-rgx=(([a-zA-Z_][a-zA-Z1-9_]*)|(__.*__))$
# Allow 1 ch long varibles
attr-rgx=[a-z_][a-z0-9_]{0,30}$
variable-rgx=[a-z_][a-z0-9_]{0,30}$
# Allow 2 ch long arguments
argument-rgx=[a-z_][a-z0-9_]{1,30}$
[SIMILARITIES]
min-similarity-lines=4
ignore-comments=yes
ignore-docstrings=no
ignore-imports=no
[VARIABLES]
init-import=no
dummy-variables-rgx=_$|dummy
[DESIGN]
max-args=8
[CLASSES]
defining-attr-methods=__init__,__new__,setUp
[EXCEPTIONS]
overgeneral-exceptions=Exception