Skip to content

Commit a12a06c

Browse files
chore(deps): bump very_good_analysis from 9.0.0 to 10.0.0 (#110)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Erick <[email protected]>
1 parent b7c867e commit a12a06c

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

lib/src/command_runner/commands/handle_completion_command.dart

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,9 @@ class HandleCompletionRequestCommand<T> extends Command<T> {
6262
}
6363

6464
// Parse the completion level into completion suggestions
65-
final completionResults = CompletionParser(
66-
completionLevel: completionLevel,
67-
).parse();
68-
65+
CompletionParser(completionLevel: completionLevel).parse()
6966
// Render the completion suggestions
70-
for (final completionResult in completionResults) {
71-
runner.renderCompletionResult(completionResult);
72-
}
67+
.forEach(runner.renderCompletionResult);
7368
} on Exception {
7469
// Do not output any Exception here, since even error messages are
7570
// interpreted as completion suggestions

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ dependencies:
2121
dev_dependencies:
2222
mocktail: ^1.0.4
2323
test: ^1.25.8
24-
very_good_analysis: ^9.0.0
24+
very_good_analysis: ">=10.0.0 <11.0.0"

test/src/installer/completion_configuration_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// Not required for test files
2-
// ignore_for_file: prefer_const_constructors
32

43
import 'dart:collection';
54
import 'dart:io';

test/src/installer/completion_installation_test.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ void main() {
225225
expect(configFile.existsSync(), true);
226226

227227
// Different format needed for matching cli output
228-
// ignore: leading_newlines_in_multiline_strings
229228
expect(configFile.readAsStringSync(), '''
230229
\n## [very_good]
231230
## Completion config for "very_good"
@@ -287,7 +286,6 @@ void main() {
287286
installation.writeToShellConfigFile('very_good');
288287

289288
// Different format needed for matching cli output
290-
// ignore: leading_newlines_in_multiline_strings
291289
expect(rcFile.readAsStringSync(), '''
292290
\n## [Completion]
293291
## Completion scripts setup. Remove the following line to uninstall
@@ -435,7 +433,6 @@ void main() {
435433
// rc fle includes one reference to the global config
436434

437435
// Different format needed for matching cli output
438-
// ignore: leading_newlines_in_multiline_strings
439436
expect(rcFile.readAsStringSync(), '''
440437
\n## [Completion]
441438
## Completion scripts setup. Remove the following line to uninstall
@@ -450,7 +447,6 @@ void main() {
450447
);
451448

452449
// Different format needed for matching cli output
453-
// ignore: leading_newlines_in_multiline_strings
454450
expect(globalConfig.readAsStringSync(), '''
455451
\n## [very_good]
456452
## Completion config for "very_good"
@@ -491,7 +487,6 @@ void main() {
491487
..install('not_good');
492488

493489
// Different format needed for matching cli output
494-
// ignore: leading_newlines_in_multiline_strings
495490
expect(bashProfile.readAsStringSync(), '''
496491
\n## [Completion]
497492
## Completion scripts setup. Remove the following line to uninstall

0 commit comments

Comments
 (0)