Show warnings for dart_analyze linter (#4237)

This commit is contained in:
Gabriel Remus
2022-06-24 12:18:08 -03:00
committed by GitHub
parent 0e99519500
commit 4a0d669c0a
2 changed files with 16 additions and 8 deletions

View File

@@ -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.',
\ ])