summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-05-17 09:12:36 +0100
committerGitHub <noreply@github.com>2017-05-17 09:12:36 +0100
commit372a4dfd7e7166292d0f35ddc10f0365fe0e3053 (patch)
treec959294b19f6d5cb18fdfa9a85f26996b6e38c79 /test/handler
parent3443994a5211cc823ac87379eacdfbdb08663bee (diff)
parent9185a0d2e5d229a9fdfdc25279ae1b4c701ac4d9 (diff)
downloadale-372a4dfd7e7166292d0f35ddc10f0365fe0e3053.zip
Merge pull request #546 from dawikur/master
Add cpplint linter
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_cpplint_handler.vader27
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()