ale/ale_linters/graphql/gqlint.vim

16 lines
477 B
VimL
Raw Normal View History

" Author: Michiel Westerbeek <happylinks@gmail.com>
" Description: Linter for GraphQL Schemas
function! ale_linters#graphql#gqlint#GetCommand(buffer) abort
return ale#path#BufferCdString(a:buffer)
\ . 'gqlint'
\ . ' --reporter=simple %t'
endfunction
call ale#linter#Define('graphql', {
2017-08-20 08:37:21 -04:00
\ 'name': 'gqlint',
\ 'executable': 'gqlint',
\ 'command': function('ale_linters#graphql#gqlint#GetCommand'),
2017-08-20 08:37:21 -04:00
\ 'callback': 'ale#handlers#unix#HandleAsWarning',
\})