mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-03 08:53:44 +08:00
Show warnings for dart_analyze linter (#4237)
This commit is contained in:
1 parent
0e99519500
commit
4a0d669c0a
2 files changed
+16
-8
No files matched your search
@@ -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