mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-09 22:14:44 +08:00
#476 Make F401 a warning and E112 a syntax error
This commit is contained in:
@@ -44,8 +44,8 @@ function! ale_linters#python#pycodestyle#Handle(buffer, lines) abort
|
||||
\ 'code': l:match[4],
|
||||
\}
|
||||
|
||||
" E999 is not a style error, it's a syntax error.
|
||||
if l:match[4] is# 'E999'
|
||||
" E999 and E112 are syntax errors.
|
||||
if l:match[4] is# 'E999' || l:match[4] is# 'E112'
|
||||
unlet l:item.sub_type
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user