mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Handle cython warning with custom handle and remove '--warning-errors'.
Add a custom handler to support cython warning format. Remove '--warning-errors' to keep previous behaviour.
This commit is contained in:
committed by
Nicolas Pauss
parent
bedd30ee11
commit
d05936a489
26
test/handler/test_pyrex_cython_handler.vader
Normal file
26
test/handler/test_pyrex_cython_handler.vader
Normal file
@@ -0,0 +1,26 @@
|
||||
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',
|
||||
\ ])
|
||||
Reference in New Issue
Block a user