summaryrefslogtreecommitdiff
path: root/test/handler/test_cpplint_handler.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-15 11:28:16 +0000
committerw0rp <devw0rp@gmail.com>2017-11-15 11:28:16 +0000
commit8f80708da6192ccc2914668ff776916c98cb4e82 (patch)
treeaeb0c9a88b114c51e3cba94ae45c7fd102e550b9 /test/handler/test_cpplint_handler.vader
parentff5c6b050955577322c50ffbae15f722d6d82b18 (diff)
downloadale-8f80708da6192ccc2914668ff776916c98cb4e82.zip
#852 - Capture error codes for cpplint
Diffstat (limited to 'test/handler/test_cpplint_handler.vader')
-rw-r--r--test/handler/test_cpplint_handler.vader14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/handler/test_cpplint_handler.vader b/test/handler/test_cpplint_handler.vader
index 6df84ccd..d8d7b8b7 100644
--- a/test/handler/test_cpplint_handler.vader
+++ b/test/handler/test_cpplint_handler.vader
@@ -1,6 +1,9 @@
Before:
runtime ale_linters/cpp/cpplint.vim
+After:
+ call ale#linter#Reset()
+
Execute(cpplint warnings from included files should be parsed correctly):
AssertEqual
@@ -8,20 +11,19 @@ Execute(cpplint warnings from included files should be parsed correctly):
\ {
\ 'lnum': 5,
\ 'col': 0,
- \ 'text': ' Estra space after ( in function call [whitespace/parents] [4]',
+ \ 'text': 'Extra space after ( in function call',
+ \ 'code': 'whitespace/parents',
\ 'type': 'W',
\ },
\ {
\ 'lnum': 120,
\ 'col': 0,
- \ 'text': ' At least two spaces is best between code and comments [whitespace/comments] [2]',
+ \ 'text': 'At least two spaces is best between code and comments',
+ \ 'code': 'whitespace/comments',
\ 'type': 'W',
\ },
\ ],
\ ale#handlers#cpplint#HandleCppLintFormat(347, [
- \ 'test.cpp:5: Estra space after ( in function call [whitespace/parents] [4]',
+ \ 'test.cpp:5: Extra space after ( in function call [whitespace/parents] [4]',
\ 'keymap_keys.hpp:120: At least two spaces is best between code and comments [whitespace/comments] [2]',
\ ])
-
-After:
- call ale#linter#Reset()