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

2015-07-01 Thread Ahirnish Pareek
Hi all, I was wondering if there's a pattern to calculate Pylint's message-id numbers? I know that first alphabet indicates if its a warning, error, convention, refactor or fatal but how do we come up with 4-digit number after that? Like - E1605. E = Error but what is 1605? Thanks. On Wed, Jul

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

2015-07-01 Thread Claudiu Popa
On Wed, Jul 1, 2015 at 2:32 PM, Ahirnish Pareek wrote: > Thanks Claudiu. > > I was looking for this only. > > Yes, I meant type(function) from Python. My organization doesnt have > asteroid in its python's site-packages. We are still importing from > logilab.astng module. Thanks for the help! >

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

2015-07-01 Thread Ahirnish Pareek
Thanks Claudiu. I was looking for this only. Yes, I meant type(function) from Python. My organization doesnt have asteroid in its python's site-packages. We are still importing from logilab.astng module. Thanks for the help! On Wed, Jul 1, 2015 at 3:31 PM, Claudiu Popa wrote: > Hi, > > On Wed

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

2015-07-01 Thread Claudiu Popa
Hi, On Wed, Jul 1, 2015 at 12:40 PM, Ahirnish Pareek wrote: > Hi all, > > I was going through the checkers/typecheck.py for reference but could not > understand it concretely. > > I am basically unable to find how to retrieve arguments from Astng Function > node. > > I am using visit_function() i

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

2015-07-01 Thread Ahirnish Pareek
Hi all, I was going through the *checkers/typecheck.py* for reference but could not understand it concretely. I am basically unable to find how to retrieve arguments from Astng Function node. I am using visit_function() inside a checker class to visit all function nodes but not able to get list