Merge pull request #2153 from deltaskelta/gqlint-fix

changed gqlint to lint the file on disk
This commit is contained in:
w0rp authored and w0rp committed 2018-12-18 10:20:44 +00:00
1 parent 6ef54842de
commit 0495a8be20
2 files changed
+18 -1

No files matched your search

+7 -1
View File
@@ -1,9 +1,15 @@
" 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', {
\ 'name': 'gqlint',
\ 'executable': 'gqlint',
\ 'command': 'gqlint --reporter=simple %t',
\ 'command_callback': 'ale_linters#graphql#gqlint#GetCommand',
\ 'callback': 'ale#handlers#unix#HandleAsWarning',
\})