Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2020-01-10 19:43:40 +0300
committerJaime van Kessel <nallath@gmail.com>2020-01-10 19:43:40 +0300
commitbbee2e0a14fbf66dbbd0f3a1b5ffdd3a5badb245 (patch)
treea606e211974776576bdb507245470034de851132 /.pylintrc
parent6e133448099a33a52f6f9afdf49f50a57ec0686b (diff)
Fix regex for private & long functions
Diffstat (limited to '.pylintrc')
-rw-r--r--.pylintrc10
1 files changed, 9 insertions, 1 deletions
diff --git a/.pylintrc b/.pylintrc
index 8a4200491a..07a53c47c7 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -62,7 +62,15 @@ good-names=os
# allow modules and functions to use PascalCase
module-rgx=[a-zA-Z0-9_]+$
function-rgx=
-method-rgx=([a-z_][a-z0-9_]{2,30}|([a-z_][A-Za-z0-9]{2,30}))$
+## Allowed methods:
+# getSomething
+# _getSomething
+# __getSomething
+# __new__
+## Disallowed:
+# _GET
+# GetSomething
+method-rgx=(_{,2}[a-z][A-Za-z0-9]*_{,2})$
[DESIGN]
# Maximum number of arguments for function / method.