зеркало из https://github.com/microsoft/azure-cli.git
73 строки
2.3 KiB
INI
73 строки
2.3 KiB
INI
[MASTER]
|
|
ignore=tests,generated,vendored_sdks,privates
|
|
ignore-patterns=test.*,azure_devops_build.*
|
|
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.
|
|
disable=
|
|
arguments-out-of-order,
|
|
bad-option-value,
|
|
consider-using-generator,
|
|
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-function-args,
|
|
too-many-lines,
|
|
unnecessary-comprehension,
|
|
use-a-generator,
|
|
using-constant-test,
|
|
wrong-import-order,
|
|
|
|
[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
|
|
|
|
[SIMILARITIES]
|
|
min-similarity-lines=10
|
|
|
|
[BASIC]
|
|
# Naming hints based on PEP 8 (https://www.python.org/dev/peps/pep-0008/#naming-conventions).
|
|
# Consider these guidelines and not hard rules. Read PEP 8 for more details.
|
|
|
|
# The invalid-name checker must be **enabled** for these hints to be used.
|
|
include-naming-hint=yes
|
|
|
|
module-name-hint=lowercase (keep short; underscores are discouraged)
|
|
const-name-hint=UPPER_CASE_WITH_UNDERSCORES
|
|
class-name-hint=CapitalizedWords
|
|
class-attribute-name-hint=lower_case_with_underscores
|
|
attr-name-hint=lower_case_with_underscores
|
|
method-name-hint=lower_case_with_underscores
|
|
function-name-hint=lower_case_with_underscores
|
|
argument-name-hint=lower_case_with_underscores
|
|
variable-name-hint=lower_case_with_underscores
|
|
inlinevar-name-hint=lower_case_with_underscores (short is OK)
|