mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-06-26 01:15:28 -06:00
Fix regex for private & long functions
This commit is contained in:
parent
6e13344809
commit
bbee2e0a14
1 changed files with 9 additions and 1 deletions
10
.pylintrc
10
.pylintrc
|
@ -62,7 +62,15 @@ good-names=os
|
||||||
# allow modules and functions to use PascalCase
|
# allow modules and functions to use PascalCase
|
||||||
module-rgx=[a-zA-Z0-9_]+$
|
module-rgx=[a-zA-Z0-9_]+$
|
||||||
function-rgx=
|
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]
|
[DESIGN]
|
||||||
# Maximum number of arguments for function / method.
|
# Maximum number of arguments for function / method.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue