mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-03 18:14:01 +08:00
Extract error code from message
This commit is contained in:
@@ -10,37 +10,43 @@ Execute(The vint handler should parse error messages correctly):
|
||||
\ {
|
||||
\ 'lnum': 1,
|
||||
\ 'col': 17,
|
||||
\ 'text': 'Compiler version must be fixed (compiler-fixed)',
|
||||
\ 'text': 'Compiler version must be fixed',
|
||||
\ 'code': 'compiler-fixed',
|
||||
\ 'type': 'W',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 4,
|
||||
\ 'col': 8,
|
||||
\ 'text': 'Use double quotes for string literals (quotes)',
|
||||
\ 'text': 'Use double quotes for string literals',
|
||||
\ 'code': 'quotes',
|
||||
\ 'type': 'E',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 5,
|
||||
\ 'col': 8,
|
||||
\ 'text': 'Use double quotes for string literals (quotes)',
|
||||
\ 'text': 'Use double quotes for string literals',
|
||||
\ 'code': 'quotes',
|
||||
\ 'type': 'E',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 13,
|
||||
\ 'col': 3,
|
||||
\ 'text': 'Expected indentation of 4 spaces but found 2 (indent)',
|
||||
\ 'text': 'Expected indentation of 4 spaces but found 2',
|
||||
\ 'code': 'indent',
|
||||
\ 'type': 'E',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 14,
|
||||
\ 'col': 3,
|
||||
\ 'text': 'Expected indentation of 4 spaces but found 2 (indent)',
|
||||
\ 'text': 'Expected indentation of 4 spaces but found 2',
|
||||
\ 'code': 'indent',
|
||||
\ 'type': 'E',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 47,
|
||||
\ 'col': 3,
|
||||
\ 'text': 'Function order is incorrect, public function can not go after internal function. (func-order)',
|
||||
\ 'text': 'Function order is incorrect, public function can not go after internal function.',
|
||||
\ 'code': 'func-order',
|
||||
\ 'type': 'E',
|
||||
\ },
|
||||
\ ],
|
||||
|
||||
Reference in New Issue
Block a user