This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/command_callback/test_graphql_gqlint_command_callbacks.vader
Jeff Willette e55d07cf6f 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
2018-12-18 18:59:02 +09:00

11 lines
301 B
Text

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'