From 641efe306b9bee0750e2762c1260b76aa00e9519 Mon Sep 17 00:00:00 2001 From: Parker Lougheed Date: Mon, 7 Oct 2024 19:14:19 -0500 Subject: [PATCH] Clean up duplicate lints --- analysis_options.yaml | 18 +----------------- lib/src/authentication/credential.dart | 2 +- lib/src/command/add.dart | 14 ++++++++------ pubspec.lock | 22 +++++++++++----------- pubspec.yaml | 2 +- test/help_test.dart | 3 ++- 6 files changed, 24 insertions(+), 37 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index fb93ce7c4..715ebeab2 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -12,36 +12,20 @@ analyzer: linter: rules: - - always_declare_return_types - - avoid_catching_errors - avoid_print - avoid_private_typedef_functions - avoid_redundant_argument_values - avoid_unused_constructor_parameters - avoid_void_async - cancel_subscriptions - - directives_ordering - - library_annotations + - missing_code_block_language_in_doc_comment - missing_whitespace_between_adjacent_strings - no_adjacent_strings_in_list - no_runtimeType_toString - - omit_local_variable_types - - only_throw_errors - package_api_docs - - prefer_asserts_in_initializer_lists - prefer_const_declarations - prefer_final_locals - - prefer_relative_imports - - prefer_single_quotes - require_trailing_commas - - sort_pub_dependencies - - test_types_in_equals - - throw_in_finally - - type_annotate_public_apis - unawaited_futures - - unnecessary_lambdas - - unnecessary_library_directive - - unnecessary_parenthesis - - unnecessary_statements - unreachable_from_main - use_enums diff --git a/lib/src/authentication/credential.dart b/lib/src/authentication/credential.dart index 5e51754cc..a69beef07 100644 --- a/lib/src/authentication/credential.dart +++ b/lib/src/authentication/credential.dart @@ -27,7 +27,7 @@ import '../utils.dart'; /// /// or /// -/// /// ```json +/// ```json /// { /// "url": "https://example.com/", /// "env": "TOKEN_ENV_VAR" diff --git a/lib/src/command/add.dart b/lib/src/command/add.dart index 5e098b213..5fe7f048a 100644 --- a/lib/src/command/add.dart +++ b/lib/src/command/add.dart @@ -448,7 +448,8 @@ Specify multiple sdk packages with descriptors.'''); /// description is issued. /// /// Examples: - /// ``` + /// + /// ```none /// retry /// retry:2.0.0 /// retry:^2.0.0 @@ -579,7 +580,8 @@ Specify multiple sdk packages with descriptors.'''); /// /// /// Examples: - /// ``` + /// + /// ```none /// retry /// retry:2.0.0 /// dev:retry:^2.0.0 @@ -593,14 +595,14 @@ Specify multiple sdk packages with descriptors.'''); /// 'retry:{"hosted":"mypub.dev"}' /// ``` /// - /// The --path --sdk and --git-