summaryrefslogtreecommitdiff
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
parentc7193e775ebd16f06e4c44e819c829e954bda8e1 (diff)
downloadale-d646ebda72cffdec06fbef81cbf72d04806bef42.zip
Added new linter for GraphQL: gqlint (#863)
* Added new linter for GraphQL: GQLint * added help-files
-rw-r--r--README.md1
-rw-r--r--ale_linters/graphql/gqlint.vim9
-rw-r--r--doc/ale-graphql.txt9
-rw-r--r--doc/ale.txt2
4 files changed, 21 insertions, 0 deletions
diff --git a/README.md b/README.md
index fe1f71b2..3ab674ce 100644
--- a/README.md
+++ b/README.md
@@ -84,6 +84,7 @@ name. That seems to be the fairest way to arrange this table.
| Fortran | [gcc](https://gcc.gnu.org/) |
| FusionScript | [fusion-lint](https://github.com/RyanSquared/fusionscript) |
| Go | [gofmt -e](https://golang.org/cmd/gofmt/), [go vet](https://golang.org/cmd/vet/), [golint](https://godoc.org/github.com/golang/lint), [gometalinter](https://github.com/alecthomas/gometalinter), [go build](https://golang.org/cmd/go/), [gosimple](https://github.com/dominikh/go-tools/tree/master/cmd/gosimple), [staticcheck](https://github.com/dominikh/go-tools/tree/master/cmd/staticcheck) |
+| GraphQL | [gqlint](https://github.com/happylinks/gqlint) |
| Haml | [haml-lint](https://github.com/brigade/haml-lint)
| Handlebars | [ember-template-lint](https://github.com/rwjblue/ember-template-lint) |
| Haskell | [ghc](https://www.haskell.org/ghc/), [stack-ghc](https://haskellstack.org/), [stack-build](https://haskellstack.org/), [ghc-mod](https://github.com/DanielG/ghc-mod), [stack-ghc-mod](https://github.com/DanielG/ghc-mod), [hlint](https://hackage.haskell.org/package/hlint), [hdevtools](https://hackage.haskell.org/package/hdevtools) |
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',
+\})
diff --git a/doc/ale-graphql.txt b/doc/ale-graphql.txt
new file mode 100644
index 00000000..5ceb5ca7
--- /dev/null
+++ b/doc/ale-graphql.txt
@@ -0,0 +1,9 @@
+===============================================================================
+ALE GraphQL Integration *ale-graphql-options*
+
+
+===============================================================================
+gqlint *ale-graphql-gqlint*
+
+===============================================================================
+ vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
diff --git a/doc/ale.txt b/doc/ale.txt
index 7af3d20a..0c308e7f 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -43,6 +43,8 @@ CONTENTS *ale-contents*
fusion-lint.........................|ale-fuse-fusionlint|
go....................................|ale-go-options|
gometalinter........................|ale-go-gometalinter|
+ graphql...............................|ale-graphql-options|
+ gqlint..............................|ale-graphql-gqlint|
handlebars............................|ale-handlebars-options|
ember-template-lint.................|ale-handlebars-embertemplatelint|
haskell...............................|ale-haskell-options|