-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpylintrc
52 lines (46 loc) · 1.94 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]
# Setup the python paths needed for our tests
init-hook='import sys, os; test_path = os.environ.get("TEST_PATH", os.environ["HOME"] + "/git/check_mk/tests"); sys.path.insert(0, test_path) ; import conftest'
load-plugins=testlib.pylint_cmk,testlib.pylint_checker_wrong_i18n
persistent=yes
# We only want to see errors for the moment. Disable this one day. But prepare to cleanup a lot of stuff.
errors-only=yes
[MESSAGES CONTROL]
# C0111 missing module docstring
# C0326 bad-whitespace
# unsubscriptable-object
# unsupported-membership-test
# unpacking-non-sequence
# Disable this because we often use multiple types for a single variable. Maybe we
# can change this in future to make such linter checks work, but for the moment these
# checks are useless with Check_MK.
# unpacking-non-sequence
# Not a problem for us
disable=C0111,bad-whitespace,unsubscriptable-object,unsupported-membership-test,unpacking-non-sequence,assignment-from-none
# W0612: Unused variable
# TODO: enable this and prepare code for it!
#enable=W0612
[TYPECHECK]
# rrdtool
# Can not check methods / attributes of the rrdtool C module. Skipping related errors
# like the following:
# [E1101(no-member), create_rrd] Module 'rrdtool' has no 'create' member
# ldap
# The Python ldap module gets a lot of constants from the C API which can not be found by pylint.
# This results in a lot of these errors: "Module 'ldap' has no 'OPT_REFERRALS' member".
ignored-modules = rrdtool,ldap
[REPORTS]
output-format=cmk_colorized
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
[FORMAT]
max-line-length=100
single-line-if-stmt=no
indent-string=' '
[VARIABLES]
# Ignore these unused variables (e.g. _no_item,_no_params)
dummy-variables-rgx=^_.*
# Needed by web code because of super globals. TODO Clean this up some day
additional-builtins=html,_,_u,current_language,HTML
[MISCELLANEOUS]
# List of note tags to take in consideration, separated by a comma.
notes=FIXME,TODO