forked from Azure/azure-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pylintrc
73 lines (68 loc) · 2.31 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
[MASTER]
ignore=tests,generated,vendored_sdks,privates
ignore-patterns=test.*,azure_devops_build.*
ignore-paths=.*/command_modules/.*/aaz
reports=no
[MESSAGES CONTROL]
# For all codes, run 'pylint --list-msgs' or go to 'https://pylint.readthedocs.io/en/latest/reference_guide/features.html'
# cyclic-import: because of https://github.com/PyCQA/pylint/issues/850
# import-outside-toplevel: Lazy import to improve performance
# locally-disabled: Warning locally suppressed using disable-msg
# too-many-arguments: Due to the nature of the CLI many commands have large arguments set which reflect in large arguments set in corresponding methods.
# consider-using-f-string: str.format is still a Python standard
# unspecified-encoding: Allow using the system encoding, instead of forcing utf-8 to avoid opening errors
disable=
arguments-out-of-order,
bad-option-value,
consider-using-with,
cyclic-import,
duplicate-code,
fixme,
import-outside-toplevel,
inconsistent-return-statements,
invalid-name,
invalid-str-returned,
locally-disabled,
missing-docstring,
missing-kwoa,
no-member,
no-value-for-parameter,
raise-missing-from,
subprocess-run-check,
super-with-arguments,
too-many-arguments,
too-many-positional-arguments,
too-many-function-args,
too-many-lines,
using-constant-test,
wrong-import-order,
consider-using-f-string,
unspecified-encoding,
use-maxsplit-arg,
arguments-renamed,
consider-using-in,
use-dict-literal,
consider-using-dict-items,
consider-using-enumerate,
redundant-u-string-prefix,
# These rules were added in Pylint >= 2.12, disable them to avoid making retroactive change
missing-timeout,
superfluous-parens,
implicit-str-concat,
unnecessary-dunder-call,
# These rules were added in Pylint >= 3.2
possibly-used-before-assignment,
[FORMAT]
max-line-length=120
[VARIABLES]
# Tells whether we should check for unused import in __init__ files.
init-import=yes
[DESIGN]
# Maximum number of locals for function / method body
max-locals=25
# Maximum number of branch for function / method body
max-branches=20
# Temporally disable this check as inline disable is not working, see https://github.com/pylint-dev/pylint/issues/8806
max-statements=500
[SIMILARITIES]
min-similarity-lines=10