mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Skip empty or unparseable ruff items
This commit is contained in:
@@ -76,6 +76,10 @@ function! ale_linters#python#ruff#Handle(buffer, lines) abort
|
||||
continue
|
||||
endtry
|
||||
|
||||
if empty(l:item)
|
||||
continue
|
||||
endif
|
||||
|
||||
if (l:item.code is# 'W291' || l:item.code is# 'W293')
|
||||
\&& !ale#Var(a:buffer, 'warn_about_trailing_whitespace')
|
||||
" Skip warnings for trailing whitespace if the option is off.
|
||||
|
||||
Reference in New Issue
Block a user