Ask Your Question

vim puppet lint remove warnings from syntatic

asked 2016-05-17 02:58:42 -0600

prototyp gravatar image

Does anybody knows how to remove warnings like:

[80chars] line has more than 80 characters

Syntastic has function to suppress certain warnings via a regex. Does anybody know how the regex for that warning would look like?

Syntastic example:

let g:syntastic_quiet_messages = {
    \ "!level":  "errors",
    \ "type":    "style",
    \ "regex":   '\m\[C03\d\d\]',
    \ "file:p":  ['\m^/usr/include/', '\m\c\.h$'] }
edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2016-05-20 06:33:47 -0600

prototyp gravatar image
let g:syntastic_quiet_messages = {
      \ "!level":  "errors",
      \ "type":    "style",
      \ "regex":   '[80chars] line has more than 80 characters',
      \ "file:p":  ['\m\c\.p$'] }
edit flag offensive delete link more

answered 2016-05-17 16:50:26 -0600

mike.r gravatar image

not sure if you can preconfigure puppet-lint but I usually run it like this

To disable Documenation warning (this warns to include comment above "class" declaration)
puppet-lint --no-documentation-check manifest.pp

To suppress 80 char line limit check
puppet-lint --no-80chars-check manifest.pp
edit flag offensive delete link more


puppet-lint is used from syntastic so the only possible way would be with that regex I could not find....

prototyp gravatar imageprototyp ( 2016-05-18 02:09:42 -0600 )edit

answered 2017-03-23 08:02:38 -0600

ingsme gravatar image

This was annoying me as well. After a little searhing in the syntastic addon I found the answer. It is easy to configure exactly what you want to lint.

From :help syntastic-config-makeprg you can see that syntastic provides a way of adding options to most commands.

in your vimrc:

let g:syntastic_puppet_puppetlint_args = '--no-80-chars-check --no-documentation-check'
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-05-17 02:58:42 -0600

Seen: 489 times

Last updated: Mar 23 '17