diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-15 17:26:52 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-15 17:26:52 +0000 |
commit | 08f4f8f0fc2a6698dd48da7871209070ddfdb754 (patch) | |
tree | f67cc71d37c290d3aa3d5d3b1f4a2660e88453f5 /test/handler/test_shellcheck_handler.vader | |
parent | b14377915b9948454322cd95a86bcc298c03f77a (diff) | |
download | ale-08f4f8f0fc2a6698dd48da7871209070ddfdb754.zip |
#852 Capture error codes for shellcheck
Diffstat (limited to 'test/handler/test_shellcheck_handler.vader')
-rw-r--r-- | test/handler/test_shellcheck_handler.vader | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/handler/test_shellcheck_handler.vader b/test/handler/test_shellcheck_handler.vader index 5a7607e8..bfb73ffa 100644 --- a/test/handler/test_shellcheck_handler.vader +++ b/test/handler/test_shellcheck_handler.vader @@ -11,13 +11,15 @@ Execute(The shellcheck handler should handle basic errors or warnings): \ 'lnum': 2, \ 'col': 1, \ 'type': 'W', - \ 'text': 'In POSIX sh, ''let'' is not supported. [SC2039]', + \ 'text': 'In POSIX sh, ''let'' is not supported.', + \ 'code': 'SC2039', \ }, \ { \ 'lnum': 2, \ 'col': 3, \ 'type': 'E', - \ 'text': 'Don''t put spaces around the = in assignments. [SC1068]', + \ 'text': 'Don''t put spaces around the = in assignments.', + \ 'code': 'SC1068', \ }, \ ], \ ale_linters#sh#shellcheck#Handle(bufnr(''), [ @@ -32,7 +34,8 @@ Execute(The shellcheck handler should handle notes): \ 'lnum': 3, \ 'col': 3, \ 'type': 'I', - \ 'text': 'Double quote to prevent globbing and word splitting. [SC2086]', + \ 'text': 'Double quote to prevent globbing and word splitting.', + \ 'code': 'SC2086', \ }, \ ], \ ale_linters#sh#shellcheck#Handle(bufnr(''), [ |