[code-quality] Adding python function arguments related customized rule in pylint

Ahirnish Pareek ahirnish at arista.com
Mon Jun 29 11:32:56 CEST 2015


Hi all,

I want to add a customized check to my pylintrc file to check and report
cases whenever I define a function in a python file like this:

def foo( var1, name1=value, *args ):

The problem that I want to deal with is that we should not have keyword
arguments( *name1* ) before positional arguments( **args* ). Although the
function can still be called by passing *name1* as positional argument but
there would be no way to not specify *name1* but specify **args*.

How can I add this check to pylintrc file?

Thanks in advance!
-- 
Regards,
Ahirnish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/code-quality/attachments/20150629/7c857695/attachment.html>


More information about the code-quality mailing list