Merge pull request #68 from KabbAmine/linter-coffee

Add coffee linter
This commit is contained in:
w0rp 2016-10-08 16:56:03 +01:00 committed by GitHub
commit 1044c8af0a
3 changed files with 19 additions and 2 deletions

View File

@ -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/) | | Bourne Shell | [-n flag](http://linux.die.net/man/1/sh), [shellcheck](https://www.shellcheck.net/) |
| C | [gcc](https://gcc.gnu.org/) | | C | [gcc](https://gcc.gnu.org/) |
| C++ (filetype cpp)| [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/) | | CSS | [csslint](http://csslint.net/) |
| Cython (pyrex filetype) | [cython](http://cython.org/) | | Cython (pyrex filetype) | [cython](http://cython.org/) |
| D | [dmd](https://dlang.org/dmd-linux.html)^ | | D | [dmd](https://dlang.org/dmd-linux.html)^ |

View File

@ -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',
\})

View File

@ -44,7 +44,7 @@ The following languages and tools are supported.
* Bourne Shell: 'shell' (-n flag), 'shellcheck' * Bourne Shell: 'shell' (-n flag), 'shellcheck'
* C: 'gcc' * C: 'gcc'
* C++ (filetype cpp): 'gcc' * C++ (filetype cpp): 'gcc'
* CoffeeScript: 'coffelint' * CoffeeScript: 'coffee', 'coffelint'
* CSS: 'csslint' * CSS: 'csslint'
* Cython (pyrex filetype): 'cython' * Cython (pyrex filetype): 'cython'
* D: 'dmd' * D: 'dmd'