Syntastic doesn't use pylintrc

1,322 views
Skip to first unread message

Tim Johnson

unread,
Mar 5, 2014, 5:33:33 PM3/5/14
to vim ML
Using vim 7.3 on OSX 10.7

I have installed the syntastic plugin.

For checking syntax for python files, I have the following
.pylintrc:
########################################################
[DESIGN]

max-branchs = 20

max-args = 14

max-attributes = 14

max-locals = 35

[MESSAGES CONTROL]
disable-msg=W0142,R0903
########################################################
*none* of these settings seem to be read, since I am still
getting messages about any of the settings
My vim configuration is :
:let g:syntastic_python_checker = 'pylint --rcfile=/home/tim/.pylintrc'

How else can I enable the pylintrc settings?

thanks
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

Tim Johnson

unread,
Mar 5, 2014, 7:49:58 PM3/5/14
to vim...@googlegroups.com
* Tim Johnson <t...@akwebsoft.com> [140305 13:42]:
> Using vim 7.3 on OSX 10.7
>
> I have installed the syntastic plugin.
>
> For checking syntax for python files, I have the following
> .pylintrc:
> ########################################################
> [DESIGN]
>
> max-branchs = 20
>
> max-args = 14
>
> max-attributes = 14
>
> max-locals = 35
>
> [MESSAGES CONTROL]
> disable-msg=W0142,R0903
> ########################################################
> *none* of these settings seem to be read, since I am still
> getting messages about any of the settings
> My vim configuration is :
> :let g:syntastic_python_checker = 'pylint --rcfile=/home/tim/.pylintrc'
>
> How else can I enable the pylintrc settings?
For some settings, the following is working:
:let g:syntastic_python_pylint_rcfile='/home/tim/.pylintrc'
*but* disabling W0124 does not get rid of the 'star-args' warning.

LCD 47

unread,
Mar 6, 2014, 4:51:35 AM3/6/14
to vim ML
On 5 March 2014, Tim Johnson <t...@akwebsoft.com> wrote:
> Using vim 7.3 on OSX 10.7
>
> I have installed the syntastic plugin.
>
> For checking syntax for python files, I have the following
> .pylintrc:
> ########################################################
> [DESIGN]
>
> max-branchs = 20
>
> max-args = 14
>
> max-attributes = 14
>
> max-locals = 35
>
> [MESSAGES CONTROL]
> disable-msg=W0142,R0903
> ########################################################
> *none* of these settings seem to be read, since I am still
> getting messages about any of the settings
> My vim configuration is :
> :let g:syntastic_python_checker = 'pylint --rcfile=/home/tim/.pylintrc'

FWIW, this has never worked. Here's a crazy idea: if everything
else fails, consider investing a few minutes in reading the manual.

> How else can I enable the pylintrc settings?

Assuming you're using the current master HEAD of syntastic from git:

let g:syntastic_python_pylint_args = '--rcfile=/home/tim/.pylintrc'

For older versions of syntastic:

let g:syntastic_python_pylint_post_args = '--rcfile=/home/tim/.pylintrc'

/lcd

Tim Johnson

unread,
Mar 6, 2014, 11:27:11 AM3/6/14
to vim...@googlegroups.com
* LCD 47 <lcd...@gmail.com> [140306 00:59]:
<..> On 5 March 2014, Tim Johnson <t...@akwebsoft.com> wrote:
> > :let g:syntastic_python_checker = 'pylint --rcfile=/home/tim/.pylintrc'
>
> FWIW, this has never worked. Here's a crazy idea: if everything
> else fails, consider investing a few minutes in reading the manual.
No man for pylint. Got a URL for me?

> > How else can I enable the pylintrc settings?
>
> Assuming you're using the current master HEAD of syntastic from git:
>
> let g:syntastic_python_pylint_args = '--rcfile=/home/tim/.pylintrc'
Dadgummit, I think that one works
(I had also tried
g:syntastic_python_pylint_rcfile='/home/tim/.pylintrc')

thank you sir!

Tim Johnson

unread,
Mar 6, 2014, 2:48:36 PM3/6/14
to vim...@googlegroups.com
* Tim Johnson <t...@akwebsoft.com> [140306 07:36]:
> * LCD 47 <lcd...@gmail.com> [140306 00:59]:
> <..> On 5 March 2014, Tim Johnson <t...@akwebsoft.com> wrote:
> > > :let g:syntastic_python_checker = 'pylint --rcfile=/home/tim/.pylintrc'
> >
> > FWIW, this has never worked. Here's a crazy idea: if everything
> > else fails, consider investing a few minutes in reading the manual.
> No man for pylint. Got a URL for me?
http://docs.pylint.org/

LCD 47

unread,
Mar 6, 2014, 3:04:29 PM3/6/14
to vim...@googlegroups.com
On 6 March 2014, Tim Johnson <t...@akwebsoft.com> wrote:
> * LCD 47 <lcd...@gmail.com> [140306 00:59]:
> <..> On 5 March 2014, Tim Johnson <t...@akwebsoft.com> wrote:
> > > :let g:syntastic_python_checker = 'pylint --rcfile=/home/tim/.pylintrc'
> >
> > FWIW, this has never worked. Here's a crazy idea: if everything
> > else fails, consider investing a few minutes in reading the manual.
> No man for pylint. Got a URL for me?
[...]

I was actuallt referring to syntastic's manual. You can read it
from Vim:

:help syntastic

/lcd
Reply all
Reply to author
Forward
0 new messages