Permalink
Browse files

Update CoffeeLint for 0.4.0 csv output

coffeelint 0.4.0 is now the minimum required version
  • Loading branch information...
1 parent e630946 commit abac188893e615b5cbb7137ada691abd597be975 @kchmck committed Apr 7, 2012
Showing with 5 additions and 5 deletions.
  1. +2 −2 Readme.md
  2. +3 −3 ftplugin/coffee.vim
View
@@ -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
@@ -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)

0 comments on commit abac188

Please sign in to comment.