summaryrefslogtreecommitdiff
path: root/ale_linters/graphql
diff options
context:
space:
mode:
authorMichiel Westerbeek <happylinks@gmail.com>2017-08-20 14:36:46 +0200
committerw0rp <w0rp@users.noreply.github.com>2017-08-20 13:36:46 +0100
commitd646ebda72cffdec06fbef81cbf72d04806bef42 (patch)
treeb343942c6db2d20176f9ed355c9c68e3d6416705 /ale_linters/graphql
parentc7193e775ebd16f06e4c44e819c829e954bda8e1 (diff)
downloadale-d646ebda72cffdec06fbef81cbf72d04806bef42.zip
Added new linter for GraphQL: gqlint (#863)
* Added new linter for GraphQL: GQLint * added help-files
Diffstat (limited to 'ale_linters/graphql')
-rw-r--r--ale_linters/graphql/gqlint.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/ale_linters/graphql/gqlint.vim b/ale_linters/graphql/gqlint.vim
new file mode 100644
index 00000000..0b70abb0
--- /dev/null
+++ b/ale_linters/graphql/gqlint.vim
@@ -0,0 +1,9 @@
+" Author: Michiel Westerbeek <happylinks@gmail.com>
+" Description: Linter for GraphQL Schemas
+
+call ale#linter#Define('graphql', {
+ \ 'name': 'gqlint',
+ \ 'executable': 'gqlint',
+ \ 'command': 'gqlint --reporter=simple %t',
+ \ 'callback': 'ale#handlers#unix#HandleAsWarning',
+\})