Skip to content

Commit df62895

Browse files
committed
some analysis fixes
1 parent 2ab0e71 commit df62895

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

example/lib/example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
/// # see usage
88
/// example_cli --help
99
/// ```
10-
library example;
10+
library;

example/test/integration/completion_integration_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@Tags(['integration'])
2-
library integration_tests;
2+
library;
33

44
import 'package:test/test.dart';
55

lib/cli_completion.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Contains the completion command runner based elements to add completion to
22
/// dart command line applications.
3-
library cli_completion;
3+
library;
44

55
export 'src/command_runner/commands/commands.dart';
66
export 'src/command_runner/completion_command_runner.dart';

lib/installer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Contains the functions related to the installation process
22
/// {@canonicalFor system_shell.SystemShell}
3-
library installer;
3+
library;
44

55
export 'src/installer/installer.dart';
66
export 'src/system_shell.dart';

lib/parser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Contains the classes and functions related to the creation of suggestions
22
/// for the completion of commands.
3-
library parser;
3+
library;
44

55
export 'src/parser/completion_level.dart';
66
export 'src/parser/completion_result.dart';

lib/src/parser/arg_parser_extension.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extension ArgParserExtension on ArgParser {
2323
while (currentArgs.isNotEmpty) {
2424
try {
2525
return loosenOptionsGramamar.parse(currentArgs);
26-
} catch (_) {
26+
} on Exception catch (_) {
2727
currentArgs = currentArgs.take(currentArgs.length - 1).toList();
2828
}
2929
}

test/src/installer/script_configuration_entry_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Not needed for test files
12
// ignore_for_file: prefer_const_constructors
23

34
import 'dart:io';

0 commit comments

Comments
 (0)