From d646ebda72cffdec06fbef81cbf72d04806bef42 Mon Sep 17 00:00:00 2001 From: Michiel Westerbeek Date: Sun, 20 Aug 2017 14:36:46 +0200 Subject: [PATCH] Added new linter for GraphQL: gqlint (#863) * Added new linter for GraphQL: GQLint * added help-files --- README.md | 1 + ale_linters/graphql/gqlint.vim | 9 +++++++++ doc/ale-graphql.txt | 9 +++++++++ doc/ale.txt | 2 ++ 4 files changed, 21 insertions(+) create mode 100644 ale_linters/graphql/gqlint.vim create mode 100644 doc/ale-graphql.txt 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 +" 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|