summaryrefslogtreecommitdiff
path: root/pylintrc
diff options
context:
space:
mode:
authorNick Drozd <nicholasdrozd@gmail.com>2023-01-28 13:35:46 -0500
committerGitHub <noreply@github.com>2023-01-28 19:35:46 +0100
commitaf555eddf6ecdb1993345dce728a6b4c38dd4a02 (patch)
treea0c05f8d37da73c4021c82b7c9e8ce5df5aad855 /pylintrc
parentacb28d8fcefb06179d9e6528ba14dd099e12ecfa (diff)
downloadpylint-git-af555eddf6ecdb1993345dce728a6b4c38dd4a02.tar.gz
Tighten design constraints (#8115)
* Lower max locals * Lower max statements * Lower max try statements * Lower max branches * Lower max args * Cut design constraints with default values
Diffstat (limited to 'pylintrc')
-rw-r--r--pylintrc29
1 files changed, 5 insertions, 24 deletions
diff --git a/pylintrc b/pylintrc
index 26fde0c79..791b16447 100644
--- a/pylintrc
+++ b/pylintrc
@@ -411,44 +411,25 @@ max-spelling-suggestions=2
[DESIGN]
# Maximum number of arguments for function / method
-max-args=10
+max-args = 9
# Maximum number of locals for function / method body
-max-locals=25
+max-locals = 19
# Maximum number of return / yield for function / method body
max-returns=11
# Maximum number of branch for function / method body
-max-branches=27
+max-branches = 20
# Maximum number of statements in function / method body
-max-statements=100
-
-# Maximum number of parents for a class (see R0901).
-max-parents=7
-
-# List of qualified class names to ignore when counting class parents (see R0901).
-ignored-parents=
+max-statements = 50
# Maximum number of attributes for a class (see R0902).
max-attributes=11
-# Minimum number of public methods for a class (see R0903).
-min-public-methods=2
-
-# Maximum number of public methods for a class (see R0904).
-max-public-methods=25
-
-# Maximum number of boolean expressions in an if statement (see R0916).
-max-bool-expr=5
-
# Maximum number of statements in a try-block
-max-try-statements = 14
-
-# List of regular expressions of class ancestor names to
-# ignore when counting public methods (see R0903).
-exclude-too-few-public-methods=
+max-try-statements = 7
[CLASSES]