summaryrefslogtreecommitdiff
path: root/test/handler/test_cpplint_handler.vader
blob: d8d7b8b787a6e20f12272798eafebd68cdd0fd4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Before:
  runtime ale_linters/cpp/cpplint.vim

After:
  call ale#linter#Reset()

Execute(cpplint warnings from included files should be parsed correctly):

  AssertEqual
  \ [
  \   {
  \     'lnum': 5,
  \     'col': 0,
  \     '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',
  \     'code': 'whitespace/comments',
  \     'type': 'W',
  \   },
  \ ],
  \ ale#handlers#cpplint#HandleCppLintFormat(347, [
  \   '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]',
  \ ])