Skip to content

Commit

Permalink
Enable latest lints (dart-archive/os_detect#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Nov 29, 2023
1 parent 6913069 commit 82f9541
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 46 deletions.
2 changes: 1 addition & 1 deletion pkgs/os_detect/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 2.0.2-dev
## 2.0.2-wip

- Require Dart 3.0
- Make work with VM's platform-constants.
Expand Down
45 changes: 2 additions & 43 deletions pkgs/os_detect/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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


4 changes: 2 additions & 2 deletions pkgs/os_detect/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

0 comments on commit 82f9541

Please sign in to comment.