Skip to content

Commit 776def4

Browse files
authored
Clean up duplicate lints (#4407)
1 parent 1d7b0d9 commit 776def4

File tree

6 files changed

+18
-31
lines changed

6 files changed

+18
-31
lines changed

analysis_options.yaml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,20 @@ analyzer:
1212

1313
linter:
1414
rules:
15-
- always_declare_return_types
16-
- avoid_catching_errors
1715
- avoid_print
1816
- avoid_private_typedef_functions
1917
- avoid_redundant_argument_values
2018
- avoid_unused_constructor_parameters
2119
- avoid_void_async
2220
- cancel_subscriptions
23-
- directives_ordering
24-
- library_annotations
21+
- missing_code_block_language_in_doc_comment
2522
- missing_whitespace_between_adjacent_strings
2623
- no_adjacent_strings_in_list
2724
- no_runtimeType_toString
28-
- omit_local_variable_types
29-
- only_throw_errors
3025
- package_api_docs
31-
- prefer_asserts_in_initializer_lists
3226
- prefer_const_declarations
3327
- prefer_final_locals
34-
- prefer_relative_imports
35-
- prefer_single_quotes
3628
- require_trailing_commas
37-
- sort_pub_dependencies
38-
- test_types_in_equals
39-
- throw_in_finally
40-
- type_annotate_public_apis
4129
- unawaited_futures
42-
- unnecessary_lambdas
43-
- unnecessary_library_directive
44-
- unnecessary_parenthesis
45-
- unnecessary_statements
4630
- unreachable_from_main
4731
- use_enums

lib/src/authentication/credential.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import '../utils.dart';
2727
///
2828
/// or
2929
///
30-
/// /// ```json
30+
/// ```json
3131
/// {
3232
/// "url": "https://example.com/",
3333
/// "env": "TOKEN_ENV_VAR"

lib/src/command/add.dart

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,8 @@ Specify multiple sdk packages with descriptors.''');
448448
/// description is issued.
449449
///
450450
/// Examples:
451-
/// ```
451+
///
452+
/// ```none
452453
/// retry
453454
/// retry:2.0.0
454455
/// retry:^2.0.0
@@ -579,7 +580,8 @@ Specify multiple sdk packages with descriptors.''');
579580
///
580581
///
581582
/// Examples:
582-
/// ```
583+
///
584+
/// ```none
583585
/// retry
584586
/// retry:2.0.0
585587
/// dev:retry:^2.0.0
@@ -593,14 +595,14 @@ Specify multiple sdk packages with descriptors.''');
593595
/// 'retry:{"hosted":"mypub.dev"}'
594596
/// ```
595597
///
596-
/// The --path --sdk and --git-<option> arguments cannot be combined with a
597-
/// non-string descriptor.
598+
/// The `--path`, `--sdk`, and `--git-<option>` arguments can't be
599+
/// combined with a non-string descriptor.
598600
///
599601
/// If a version constraint is provided when the `--path` or any of the
600-
/// `--git-<option>` options are used, a [usageException] will be thrown.
602+
/// `--git-<option>` options are used, a [UsageException] will be thrown.
601603
///
602604
/// Packages must either be a git, hosted, sdk, or path package. Mixing of
603-
/// options is not allowed and will cause a [usageException] to be thrown.
605+
/// options is not allowed and will cause a [UsageException] to be thrown.
604606
///
605607
/// If any of the other git options are defined when `--git-url` is not
606608
/// defined, an error will be thrown.

pubspec.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ packages:
9898
dependency: "direct dev"
9999
description:
100100
name: dart_flutter_team_lints
101-
sha256: "084338b81e33917c7c180da7aaccb59a5e5d16ece372465c6a2b930841b9009a"
101+
sha256: c6c9c89f4038a64063b67166b2d291d19697a73e111afa42ddcf1840c410c08e
102102
url: "https://pub.dev"
103103
source: hosted
104-
version: "3.2.0"
104+
version: "3.2.1"
105105
file:
106106
dependency: transitive
107107
description:
@@ -178,10 +178,10 @@ packages:
178178
dependency: transitive
179179
description:
180180
name: lints
181-
sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
181+
sha256: "4a16b3f03741e1252fda5de3ce712666d010ba2122f8e912c94f9f7b90e1a4c3"
182182
url: "https://pub.dev"
183183
source: hosted
184-
version: "4.0.0"
184+
version: "5.1.0"
185185
logging:
186186
dependency: transitive
187187
description:
@@ -479,4 +479,4 @@ packages:
479479
source: hosted
480480
version: "2.2.1"
481481
sdks:
482-
dart: ">=3.5.0 <4.0.0"
482+
dart: ">=3.6.0-0 <4.0.0"

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies:
3030

3131
dev_dependencies:
3232
checks: ^0.3.0
33-
dart_flutter_team_lints: ^3.1.0
33+
dart_flutter_team_lints: ^3.2.1
3434
shelf_test_handler: ^2.0.2
3535
test: ^1.24.9
3636
test_descriptor: ^2.0.1

test/help_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import 'golden_file.dart';
1010
/// Extract all commands and subcommands.
1111
///
1212
/// Result will be an iterable of lists, illustrated as follows:
13-
/// ```
13+
///
14+
/// ```none
1415
/// [
1516
/// [pub]
1617
/// [pub, get]

0 commit comments

Comments
 (0)