Group handler test cases in a directory

This commit is contained in:
w0rp
2017-03-06 23:32:48 +00:00
parent 75a2dc5ff5
commit 663d8f832f
13 changed files with 2 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
Execute(The credo handler should parse lines correctly):
runtime ale_linters/elixir/credo.vim
AssertEqual
\ [
\ {
\ 'bufnr': 347,
\ 'lnum': 1,
\ 'col': 4,
\ 'text': 'There is no whitespace around parentheses/brackets most of the time, but here there is.',
\ 'type': 'E',
\ },
\ {
\ 'bufnr': 347,
\ 'lnum': 26,
\ 'col': 0,
\ 'text': 'If/else blocks should not have a negated condition in `if`.',
\ 'type': 'W',
\ },
\ ],
\ ale_linters#elixir#credo#Handle(347, [
\ 'This line should be ignored completely',
\ 'lib/filename.ex:1:4: C: There is no whitespace around parentheses/brackets most of the time, but here there is.',
\ 'lib/phoenix/channel.ex:26: R: If/else blocks should not have a negated condition in `if`.',
\ ])
After:
call ale#linter#Reset()