mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-05 11:48:52 +08:00
changed gqlint to lint the file on disk
- added a cd into the direcotry containing the file in the buffer in order to properly check for a config file - added command_callback tests for graphql
This commit is contained in:
1 parent
13060a3492
commit
e55d07cf6f
2 files changed
+18
-1
No files matched your search
@@ -0,0 +1,11 @@
|
||||
Before:
|
||||
call ale#assert#SetUpLinterTest('graphql', 'gqlint')
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The linter should run from the directory of the file in the buffer):
|
||||
AssertLinter 'gqlint',
|
||||
\ ale#path#CdString(expand('%:p:h'))
|
||||
\ . 'gqlint --reporter=simple'
|
||||
\ . ' %t'
|
||||
Reference in new issue
Block a user