[Python-projects] pylint: problem with custom checkers
Duncan Findlay
duncf at debian.org
Sat Feb 7 00:00:23 CET 2009
On Feb 6, 2009, at 8:17 AM, Saegebrecht Martin wrote:
> Hello!
> I am using pylint and I have just written my own custom checker.
>
> Now, What am I going to do to run my checker and include it in the
> report?
>
> Is it enough to put it in the directory "checker" where pylint is
> installed. I did that and when I run pylint on a pythonfile which
> should respond to my checker I still dont see anything in the output.
>
> Have I forgotten something???
>
Do you have a function like this in your module?
def register(linter):
"""required method to auto register this checker """
linter.register_checker(YourChecker(linter))
You need this to auto-register additional checkers (and put the file
in the checkers/ directory).
Duncan
More information about the Python-Projects
mailing list