summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorGabriel Remus <54900476+grlduarte@users.noreply.github.com>2022-06-24 12:18:08 -0300
committerGitHub <noreply@github.com>2022-06-25 00:18:08 +0900
commit4a0d669c0a49d2e156c0140be82cc56b8cd4305d (patch)
tree047552f049dd86d90c844bd886c465e7457c9c3e /test/handler
parent0e99519500513ac6525f776722fb50a0197c54ce (diff)
downloadale-4a0d669c0a49d2e156c0140be82cc56b8cd4305d.zip
Show warnings for `dart_analyze` linter (#4237)
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_dart_analyze_handler.vader11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/handler/test_dart_analyze_handler.vader b/test/handler/test_dart_analyze_handler.vader
index b3f20fb8..f167582c 100644
--- a/test/handler/test_dart_analyze_handler.vader
+++ b/test/handler/test_dart_analyze_handler.vader
@@ -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.',
\ ])