summaryrefslogtreecommitdiff
path: root/ale_linters/puppet/puppetlint.vim
diff options
context:
space:
mode:
authorAlexander "Ace" Olofsson <ace@haxalot.com>2016-11-25 13:00:07 +0100
committerw0rp <w0rp@users.noreply.github.com>2016-11-25 12:00:07 +0000
commite03df80a09a3e70b43b9c6908f32b0a838764d03 (patch)
tree6b358381e584a35f4e77cd96632d7117f2853a9e /ale_linters/puppet/puppetlint.vim
parentda379899602cc9cd4dea5ae21c440dbbae057133 (diff)
downloadale-e03df80a09a3e70b43b9c6908f32b0a838764d03.zip
Add puppet linters (#183)
* Start adding Puppet linters * Use the correct output stream for puppet parser * Finish Puppet and puppet-lint linters * Add Puppet information to documentation
Diffstat (limited to 'ale_linters/puppet/puppetlint.vim')
-rw-r--r--ale_linters/puppet/puppetlint.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/ale_linters/puppet/puppetlint.vim b/ale_linters/puppet/puppetlint.vim
new file mode 100644
index 00000000..2d93e530
--- /dev/null
+++ b/ale_linters/puppet/puppetlint.vim
@@ -0,0 +1,8 @@
+" Author: Alexander Olofsson <alexander.olofsson@liu.se>
+
+call ale#linter#Define('puppet', {
+\ 'name': 'puppetlint',
+\ 'executable': 'puppet-lint',
+\ 'command': g:ale#util#stdin_wrapper . ' .pp puppet-lint --no-autoloader_layout-check --log-format "-:%{line}:%{column}: %{kind}: [%{check}] %{message}"',
+\ 'callback': 'ale#handlers#HandleGCCFormat',
+\})