mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 20:54:26 +08:00
Close #1494 - Prefer displaying higher severity problems for cursor messages, balloons, and highlights
This commit is contained in:
@@ -25,3 +25,19 @@ Execute(loclist item should be sorted):
|
||||
\ {'bufnr': 2, 'lnum': 1, 'col': 2},
|
||||
\ {'bufnr': -1, 'filename': 'c', 'lnum': 3, 'col': 2},
|
||||
\], 'ale#util#LocItemCompare')
|
||||
|
||||
Execute(Items should be sorted in by their problem priority when they lie on the same column):
|
||||
AssertEqual [
|
||||
\ {'bufnr': 1, 'lnum': 1, 'col': 1, 'type': 'W', 'sub_type': 'style'},
|
||||
\ {'bufnr': 1, 'lnum': 1, 'col': 1, 'type': 'E', 'sub_type': 'style'},
|
||||
\ {'bufnr': 1, 'lnum': 1, 'col': 1, 'type': 'I'},
|
||||
\ {'bufnr': 1, 'lnum': 1, 'col': 1, 'type': 'W'},
|
||||
\ {'bufnr': 1, 'lnum': 1, 'col': 1, 'type': 'E'},
|
||||
\ ],
|
||||
\ sort([
|
||||
\ {'bufnr': 1, 'lnum': 1, 'col': 1, 'type': 'E'},
|
||||
\ {'bufnr': 1, 'lnum': 1, 'col': 1, 'type': 'I'},
|
||||
\ {'bufnr': 1, 'lnum': 1, 'col': 1, 'type': 'W'},
|
||||
\ {'bufnr': 1, 'lnum': 1, 'col': 1, 'type': 'E', 'sub_type': 'style'},
|
||||
\ {'bufnr': 1, 'lnum': 1, 'col': 1, 'type': 'W', 'sub_type': 'style'},
|
||||
\], 'ale#util#LocItemCompare')
|
||||
|
||||
Reference in New Issue
Block a user