[go: up one dir, main page]

blob: 41388f375b3a9bc75f1f30d0a16c0584e8b5c24d [file] [log] [blame]
Mike Frysinger598e8012022-09-07 12:38:341# Copyright 2018 The ChromiumOS Authors
Mike Frysinger20ff8042018-07-31 05:47:082# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Mike Frysinger7219a1f2025-01-25 01:52:435[MAIN]
Mike Frysinger41630d82019-07-30 05:25:496
7# Use multiple processes to speed up Pylint.
8jobs = 0
9
Mike Frysinger6cd3fcf2019-08-29 07:10:2810# List of plugins (as comma separated values of python modules names) to load,
11# usually to register additional checkers.
12load-plugins=
Mike Frysinger7219a1f2025-01-25 01:52:4313 pylint.extensions.bad_builtin,
Mike Frysinger6cd3fcf2019-08-29 07:10:2814 pylint.extensions.docstyle,
15
Mike Frysinger6cd3fcf2019-08-29 07:10:2816
Mike Frysinger20ff8042018-07-31 05:47:0817[MESSAGES CONTROL]
18
19# not-callable throws a lot of false positives with pylint-1.6.
20disable=
Joel Hockeyb9084f82021-09-09 04:35:2521 duplicate-code,
Mike Frysinger20ff8042018-07-31 05:47:0822 fixme,
23 invalid-name,
Mike Frysinger20ff8042018-07-31 05:47:0824 locally-disabled,
Mike Frysinger4eb9cfa2020-05-15 00:15:2625 no-else-break,
26 no-else-continue,
Mike Frysinger77557dd2019-09-16 23:19:0127 no-else-return,
Mike Frysinger20ff8042018-07-31 05:47:0828 not-callable,
Mike Frysinger20ff8042018-07-31 05:47:0829 too-few-public-methods,
30 too-many-arguments,
31 too-many-branches,
32 too-many-instance-attributes,
33 too-many-lines,
34 too-many-locals,
35 too-many-public-methods,
Mike Frysingere5bbf062019-09-29 18:28:2136 too-many-return-statements,
Mike Frysinger20ff8042018-07-31 05:47:0837 too-many-statements,
38
39
40[REPORTS]
41
42# Disable verbose reports.
43reports = no
44
Mike Frysinger6cd3fcf2019-08-29 07:10:2845# Activate the evaluation score.
46score = no
47
Mike Frysinger20ff8042018-07-31 05:47:0848
Mike Frysingerf65c4d22018-10-25 21:31:1949[FORMAT]
50
51# Maximum number of characters on a single line.
52max-line-length = 80
53
54
Mike Frysinger6cd3fcf2019-08-29 07:10:2855[BASIC]
56
57# List of builtins function names that should not be used, separated by a comma.
58# exit & quit are for the interactive interpreter shell only.
59# https://docs.python.org/3/library/constants.html#constants-added-by-the-site-module
60bad-functions=
61 apply,
62 exit,
63 filter,
Mike Frysinger6cd3fcf2019-08-29 07:10:2864 map,
65 quit,
Mike Frysinger6cd3fcf2019-08-29 07:10:2866 reduce,
67
68
Mike Frysinger20ff8042018-07-31 05:47:0869[SIMILARITIES]
70
71# Minimum lines number of a similarity.
72min-similarity-lines = 8
73
74
75[IMPORTS]
76
77# Deprecated modules which should not be used, separated by a comma.
78deprecated-modules = regsub,TERMIOS,Bastion,rexec,optparse
Mike Frysinger6cd3fcf2019-08-29 07:10:2879
80
81[LOGGING]
82
83# Apply logging string format checks to calls on these modules.
84logging-modules=
85 logging,