Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
move to pkg:lints (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Nov 20, 2021
1 parent 5d162cb commit f457371
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 37 deletions.
40 changes: 5 additions & 35 deletions firebase/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,80 +1,50 @@
include: package:pedantic/analysis_options.yaml
include: package:lints/recommended.yaml

analyzer:
#strong-mode:
# implicit-casts: false

linter:
rules:
- always_declare_return_types
- avoid_bool_literals_in_conditional_expressions
- avoid_catching_errors
- avoid_classes_with_only_static_members
- avoid_function_literals_in_foreach_calls
- avoid_private_typedef_functions
- avoid_redundant_argument_values
- avoid_renaming_method_parameters
- avoid_returning_null
- avoid_returning_null_for_future
- avoid_returning_null_for_void
- avoid_returning_this
- avoid_single_cascade_in_expression_statements
- avoid_unused_constructor_parameters
- avoid_void_async
- await_only_futures
- camel_case_types
- cancel_subscriptions
#- cascade_invocations
- comment_references
- constant_identifier_names
- control_flow_in_finally
- directives_ordering
- empty_statements
- file_names
- hash_and_equals
- implementation_imports
- invariant_booleans
- iterable_contains_unrelated_type
- join_return_with_assignment
#- lines_longer_than_80_chars
- list_remove_unrelated_type
- literal_only_boolean_expressions
- missing_whitespace_between_adjacent_strings
- no_adjacent_strings_in_list
- no_runtimeType_toString
- non_constant_identifier_names
- omit_local_variable_types
- only_throw_errors
- overridden_fields
- package_api_docs
- package_names
- package_prefixed_library_names
- prefer_asserts_in_initializer_lists
- prefer_const_constructors
- prefer_const_declarations
- prefer_expression_function_bodies
- prefer_final_locals
- prefer_function_declarations_over_variables
- prefer_initializing_formals
- prefer_inlined_adds
- prefer_interpolation_to_compose_strings
- prefer_is_not_operator
- prefer_null_aware_operators
- prefer_relative_imports
- prefer_typing_uninitialized_variables
- prefer_void_to_null
- provide_deprecation_message
- prefer_single_quotes
- sort_pub_dependencies
- test_types_in_equals
- throw_in_finally
#- type_annotate_public_apis
- unawaited_futures
- unnecessary_await_in_return
- unnecessary_brace_in_string_interps
- unnecessary_getters_setters
- unnecessary_lambdas
- unnecessary_null_aware_assignments
- unnecessary_overrides
- unnecessary_parenthesis
- unnecessary_statements
- unnecessary_string_interpolations
- use_is_even_rather_than_modulo
- use_string_buffers
- void_checks
4 changes: 2 additions & 2 deletions firebase/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: firebase
description: Firebase libraries for Dart on the web and server
version: 9.0.2
version: 9.0.3-dev
repository: https://github.com/FirebaseExtended/firebase-dart

environment:
Expand All @@ -18,6 +18,6 @@ dev_dependencies:
build_test: ^2.0.0
build_web_compilers: ^3.0.0
googleapis_auth: ^1.0.0
lints: ^1.0.0
path: ^1.3.9
pedantic: ^1.3.0
test: ^1.16.0

0 comments on commit f457371

Please sign in to comment.