mirror of
https://github.com/dense-analysis/ale
synced 2024-12-25 23:52:22 +00:00
ae1d051504
* Remove some tests we no longer need * Delete blocks of redundant code * Compress some tests together to simplify them * Remove a little code for ancient linter versions * Escape more executables we didn't escape before * Rename a deno option that didn't match our conventions
29 lines
795 B
Plaintext
29 lines
795 B
Plaintext
Before:
|
|
runtime ale_linters/cpp/cpplint.vim
|
|
|
|
After:
|
|
call ale#linter#Reset()
|
|
|
|
Execute(cpplint warnings from included files should be parsed correctly):
|
|
AssertEqual
|
|
\ [
|
|
\ {
|
|
\ 'lnum': 5,
|
|
\ 'col': 0,
|
|
\ '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',
|
|
\ 'code': 'whitespace/comments',
|
|
\ 'type': 'W',
|
|
\ },
|
|
\ ],
|
|
\ ale#handlers#cpplint#HandleCppLintFormat(347, [
|
|
\ '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]',
|
|
\ ])
|