Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update CoffeeLint for 0.4.0 csv output

coffeelint 0.4.0 is now the minimum required version
  • Loading branch information...
commit abac188893e615b5cbb7137ada691abd597be975 1 parent e630946
@kchmck authored
Showing with 5 additions and 5 deletions.
  1. +2 −2 Readme.md
  2. +3 −3 ftplugin/coffee.vim
View
4 Readme.md
@@ -192,8 +192,8 @@ Use `unwatch` to stop watching a buffer:
### CoffeeLint: Lint your CoffeeScript
-The `CoffeeLint` command runs [coffeelint](http://www.coffeelint.org/) on the
-current file and parses any errors:
+The `CoffeeLint` command runs [coffeelint](http://www.coffeelint.org/) (version
+0.4.0 or later required) on the current file and parses any errors:
:[RANGE] CoffeeLint[!] [COFFEELINT-OPTIONS]
View
6 ftplugin/coffee.vim
@@ -216,12 +216,12 @@ function! s:CoffeeLint(startline, endline, bang, args)
return
endif
- let lines = split(system(g:coffee_linter . ' ' . g:coffee_lint_options . ' ' .
- \ a:args . ' ' . filename . ' 2>&1'), '\n')
+ let lines = split(system(g:coffee_linter . ' --csv ' . g:coffee_lint_options .
+ \ ' ' . a:args . ' ' . filename . ' 2>&1'), '\n')
let qflist = []
for line in lines
- let match = matchlist(line, '\f\+#\(\d\+\) : error : \(.\+\)')
+ let match = matchlist(line, '\f\+,\(\d\+\),error,\(.\+\)')
" Ignore invalid lines.
if !len(match)
Please sign in to comment.
Something went wrong with that request. Please try again.