diff options
author | w0rp <w0rp@users.noreply.github.com> | 2016-10-21 09:21:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-21 09:21:50 +0100 |
commit | 5eee70cf3771d8c07686766fa6625c9ac045af39 (patch) | |
tree | d11f276c518ea67c1baca91fd8312873ee6710f5 /test | |
parent | 7a06d276c255827df5c7c397e4871e5e887dcb39 (diff) | |
parent | c697ef05bb3a084588fb6033c2bf915932917afc (diff) | |
download | ale-5eee70cf3771d8c07686766fa6625c9ac045af39.zip |
Merge pull request #129 from neersighted/ansible
Add ansible-lint support and factor out PEP8 handler
Diffstat (limited to 'test')
-rw-r--r-- | test/test_common_handlers.vader | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/test_common_handlers.vader b/test/test_common_handlers.vader index 6fee00b8..ed3b1647 100644 --- a/test/test_common_handlers.vader +++ b/test/test_common_handlers.vader @@ -26,6 +26,34 @@ Then (The loclist should be correct): \ }, \], g:loclist +Execute (Run HandlePEP8Format): + let g:loclist = ale#handlers#HandlePEP8Format(42, [ + \ "stdin:6:6: E111 indentation is not a multiple of four", + \ "test.yml:35: [EANSIBLE0002] Trailing whitespace", + \]) + +Then (The loclist should be correct): + AssertEqual [ + \ { + \ 'bufnr': 42, + \ 'vcol': 0, + \ 'nr': -1, + \ 'lnum': 6, + \ 'col': 6, + \ 'type': 'E', + \ 'text': 'E111: indentation is not a multiple of four', + \ }, + \ { + \ 'bufnr': 42, + \ 'vcol': 0, + \ 'nr': -1, + \ 'lnum': 35, + \ 'col': 0, + \ 'type': 'E', + \ 'text': "EANSIBLE0002: Trailing whitespace", + \ }, + \], g:loclist + Execute (Run HandleGCCFormat): let g:loclist = ale#handlers#HandleGCCFormat(42, [ \ '<stdin>:8:5: warning: conversion lacks type at end of format [-Wformat=]', |