Merge pull request #546 from dawikur/master

Add cpplint linter
This commit is contained in:
w0rp
2017-05-17 09:12:36 +01:00
committed by GitHub
6 changed files with 76 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
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()