mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-24 14:57:04 +08:00
Ban use of ==# or ==? in the codebase, and prefer is# or is? instead
This commit is contained in:
1 parent
5010ddc28f
commit
a535d07f28
61 files changed
+158
-154
No files matched your search
@@ -43,9 +43,9 @@ function! ale_linters#ruby#rubocop#Handle(buffer, lines) abort
|
||||
endfunction
|
||||
|
||||
function! ale_linters#ruby#rubocop#GetType(severity) abort
|
||||
if a:severity ==? 'convention'
|
||||
\|| a:severity ==? 'warning'
|
||||
\|| a:severity ==? 'refactor'
|
||||
if a:severity is? 'convention'
|
||||
\|| a:severity is? 'warning'
|
||||
\|| a:severity is? 'refactor'
|
||||
return 'W'
|
||||
endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user