Syntastic: Add an option to specify .yamllint config file location

Created on 11 Mar 2016  路  2Comments  路  Source: vim-syntastic/syntastic

It would be great if there was a way to specify yamllint -c ${HOME}/.yamllint configuration file location. The way yamllint works is that it expects to find .yamllint file in current directory, otherwise it just uses default configuration, unless -c /path/to/yamllint is specified.

Most helpful comment

Try this:

let g:syntastic_yaml_yamllint_args = '-c ' . shellescape($HOME . '/.yamllint')

All 2 comments

Try this:

let g:syntastic_yaml_yamllint_args = '-c ' . shellescape($HOME . '/.yamllint')

@lcd047 awesome! Thanks.

Was this page helpful?
0 / 5 - 0 ratings