Skip to content

Commit a057bd1

Browse files
committed
update package:cli_config to the latest package:dart_flutter_team_lints
1 parent a51f779 commit a057bd1

File tree

6 files changed

+12
-19
lines changed

6 files changed

+12
-19
lines changed

pkgs/cli_config/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## 0.1.2-wip
1+
## 0.1.2
22

33
- Add usage docs to the readme.
4+
- Require Dart 3.0.
45

56
## 0.1.1
67

pkgs/cli_config/analysis_options.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,7 @@ analyzer:
77

88
linter:
99
rules:
10-
- always_declare_return_types
11-
- avoid_dynamic_calls
12-
- camel_case_types
13-
- depend_on_referenced_packages
14-
- directives_ordering
1510
- prefer_const_declarations
1611
- prefer_expression_function_bodies
1712
- prefer_final_in_for_each
1813
- prefer_final_locals
19-
- prefer_relative_imports
20-
- prefer_single_quotes
21-
- sort_pub_dependencies
22-
- unawaited_futures

pkgs/cli_config/lib/src/config.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ class Config {
355355
/// finally the config file.
356356
///
357357
/// For cli defines and environment variables, the value must be parseble
358-
/// by [int.parse].
358+
/// by [core.int.parse].
359359
/// For the config file, it must be an integer.
360360
core.int int(String key) {
361361
final value = optionalInt(key);
@@ -369,7 +369,7 @@ class Config {
369369
/// finally the config file.
370370
///
371371
/// For cli defines and environment variables, the value must be parseble
372-
/// by [int.parse].
372+
/// by [core.int.parse].
373373
/// For the config file, it must be an integer or null.
374374
core.int? optionalInt(String key) {
375375
core.int? value;
@@ -385,7 +385,7 @@ class Config {
385385
/// finally the config file.
386386
///
387387
/// For cli defines and environment variables, the value must be parseble
388-
/// by [double.parse].
388+
/// by [core.double.parse].
389389
/// For the config file, it must be an double.
390390
core.double double(String key) {
391391
final value = optionalDouble(key);
@@ -399,7 +399,7 @@ class Config {
399399
/// finally the config file.
400400
///
401401
/// For cli defines and environment variables, the value must be parseble
402-
/// by [double.parse].
402+
/// by [core.double.parse].
403403
/// For the config file, it must be an double or null.
404404
core.double? optionalDouble(String key) {
405405
core.double? value;

pkgs/cli_config/lib/src/environment_source.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'source.dart';
1010
class EnvironmentSource extends Source {
1111
/// Configuration options passed in via the [Platform.environment].
1212
///
13-
/// The keys have been transformed by [EnvironmentParser.parseKey].
13+
/// The keys have been transformed by `EnvironmentParser.parseKey`.
1414
///
1515
/// Environment values are left intact.
1616
///

pkgs/cli_config/lib/src/file_parser.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class FileParser {
1414
sourceUrl: sourceUrl,
1515
);
1616
if (parsedYaml is! Map) {
17-
throw FormatException('YAML config must be set of key value pairs.');
17+
throw const FormatException(
18+
'YAML config must be set of key value pairs.');
1819
}
1920
return parseToplevelMap(parsedYaml);
2021
}

pkgs/cli_config/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: cli_config
22
description: >-
33
A library to take config values from configuration files, CLI arguments, and
44
environment variables.
5-
version: 0.1.2-wip
5+
version: 0.1.2
66
repository: https://github.com/dart-lang/tools/tree/main/pkgs/cli_config
77

88
environment:
9-
sdk: ">=2.19.3 <4.0.0"
9+
sdk: ^3.0.0
1010

1111
dependencies:
1212
args: ^2.4.0
1313
yaml: ^3.1.1
1414

1515
dev_dependencies:
16-
dart_flutter_team_lints: ^1.0.0
16+
dart_flutter_team_lints: ^2.0.0
1717
test: ^1.21.0

0 commit comments

Comments
 (0)