1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
Before:
runtime ale_linters/clojure/joker.vim
After:
call ale#linter#Reset()
Execute(the clojure joker handler should be able to handle errors):
AssertEqual
\ [
\ {
\ 'lnum': 123,
\ 'col': 44,
\ 'type': 'E',
\ 'text': 'Read error: Unexpected )',
\ },
\ ],
\ ale_linters#clojure#joker#HandleJokerFormat(0, [
\ 'test.clj:123:44: Read error: Unexpected )',
\ ])
Execute(the clojure joker handler should be able to handle warnings):
AssertEqual
\ [
\ {
\ 'lnum': 654,
\ 'col': 321,
\ 'type': 'W',
\ 'text': 'Parse warning: let form with empty body',
\ }
\ ],
\ ale_linters#clojure#joker#HandleJokerFormat(0, [
\ 'test.clj:654:321: Parse warning: let form with empty body'
\ ])
Execute(the clojure joker handler should be able to handle exceptions):
AssertEqual
\ [
\ {
\ 'lnum': 123,
\ 'col': 321,
\ 'type': 'E',
\ 'text': 'Exception: something horrible happen',
\ }
\ ],
\ ale_linters#clojure#joker#HandleJokerFormat(0, [
\ 'test.clj:123:321: Exception: something horrible happen'
\ ])
Execute(the clojure joker handler should be able to handle errors from stdin):
AssertEqual
\ [
\ {
\ 'lnum': 16,
\ 'col': 1,
\ 'type': 'E',
\ 'text': 'Read error: Unexpected )',
\ },
\ ],
\ ale_linters#clojure#joker#HandleJokerFormat(0, [
\ '<stdin>:16:1: Read error: Unexpected )',
\ ])
Execute(the clojure joker handler should be able to handle windows files):
AssertEqual
\ [
\ {
\ 'lnum': 123,
\ 'col': 44,
\ 'type': 'E',
\ 'text': 'Read error: Unexpected )',
\ }
\ ],
\ ale_linters#clojure#joker#HandleJokerFormat(0, [
\ 'C:\my\operating\system\is\silly\core.clj:123:44: Read error: Unexpected )',
\ ])
|