.vim/compiler/rubocop.vim

Tue, 02 May 2023 17:39:24 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 02 May 2023 17:39:24 -0500
changeset 1109
71d10acde172
parent 660
0c78da269df5
permissions
-rw-r--r--

switch perltidy and cpandoc to stubs

660
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 if exists("current_compiler")
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 finish
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3 endif
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 let current_compiler = "rubocop"
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 if exists(":CompilerSet") != 2
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 command -nargs=* CompilerSet setlocal <args>
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 endif
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 let s:savecpo = &cpo
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 set cpo&vim
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 CompilerSet makeprg=rubocop\ -f\ c\ %
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14 CompilerSet errorformat=%f:%l:%c:\ %t:\ %m,%E%f:%l:\ %m
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
16 let &cpo = s:savecpo
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
17 unlet s:savecpo

mercurial