[Python-projects] pylint: problem with custom checkers

Huurne, Maarten ter maarten.ter.huurne at philips.com
Fri Feb 6 17:26:44 CET 2009


> 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?

You have to specify it using the "load-plugins" option, either on the command line or in pylintrc. For example, if your checker is in "my_checker.py", add this to pylintrc:
load-plugins=my_checker

> 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.

I put my custom checker somewhere in my home directory and changed the PYTHONPATH environment variable to include that directory. This is easier for me to administrate because the custom checker is under version control and the installed pylint code is in a directory not writable from a normal user account.

Bye,
                Maarten


The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.


More information about the Python-Projects mailing list