]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/handler/test_clojure_clj_kondo_handler.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit 'a39f715c13be3352193ffd9c5b7536b8786eff64' as '.vim/bundle/vim-lsp'
[etc/vim.git] / .vim / bundle / ale / test / handler / test_clojure_clj_kondo_handler.vader
1 Before:
2   runtime ale_linters/clojure/clj_kondo.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute(the clojure clj-kondo handler should be able to handle errors):
8   AssertEqual
9   \ [
10   \   {
11   \     'lnum': 123,
12   \     'col': 44,
13   \     'type': 'E',
14   \     'text': 'error: Unexpected )',
15   \   },
16   \ ],
17   \ ale_linters#clojure#clj_kondo#HandleCljKondoFormat(0, [
18   \   'test.clj:123:44: error: Unexpected )',
19   \ ])
20
21 Execute(the clojure clj-kondo handler should be able to handle warnings):
22   AssertEqual
23   \ [
24   \   {
25   \     'lnum': 654,
26   \     'col': 321,
27   \     'type': 'W',
28   \     'text': 'warning: inline def',
29   \   }
30   \ ],
31   \ ale_linters#clojure#clj_kondo#HandleCljKondoFormat(0, [
32   \   'test.clj:654:321: warning: inline def'
33   \ ])
34
35 Execute(the clojure clj-kondo handler should be able to handle exceptions):
36   AssertEqual
37   \ [
38   \   {
39   \     'lnum': 123,
40   \     'col': 321,
41   \     'type': 'E',
42   \     'text': 'Exception: something horrible happen',
43   \   }
44   \ ],
45   \ ale_linters#clojure#clj_kondo#HandleCljKondoFormat(0, [
46   \   'test.clj:123:321: Exception: something horrible happen'
47   \ ])
48
49 Execute(the clojure clj-kondo handler should be able to handle errors from stdin):
50   AssertEqual
51   \ [
52   \   {
53   \     'lnum': 16,
54   \     'col': 1,
55   \     'type': 'E',
56   \     'text': 'error: Unexpected )',
57   \   },
58   \ ],
59   \ ale_linters#clojure#clj_kondo#HandleCljKondoFormat(0, [
60   \   '<stdin>:16:1: error: Unexpected )',
61   \ ])
62
63 Execute(the clojure clj-kondo handler should be able to handle windows files):
64   AssertEqual
65   \ [
66   \   {
67   \     'lnum': 123,
68   \     'col': 44,
69   \     'type': 'E',
70   \     'text': 'error: Unexpected )',
71   \   }
72   \ ],
73   \ ale_linters#clojure#clj_kondo#HandleCljKondoFormat(0, [
74   \   'C:\my\operating\system\is\silly\core.clj:123:44: error: Unexpected )',
75   \ ])
76
77 Execute(the clojure clj-kondo handler should be able to lines without row/col):
78   AssertEqual
79   \ [
80   \   {
81   \     'lnum': 0,
82   \     'col': 0,
83   \     'type': 'E',
84   \     'text': 'error: Unexpected )',
85   \   },
86   \ ],
87   \ ale_linters#clojure#clj_kondo#HandleCljKondoFormat(0, [
88   \   'test.clj::: error: Unexpected )',
89   \ ])