2018-03-31 10:55:20 -04:00
|
|
|
" Author: Michiel Westerbeek <happylinks@gmail.com>
|
|
|
|
" Description: Linter for GraphQL Schemas
|
|
|
|
|
2019-01-08 05:11:54 -05:00
|
|
|
function! ale_linters#graphql#gqlint#GetCommand(buffer) abort
|
|
|
|
return ale#path#BufferCdString(a:buffer)
|
|
|
|
\ . 'gqlint'
|
|
|
|
\ . ' --reporter=simple %t'
|
|
|
|
endfunction
|
|
|
|
|
2018-03-31 10:55:20 -04:00
|
|
|
call ale#linter#Define('graphql', {
|
|
|
|
\ 'name': 'gqlint',
|
|
|
|
\ 'executable': 'gqlint',
|
2019-03-08 06:04:56 -05:00
|
|
|
\ 'command': function('ale_linters#graphql#gqlint#GetCommand'),
|
2018-03-31 10:55:20 -04:00
|
|
|
\ 'callback': 'ale#handlers#unix#HandleAsWarning',
|
|
|
|
\})
|