dsludwig / pylint-web2py

A web2py pylint plugin
GNU General Public License v2.0
1 stars 6 forks source link

pylint-web2py Use #1

Open kmouts opened 10 years ago

kmouts commented 10 years ago

I would like to use pylint-web2py to minimize the pylint warnings etc when editing web2py applications. How it should be used? I couldn’t find any relative info.

ryanswrt commented 10 years ago

I would think pylint --load-plugins pylint_web2py mycode.py should work, but it still gives extraneous errors.

flagist0 commented 10 years ago

I added pylint_web2py to list of plugins in pylint config, then run pylint with controller file from web2py, pylint still complained about web2py undefined variables. So I added debug prints to both checker's functions (register and web2py_transform), but when pylint is run only register's prints are printed. So it looks like web2py_transorm is not called by pylint for some reason.