ale/test/handler/test_cpplint_handler.vader

30 lines
796 B
Plaintext
Raw Normal View History

2017-05-10 13:41:58 -04:00
Before:
runtime ale_linters/cpp/cpplint.vim
2017-11-15 06:28:16 -05:00
After:
call ale#linter#Reset()
2017-05-10 13:41:58 -04:00
Execute(cpplint warnings from included files should be parsed correctly):
AssertEqual
\ [
\ {
\ 'lnum': 5,
\ 'col': 0,
2017-11-15 06:28:16 -05:00
\ 'text': 'Extra space after ( in function call',
\ 'code': 'whitespace/parents',
2017-05-10 13:41:58 -04:00
\ 'type': 'W',
\ },
\ {
\ 'lnum': 120,
\ 'col': 0,
2017-11-15 06:28:16 -05:00
\ 'text': 'At least two spaces is best between code and comments',
\ 'code': 'whitespace/comments',
2017-05-10 13:41:58 -04:00
\ 'type': 'W',
\ },
\ ],
\ ale#handlers#cpplint#HandleCppLintFormat(347, [
2017-11-15 06:28:16 -05:00
\ 'test.cpp:5: Extra space after ( in function call [whitespace/parents] [4]',
2017-05-10 13:41:58 -04:00
\ 'keymap_keys.hpp:120: At least two spaces is best between code and comments [whitespace/comments] [2]',
\ ])