This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/handler/test_cpplint_handler.vader

28 lines
773 B
Text
Raw Normal View History

2017-05-10 17:41:58 +00:00
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()