OLD | NEW |
---|---|
1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | |
janssonWebRTC
2017/03/09 09:22:18
I assume you wrote 2015 since that was the origina
kjellander_webrtc
2017/03/09 09:36:09
Yes.
janssonWebRTC
2017/03/09 10:26:08
Acknowledged.
| |
2 # | |
3 # Use of this source code is governed by a BSD-style license | |
4 # that can be found in the LICENSE file in the root of the source | |
5 # tree. An additional intellectual property rights grant can be found | |
6 # in the file PATENTS. All contributing project authors may | |
7 # be found in the AUTHORS file in the root of the source tree. | |
8 | |
9 | |
janssonWebRTC
2017/03/09 09:22:18
Maybe add a comment pointing to the original file
kjellander_webrtc
2017/03/09 09:36:09
Done.
janssonWebRTC
2017/03/09 10:26:08
Acknowledged.
| |
1 [MESSAGES CONTROL] | 10 [MESSAGES CONTROL] |
2 | 11 |
3 # Disable the message, report, category or checker with the given id(s). | 12 # Disable the message, report, category or checker with the given id(s). |
4 # TODO(kjellander): Reduce this list to as small as possible. | 13 # TODO(kjellander): Reduce this list to as small as possible. |
5 disable=I0010,I0011,bad-continuation,broad-except,duplicate-code,eval-used,exec- used,fixme,invalid-name,missing-docstring,no-init,no-member,too-few-public-metho ds,too-many-ancestors,too-many-arguments,too-many-branches,too-many-function-arg s,too-many-instance-attributes,too-many-lines,too-many-locals,too-many-public-me thods,too-many-return-statements,too-many-statements | 14 disable= |
15 E0611, | |
16 I0010, | |
17 I0011, | |
18 W0232, | |
19 bad-continuation, | |
20 bad-inline-option, | |
21 broad-except, | |
22 duplicate-code, | |
23 eval-used, | |
24 exec-used, | |
25 fixme, | |
26 import-error, | |
27 locally-disabled, | |
28 missing-docstring, | |
29 no-init, | |
30 no-member, | |
31 too-few-public-methods, | |
32 too-many-ancestors, | |
33 too-many-arguments, | |
34 too-many-branches, | |
35 too-many-function-args, | |
36 too-many-instance-attributes, | |
37 too-many-lines, | |
38 too-many-locals, | |
39 too-many-public-methods, | |
40 too-many-return-statements, | |
41 too-many-statements, | |
42 unused-import, | |
6 | 43 |
7 | 44 |
8 [REPORTS] | 45 [REPORTS] |
9 | 46 |
10 # Don't write out full reports, just messages. | 47 # Don't write out full reports, just messages. |
11 reports=no | 48 reports=no |
12 | 49 |
13 | 50 |
51 [VARIABLES] | |
52 | |
53 # Tells whether we should check for unused import in __init__ files. | |
54 init-import=no | |
55 | |
56 # A regular expression matching the beginning of the name of dummy variables | |
57 # (i.e. not used). | |
58 dummy-variables-rgx=_|dummy | |
59 | |
60 | |
61 [TYPECHECK] | |
62 | |
63 # Tells whether missing members accessed in mixin class should be ignored. A | |
64 # mixin class is detected if its name ends with "mixin" (case insensitive). | |
65 ignore-mixin-members=yes | |
66 | |
67 # List of classes names for which member attributes should not be checked | |
68 # (useful for classes with attributes dynamically set). | |
69 ignored-classes=hashlib,numpy | |
70 | |
71 | |
72 [MISCELLANEOUS] | |
73 | |
74 # List of note tags to take in consideration, separated by a comma. | |
75 notes=FIXME,XXX,TODO | |
76 | |
77 | |
78 [SIMILARITIES] | |
79 | |
80 # Minimum lines number of a similarity. | |
81 min-similarity-lines=4 | |
82 | |
83 # Ignore comments when computing similarities. | |
84 ignore-comments=yes | |
85 | |
86 # Ignore docstrings when computing similarities. | |
87 ignore-docstrings=yes | |
88 | |
89 | |
14 [FORMAT] | 90 [FORMAT] |
15 | 91 |
92 # Maximum number of characters on a single line. | |
93 max-line-length=80 | |
94 | |
95 # Maximum number of lines in a module | |
96 max-module-lines=1000 | |
97 | |
16 # We use two spaces for indents, instead of the usual four spaces or tab. | 98 # We use two spaces for indents, instead of the usual four spaces or tab. |
17 indent-string=' ' | 99 indent-string=' ' |
100 | |
101 | |
102 [BASIC] | |
103 | |
104 # Required attributes for module, separated by a comma | |
105 required-attributes= | |
janssonWebRTC
2017/03/09 09:22:18
This is intentionally empty?
kjellander_webrtc
2017/03/09 09:36:09
Yeah, it's a copy-paste. Let's remove it instead (
janssonWebRTC
2017/03/09 10:26:08
Acknowledged.
| |
106 | |
107 # List of builtins function names that should not be used, separated by a comma | |
108 bad-functions=map,filter,apply,input | |
109 | |
110 # Regular expression which should only match correct module names | |
111 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ | |
112 | |
113 # Regular expression which should only match correct module level names | |
114 # (CAPS_WITH_UNDER) | |
115 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ | |
116 | |
117 # Regular expression which should only match correct class names | |
118 # (CapWords) | |
119 class-rgx=[A-Z_][a-zA-Z0-9]+$ | |
120 | |
121 # Regular expression which should only match correct function names | |
122 # The Chromium standard is different than PEP-8, so we need to redefine this to | |
123 # only allow: | |
124 # - CapWords | |
125 # - main: Standard for main function. | |
126 function-rgx=([A-Z_][a-zA-Z0-9]{2,30}|main)$ | |
127 | |
128 # Regular expression which should only match correct method names | |
129 # The Chromium standard is different than PEP-8, so we need to redefine this to | |
130 # only allow: | |
131 # - CapWords, starting with a capital letter. No underscores in function | |
132 # names. Can also have a "_" prefix (private method) or a "test" prefix | |
133 # (unit test). | |
134 # - Methods that look like __xyz__, which are used to do things like | |
135 # __init__, __del__, etc. | |
136 # - setUp, tearDown: For unit tests. | |
137 method-rgx=((_|test)?[A-Z][a-zA-Z0-9]{2,60}|__[a-z]+__|setUp|tearDown)$ | |
138 | |
139 # Regular expression which should only match correct instance attribute names | |
140 attr-rgx=[a-z_][a-z0-9_]{2,30}$ | |
141 | |
142 # Regular expression which should only match correct argument names | |
143 argument-rgx=[a-z_][a-z0-9_]{2,30}$ | |
144 | |
145 # Regular expression which should only match correct variable names | |
146 variable-rgx=[a-z_][a-z0-9_]{0,30}$ | |
147 | |
148 # Regular expression which should only match correct list comprehension / | |
149 # generator expression variable names | |
150 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ | |
151 | |
152 # Good variable names which should always be accepted, separated by a comma | |
153 good-names=i,j,k,ex,Run,_ | |
154 | |
155 # Bad variable names which should always be refused, separated by a comma | |
156 bad-names=foo,bar,baz,toto,tutu,tata | |
157 | |
158 # Regular expression which should only match functions or classes name which do | |
159 # not require a docstring | |
160 no-docstring-rgx=__.*__ | |
161 | |
162 | |
163 [DESIGN] | |
164 | |
165 # Maximum number of arguments for function / method | |
166 max-args=5 | |
167 | |
168 # Argument names that match this expression will be ignored. Default to name | |
169 # with leading underscore | |
170 ignored-argument-names=_.* | |
171 | |
172 # Maximum number of locals for function / method body | |
173 max-locals=15 | |
174 | |
175 # Maximum number of return / yield for function / method body | |
176 max-returns=6 | |
177 | |
178 # Maximum number of branch for function / method body | |
179 max-branchs=12 | |
180 | |
181 # Maximum number of statements in function / method body | |
182 max-statements=50 | |
183 | |
184 # Maximum number of parents for a class (see R0901). | |
185 max-parents=7 | |
186 | |
187 # Maximum number of attributes for a class (see R0902). | |
188 max-attributes=7 | |
189 | |
190 # Minimum number of public methods for a class (see R0903). | |
191 min-public-methods=2 | |
192 | |
193 # Maximum number of public methods for a class (see R0904). | |
194 max-public-methods=20 | |
195 | |
196 | |
197 [CLASSES] | |
198 | |
199 # List of interface methods to ignore, separated by a comma. This is used for | |
200 # instance to not check methods defines in Zope's Interface base class. | |
201 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions ,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,ge tTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,a daptWith,is_implemented_by | |
janssonWebRTC
2017/03/09 09:22:18
Add them on separate lines as you did for disable=
kjellander_webrtc
2017/03/09 09:36:09
I don't have an example of it and I'd rather not s
janssonWebRTC
2017/03/09 10:26:08
Acknowledged.
| |
202 | |
203 # List of method names used to declare (i.e. assign) instance attributes. | |
204 defining-attr-methods=__init__,__new__,setUp | |
205 | |
206 # List of valid names for the first argument in a class method. | |
207 valid-classmethod-first-arg=cls | |
208 | |
209 | |
210 [IMPORTS] | |
211 | |
212 # Deprecated modules which should not be used, separated by a comma | |
213 deprecated-modules=regsub,TERMIOS,Bastion,rexec | |
214 | |
215 # Create a graph of every (i.e. internal and external) dependencies in the | |
216 # given file (report RP0402 must not be disabled) | |
217 import-graph= | |
janssonWebRTC
2017/03/09 09:22:18
This is intentionally empty?
kjellander_webrtc
2017/03/09 09:36:09
Yes, it's the default. I removed it instead.
janssonWebRTC
2017/03/09 10:26:08
Acknowledged.
| |
218 | |
219 # Create a graph of external dependencies in the given file (report RP0402 must | |
220 # not be disabled) | |
221 ext-import-graph= | |
janssonWebRTC
2017/03/09 09:22:18
This is intentionally empty?
kjellander_webrtc
2017/03/09 09:36:09
Yes, it's the default. I removed it instead.
janssonWebRTC
2017/03/09 10:26:08
Acknowledged.
| |
222 | |
223 # Create a graph of internal dependencies in the given file (report RP0402 must | |
224 # not be disabled) | |
225 int-import-graph= | |
janssonWebRTC
2017/03/09 09:22:18
This is intentionally empty?
kjellander_webrtc
2017/03/09 09:36:09
Yes, it's the default. I removed it instead.
janssonWebRTC
2017/03/09 10:26:08
Acknowledged.
| |
226 | |
227 | |
228 [EXCEPTIONS] | |
229 | |
230 # Exceptions that will emit a warning when being caught. Defaults to | |
231 # "Exception" | |
232 overgeneral-exceptions=Exception | |
OLD | NEW |