forked from mozilla/kitsune
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pylintrc
executable file
·53 lines (44 loc) · 1.88 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
[MASTER]
ignore=migrations,settings_local.py,sphinxapi.py,sumo_locales.py
[REPORTS]
output_format=parseable
[MESSAGES CONTROL]
# :C0111: *Missing docstring*
# This is far too noisy, ideally we should ignore it in specific places
# but pylint isn't very good at letting us specify certain rules for certain
# files
# :C0103: *Invalid name "%s" (should match %s)*
# This is rather annoying in some contexts.
# :W0403: *Relative import %r, should be %r*
# We don't know where zamboni is going to be running, so relative imports
# are necessary for now.
# :W0142: *Used * or ** magic*
# This isn't harry potter... there's no such thing as magic.
# :W0232: *Class has no __init__ method*
# :E1101: *%s %r has no %r member*
# This is too often wrong to be useful.
# :R0201: Method could be a function
# Useful, but there's a number of places where we use methods
# since we're extending Django classes that require specific
# methods.
# :W0402: String is actually still useful
# :W0141: *Used builtin function %r*
# Used when a black listed builtin function is used (see the bad-function
# option). Usual black listed functions are the ones like map, or filter,
# where Python offers now some cleaner alternative like list comprehension.
# :W0212: *Access to a protected member %s of a client class*
# Used when a protected member (i.e. class member with a name beginning
# with an underscore) is access outside the class or a descendant of the
# class where it's defined.
# :W0201: Attribute %r defined outside __init__
# :E1102: _lazy is in fact callable
# :R0801: empty files happen to be identical
# :R0904: Too many public methods in search tests
disable-msg=C0111,C0103,W0403,W0142,W0232,E1101,R0201,W0402,W0141,W0212,W0201,E1102,R0801,R0904,
[DESIGN]
max-args=6
max-public-methods=45
min-public-methods=0
[REPORTS]
output-format=parseable
include-ids=yes