ale/test/handler/test_cpplint_handler.vader

29 lines
795 B
Plaintext
Raw Permalink Normal View History

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