mirror of
https://github.com/dense-analysis/ale
synced 2024-12-28 09:02:24 +00:00
c55064881d
* Add eruby linter * Update README with erb linter * Fix example and contributions * Remove trailing newline * Fix for Vimscript style guide * Eruby-linter: codereview with @w0rp - read from stderro output_stream * Eruby-linter: codereview => add handler for ruby * Eruby-linter: codereview - eruby and ruby lint use the same ruby-handler (removes duplicated handling logic) * Eruby-linter: try to fix tests
37 lines
902 B
Plaintext
37 lines
902 B
Plaintext
Execute(The ruby handler should parse lines correctly and add the column if it can):
|
|
runtime ale_linters/ruby/ruby.vim
|
|
" Point Error
|
|
" Warning
|
|
" Line Error
|
|
AssertEqual
|
|
\ [
|
|
\ {
|
|
\ 'lnum': 6,
|
|
\ 'col': 13,
|
|
\ 'type': 'E',
|
|
\ 'text': 'syntax error, unexpected '';'''
|
|
\ },
|
|
\ {
|
|
\ 'lnum': 9,
|
|
\ 'col': 0,
|
|
\ 'type': 'W',
|
|
\ 'text': 'warning: statement not reached'
|
|
\ },
|
|
\ {
|
|
\ 'lnum': 12,
|
|
\ 'col': 0,
|
|
\ 'type': 'E',
|
|
\ 'text': 'syntax error, unexpected end-of-input, expecting keyword_end'
|
|
\ }
|
|
\ ],
|
|
\ ale#handlers#ruby#HandleSyntaxErrors(255, [
|
|
\ "test.rb:6: syntax error, unexpected ';'",
|
|
\ " t = ;",
|
|
\ " ^",
|
|
\ "test.rb:9: warning: statement not reached",
|
|
\ "test.rb:12: syntax error, unexpected end-of-input, expecting keyword_end",
|
|
\ ])
|
|
|
|
After:
|
|
call ale#linter#Reset()
|