apport/.pylintrc

74 lines
2.2 KiB
INI

[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code. (This is an alternative name to extension-pkg-allow-list
# for backward compatibility.)
extension-pkg-whitelist=apt_pkg # wokeignore:rule=whitelist
# List of plugins (as comma separated values of python module names) to load,
# usually to register additional checkers.
load-plugins=
pylint.extensions.check_elif,
pylint.extensions.code_style,
pylint.extensions.comparison_placement,
pylint.extensions.consider_refactoring_into_while_condition,
pylint.extensions.dict_init_mutate,
pylint.extensions.docparams,
pylint.extensions.dunder,
pylint.extensions.eq_without_hash,
pylint.extensions.no_self_use,
pylint.extensions.private_import,
pylint.extensions.set_membership,
pylint.extensions.typing,
# Pickle collected data for later comparisons.
persistent=no
[BASIC]
# Good variable names which should always be accepted, separated by a comma.
good-names=i,j,k,lp,ui,_
[MESSAGES CONTROL]
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once). You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable=bad-option-value,consider-using-assignment-expr,duplicate-code,fixme
[REPORTS]
# Tells whether to display a full report or only the messages
reports=no
# Activate the evaluation score.
score=no
[FORMAT]
# Maximum number of characters on a single line.
max-line-length=88
[DESIGN]
# Maximum number of arguments for function / method.
max-args=6
# Maximum number of attributes for a class (see R0902).
max-attributes=9
# Maximum number of public methods for a class (see R0904).
max-public-methods=25