mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-14 23:32:28 +08:00
Show warnings for dart_analyze linter (#4237)
This commit is contained in:
@@ -19,10 +19,17 @@ Execute(Basic problems should be parsed correctly):
|
||||
\ 'lnum': 2,
|
||||
\ 'col': 16,
|
||||
\ },
|
||||
\ {
|
||||
\ 'type': 'I',
|
||||
\ 'text': 'dead_code: Dead code. Try removing the code, or fixing the code before it so that it can be reached.',
|
||||
\ 'lnum': 8,
|
||||
\ 'col': 3,
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#dart#dart_analyze#Handle(bufnr(''), [
|
||||
\ 'Analyzing main.dart...',
|
||||
\ ' error - main.dart:5:1 - Expected to find ''}'' - expected_token',
|
||||
\ ' warning - main.dart:2:16 - A value of type ''String'' can''t be assigned to a variable of type ''int'' - invalid_assignment',
|
||||
\ '1 error and 1 warning found.',
|
||||
\ 'warning - main.dart:2:16 - A value of type ''String'' can''t be assigned to a variable of type ''int'' - invalid_assignment',
|
||||
\ ' info - main.dart:8:3 - Dead code. Try removing the code, or fixing the code before it so that it can be reached. - dead_code',
|
||||
\ '3 issues found.',
|
||||
\ ])
|
||||
|
||||
Reference in New Issue
Block a user