diff options
author | Dawid Kurek <dawikur@gmail.com> | 2017-05-10 19:41:58 +0200 |
---|---|---|
committer | Dawid Kurek <dawikur@gmail.com> | 2017-05-16 19:09:59 +0200 |
commit | 9185a0d2e5d229a9fdfdc25279ae1b4c701ac4d9 (patch) | |
tree | 64d0ee9e358db46d12c6dd86d7eae8baf2105b0f /test/handler | |
parent | 8712aee5dcddd366ae52a0c57e67fdbc13c030ee (diff) | |
download | ale-9185a0d2e5d229a9fdfdc25279ae1b4c701ac4d9.zip |
Add cpplint linter
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_cpplint_handler.vader | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/handler/test_cpplint_handler.vader b/test/handler/test_cpplint_handler.vader new file mode 100644 index 00000000..6df84ccd --- /dev/null +++ b/test/handler/test_cpplint_handler.vader @@ -0,0 +1,27 @@ +Before: + runtime ale_linters/cpp/cpplint.vim + +Execute(cpplint warnings from included files should be parsed correctly): + + AssertEqual + \ [ + \ { + \ 'lnum': 5, + \ 'col': 0, + \ 'text': ' Estra space after ( in function call [whitespace/parents] [4]', + \ 'type': 'W', + \ }, + \ { + \ 'lnum': 120, + \ 'col': 0, + \ 'text': ' At least two spaces is best between code and comments [whitespace/comments] [2]', + \ 'type': 'W', + \ }, + \ ], + \ ale#handlers#cpplint#HandleCppLintFormat(347, [ + \ 'test.cpp:5: Estra 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() |