From fd3423195eab9b59379d32b3e858eb77fa57a7db Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 29 Nov 2023 08:57:44 -0800 Subject: [PATCH] Enable latest lints --- CHANGELOG.md | 2 +- analysis_options.yaml | 45 ++----------------------------------------- pubspec.yaml | 4 ++-- 3 files changed, 5 insertions(+), 46 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47355eb..edb44d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 2.0.2-dev +## 2.0.2-wip - Require Dart 3.0 - Make work with VM's platform-constants. diff --git a/analysis_options.yaml b/analysis_options.yaml index 9d91fd3..f29baf1 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,5 +1,5 @@ -# https://dart.dev/guides/language/analysis-options -include: package:lints/recommended.yaml +# https://dart.dev/tools/analysis#the-analysis-options-file +include: package:dart_flutter_team_lints/analysis_options.yaml analyzer: language: @@ -9,60 +9,19 @@ analyzer: linter: rules: - - always_declare_return_types - avoid_bool_literals_in_conditional_expressions - - avoid_catching_errors - avoid_classes_with_only_static_members - - avoid_dynamic_calls - - avoid_empty_else - avoid_private_typedef_functions - avoid_redundant_argument_values - - avoid_relative_lib_imports - avoid_returning_this - - avoid_shadowing_type_parameters - - avoid_types_as_parameter_names - avoid_unused_constructor_parameters - avoid_void_async - - await_only_futures - - camel_case_extensions - - collection_methods_unrelated_type - - comment_references - - curly_braces_in_flow_control_structures - - directives_ordering - - empty_catches - - file_names - - hash_and_equals - - lines_longer_than_80_chars - literal_only_boolean_expressions - missing_whitespace_between_adjacent_strings - no_adjacent_strings_in_list - - no_duplicate_case_values - no_runtimeType_toString - - omit_local_variable_types - - only_throw_errors - package_api_docs - - prefer_asserts_in_initializer_lists - prefer_const_declarations - - prefer_generic_function_type_aliases - - prefer_is_empty - - prefer_is_not_empty - - prefer_iterable_whereType - - prefer_relative_imports - - prefer_single_quotes - - prefer_typing_uninitialized_variables - - provide_deprecation_message - - sort_pub_dependencies - - test_types_in_equals - - throw_in_finally - - type_annotate_public_apis - - unawaited_futures - - unnecessary_lambdas - - unnecessary_overrides - - unnecessary_parenthesis - - unnecessary_statements - - unrelated_type_equality_checks - - use_is_even_rather_than_modulo - - void_checks - use_raw_strings diff --git a/pubspec.yaml b/pubspec.yaml index d6435f9..3418d32 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: os_detect -version: 2.0.2-dev +version: 2.0.2-wip description: Platform independent OS detection. repository: https://github.com/dart-lang/os_detect @@ -10,5 +10,5 @@ dependencies: meta: ^1.9.0 dev_dependencies: - lints: ^2.0.0 + dart_flutter_team_lints: ^2.0.0 test: ^1.24.0