From 5eb710635950ed2373c916149865c013710fbff9 Mon Sep 17 00:00:00 2001 From: Kabbaj Amine Date: Sat, 8 Oct 2016 18:52:23 +0300 Subject: [PATCH] Add coffee linter --- README.md | 2 +- ale_linters/coffee/coffee.vim | 17 +++++++++++++++++ doc/ale.txt | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 ale_linters/coffee/coffee.vim diff --git a/README.md b/README.md index 0930863..3e6f56f 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ name. That seems to be the fairest way to arrange this table. | Bourne Shell | [-n flag](http://linux.die.net/man/1/sh), [shellcheck](https://www.shellcheck.net/) | | C | [gcc](https://gcc.gnu.org/) | | C++ (filetype cpp)| [gcc](https://gcc.gnu.org/) | -| CoffeeScript | [coffeelint](https://www.npmjs.com/package/coffeelint) | +| CoffeeScript | [coffee](http://coffeescript.org/), [coffeelint](https://www.npmjs.com/package/coffeelint) | | CSS | [csslint](http://csslint.net/) | | Cython (pyrex filetype) | [cython](http://cython.org/) | | D | [dmd](https://dlang.org/dmd-linux.html)^ | diff --git a/ale_linters/coffee/coffee.vim b/ale_linters/coffee/coffee.vim new file mode 100644 index 0000000..a19017c --- /dev/null +++ b/ale_linters/coffee/coffee.vim @@ -0,0 +1,17 @@ +" Author: KabbAmine - https://github.com/KabbAmine +" Description: Coffee for checking coffee files + +if exists('g:loaded_ale_linters_coffee_coffee') + finish +endif + +let g:loaded_ale_linters_coffee_coffee = 1 + +call ALEAddLinter('coffee', { +\ 'name': 'coffee', +\ 'executable': 'coffee', +\ 'command': 'coffee -cp -s', +\ 'output_stream': 'stderr', +\ 'callback': 'ale#handlers#HandleGCCFormat', +\}) + diff --git a/doc/ale.txt b/doc/ale.txt index fff6e43..52804b4 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -44,7 +44,7 @@ The following languages and tools are supported. * Bourne Shell: 'shell' (-n flag), 'shellcheck' * C: 'gcc' * C++ (filetype cpp): 'gcc' -* CoffeeScript: 'coffelint' +* CoffeeScript: 'coffee', 'coffelint' * CSS: 'csslint' * Cython (pyrex filetype): 'cython' * D: 'dmd'