On 17.05.20 20:33, Philipp Kraus wrote:
Hello,

I try to configure pylint so that the naming conventions of Java are avoided 
e.g. method names with get, set, test or print within the name.
I have set the entry for testing:

method-rgx=^((?!get).)*$

But my function

def get_print():
      print(„test“)

Is not found. So my question is, what is the correct expression to disallow any 
method which contains get, set, test or print and match the default snake_case 
definition?

Without even looking at the actual regular expression: `method-rgx` is for methods, not for functions. So that never will find a function. For that you'll need `function-rgx`. But what you really want is a method as example. I guess. :-)

Ciao,
        Marc 'BlackJack' Rintsch
--
A train station is where trains stop.
A bus station is where busses stop.
A Work Station is where …
_______________________________________________
code-quality mailing list -- code-quality@python.org
To unsubscribe send an email to code-quality-le...@python.org
https://mail.python.org/mailman3/lists/code-quality.python.org/
Member address: arch...@mail-archive.com

Reply via email to