-
Notifications
You must be signed in to change notification settings - Fork 16
/
pylintrc
116 lines (77 loc) · 2.92 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
# Copyright 2018-present Samsung Electronics Co., Ltd. and other contributors
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an 'AS IS' BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[MESSAGES CONTROL]
disable=missing-docstring, anomalous-backslash-in-string, attribute-defined-outside-init, import-error, broad-except, redefined-variable-type, superfluous-parens, bad-continuation, eval-used, fixme, too-many-arguments, too-many-branches
[REPORTS]
output-format=text
files-output=no
reports=no
[SIMILARITIES]
# Minimum lines number of a similarity.
min-similarity-lines=4
# Ignore comments when computing similarities.
ignore-comments=yes
# Ignore docstrings when computing similarities.
ignore-docstrings=yes
# Ignore imports when computing similarities.
ignore-imports=no
[BASIC]
include-naming-hint=yes
# Regular expression matching correct variable names.
variable-rgx=[a-z_][a-z0-9_]*$
# Naming hint for correct variable names.
variable-name-hint=[a-z_][a-z0-9_]*$
# Regular expression matching correct constant names.
const-rgx=[A-Z_][A-Z0-9_]*$
# Naming hint for correct constant names.
const-name-hint=[A-Z_][A-Z0-9_]*$
# Naming style for function names.
function-naming-style=snake_case
# Naming style for argument names.
argument-naming-style=snake_case
# Regular expression matching correct attribute names.
attr-rgx=[a-z_][a-z0-9_]*$
# Naming hint for correct attribute names.
attr-name-hint=[a-z_][a-z0-9_]*$
# Naming style for class names.
class-naming-style=PascalCase
# Regular expression matching correct class attribute names.
class-attribute-rgx=[a-zA-Z_][a-zA-Z0-9_]*$
# Naming hint for correct class attribute names.
class-attribute-name-hint=[a-zA-Z_][a-zA-Z0-9_]*$
# Naming style for module names.
module-naming-style=snake_case
# Naming style for method names.
method-naming-style=snake_case
[DESIGN]
max-locals=20
max-attributes=20
min-public-methods=0
[FORMAT]
# Maximum number of characters on a single line.
max-line-length=100
# Allow the body of an if to be on the same line as the test if there is no
# else.
single-line-if-stmt=no
# String used as indentation unit.
indent-string=' '
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
expected-line-ending-format=LF
[MISCELLANEOUS]
# List of note tags to take in consideration, separated by a comma.
notes=FIXME, TODO
[TYPECHECK]
# List of classes names for which member attributes should not be checked
# (useful for classes with attributes dynamically set).
ignored-classes=twisted.internet.reactor