mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
#852 - Capture error codes for cpplint
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
Before:
|
||||
runtime ale_linters/cpp/cpplint.vim
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(cpplint warnings from included files should be parsed correctly):
|
||||
|
||||
AssertEqual
|
||||
@@ -8,20 +11,19 @@ Execute(cpplint warnings from included files should be parsed correctly):
|
||||
\ {
|
||||
\ 'lnum': 5,
|
||||
\ 'col': 0,
|
||||
\ 'text': ' Estra space after ( in function call [whitespace/parents] [4]',
|
||||
\ '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 [whitespace/comments] [2]',
|
||||
\ 'text': 'At least two spaces is best between code and comments',
|
||||
\ 'code': 'whitespace/comments',
|
||||
\ 'type': 'W',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale#handlers#cpplint#HandleCppLintFormat(347, [
|
||||
\ 'test.cpp:5: Estra space after ( in function call [whitespace/parents] [4]',
|
||||
\ '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]',
|
||||
\ ])
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
|
||||
Reference in New Issue
Block a user