From 9185a0d2e5d229a9fdfdc25279ae1b4c701ac4d9 Mon Sep 17 00:00:00 2001 From: Dawid Kurek Date: Wed, 10 May 2017 19:41:58 +0200 Subject: Add cpplint linter --- test/handler/test_cpplint_handler.vader | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/handler/test_cpplint_handler.vader (limited to 'test/handler') 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() -- cgit v1.2.3