aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/share/nvim/site/autoload/neomake/makers/ft/go.vim
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-08-10 19:46:27 +0300
committerYaroslav <contact@yaroslavps.com>2020-08-10 19:46:27 +0300
commitf030afd547a56ce3d6156a0a92dddaae275ee1d4 (patch)
tree023a5751169cc6ffdec1af998d703b5b8bcdae9f /dotfiles/.local/share/nvim/site/autoload/neomake/makers/ft/go.vim
parent812bcaaf2622dc27310e8579c181394cbc68f7a2 (diff)
downloadvimrice-f030afd547a56ce3d6156a0a92dddaae275ee1d4.tar.gz
vimrice-f030afd547a56ce3d6156a0a92dddaae275ee1d4.zip
simplify vim rice: use vimplug for managing plugins
Diffstat (limited to 'dotfiles/.local/share/nvim/site/autoload/neomake/makers/ft/go.vim')
-rw-r--r--dotfiles/.local/share/nvim/site/autoload/neomake/makers/ft/go.vim84
1 files changed, 0 insertions, 84 deletions
diff --git a/dotfiles/.local/share/nvim/site/autoload/neomake/makers/ft/go.vim b/dotfiles/.local/share/nvim/site/autoload/neomake/makers/ft/go.vim
deleted file mode 100644
index ac53730..0000000
--- a/dotfiles/.local/share/nvim/site/autoload/neomake/makers/ft/go.vim
+++ /dev/null
@@ -1,84 +0,0 @@
-" vim: ts=4 sw=4 et
-
-function! neomake#makers#ft#go#EnabledMakers() abort
- let makers = ['go']
- if executable('golangci-lint')
- call add(makers, 'golangci_lint')
- elseif executable('gometalinter')
- call add(makers, 'gometalinter')
- else
- call extend(makers, ['golint', 'govet'])
- endif
- return makers
-endfunction
-
-function! neomake#makers#ft#go#go() abort
- return {
- \ 'args': [
- \ 'test', '-c',
- \ '-o', g:neomake#compat#dev_null,
- \ ],
- \ 'append_file': 0,
- \ 'cwd': '%:h',
- \ 'serialize': 1,
- \ 'serialize_abort_on_error': 1,
- \ 'errorformat':
- \ '%W%f:%l: warning: %m,' .
- \ '%E%f:%l:%c:%m,' .
- \ '%E%f:%l:%m,' .
- \ '%C%\s%\+%m,' .
- \ '%-G%.%#\\\[no test files],' .
- \ '%-G#%.%#',
- \ 'postprocess': function('neomake#postprocess#compress_whitespace'),
- \ 'version_arg': 'version',
- \ }
-endfunction
-
-function! neomake#makers#ft#go#golint() abort
- " golint's issues are informational, as they're stylistic (not bugs)
- return {
- \ 'errorformat':
- \ '%I%f:%l:%c: %m,' .
- \ '%-G%.%#'
- \ }
-endfunction
-
-function! neomake#makers#ft#go#govet() abort
- return {
- \ 'exe': 'go',
- \ 'args': ['vet'],
- \ 'append_file': 0,
- \ 'cwd': '%:h',
- \ 'errorformat':
- \ '%Evet: %.%\+: %f:%l:%c: %m,' .
- \ '%W%f:%l: %m,' .
- \ '%-G%.%#'
- \ }
-endfunction
-
-function! neomake#makers#ft#go#gometalinter() abort
- " Only run a subset of gometalinter for speed, users can override with:
- " let g:neomake_go_gometalinter_args = ['--disable-all', '--enable=X', ...]
- "
- " All linters are only warnings, the go compiler will report errors
- return {
- \ 'args': ['--disable-all', '--enable=errcheck', '--enable=megacheck', '--vendor'],
- \ 'append_file': 0,
- \ 'cwd': '%:h',
- \ 'errorformat':
- \ '%f:%l:%c:%t%*[^:]: %m,' .
- \ '%f:%l::%t%*[^:]: %m'
- \ }
-endfunction
-
-function! neomake#makers#ft#go#golangci_lint() abort
- return {
- \ 'exe': 'golangci-lint',
- \ 'args': ['run', '--out-format=line-number', '--print-issued-lines=false'],
- \ 'output_stream': 'stdout',
- \ 'append_file': 0,
- \ 'cwd': '%:h',
- \ 'errorformat':
- \ '%f:%l:%c: %m'
- \ }
-endfunction