2017-06-14 11:20:30 -04:00
|
|
|
Before:
|
|
|
|
runtime ale_linters/ansible/ansible_lint.vim
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
|
|
|
Execute(The ansible-lint handler should handle basic errors):
|
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 35,
|
|
|
|
\ 'col': 0,
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ 'text': "EANSIBLE0002: Trailing whitespace",
|
|
|
|
\ },
|
|
|
|
\ ],
|
|
|
|
\ ale_linters#ansible#ansible_lint#Handle(42, [
|
|
|
|
\ "test.yml:35: [EANSIBLE0002] Trailing whitespace",
|
|
|
|
\ ])
|
|
|
|
|
|
|
|
Execute (The ansible-lint handler should handle names with spaces):
|
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 6,
|
|
|
|
\ 'col': 6,
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ 'text': 'E111: indentation is not a multiple of four',
|
|
|
|
\ },
|
|
|
|
\ ],
|
2017-06-14 12:14:04 -04:00
|
|
|
\ ale_linters#ansible#ansible_lint#Handle(42, [
|
2017-06-14 11:20:30 -04:00
|
|
|
\ 'C:\something\with spaces.yml:6:6: E111 indentation is not a multiple of four',
|
|
|
|
\ ])
|