mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-21 03:31:13 +08:00
#476 Make F401 a warning and E112 a syntax error
This commit is contained in:
@@ -137,3 +137,18 @@ Execute(Disabling trailing blank line warnings should work):
|
||||
\ ale_linters#python#pycodestyle#Handle(bufnr(''), [
|
||||
\ 'foo.py:6:1: W391 blank line at end of file',
|
||||
\ ])
|
||||
|
||||
Execute(E112 should be a syntax error):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 6,
|
||||
\ 'col': 1,
|
||||
\ 'code': 'E112',
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'expected an indented block',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#python#pycodestyle#Handle(bufnr(''), [
|
||||
\ 'foo.py:6:1: E112 expected an indented block',
|
||||
\ ])
|
||||
|
||||
Reference in New Issue
Block a user