mirror of
https://github.com/dense-analysis/ale
synced 2024-12-18 04:15:39 +00:00
d05936a489
Add a custom handler to support cython warning format. Remove '--warning-errors' to keep previous behaviour.
27 lines
513 B
Plaintext
27 lines
513 B
Plaintext
Before:
|
|
runtime ale_linters/pyrex/cython.vim
|
|
|
|
After:
|
|
call ale#linter#Reset()
|
|
|
|
Execute(The cython handler should handle warnings and errors):
|
|
AssertEqual
|
|
\ [
|
|
\ {
|
|
\ 'lnum': 42,
|
|
\ 'col': 7,
|
|
\ 'text': 'some warning',
|
|
\ 'type': 'W',
|
|
\ },
|
|
\ {
|
|
\ 'lnum': 777,
|
|
\ 'col': 21,
|
|
\ 'text': 'some error',
|
|
\ 'type': 'E',
|
|
\ },
|
|
\ ],
|
|
\ ale_linters#pyrex#cython#Handle(347, [
|
|
\ 'warning: file:42:7: some warning',
|
|
\ 'file:777:21: some error',
|
|
\ ])
|