Last active
October 30, 2022 13:40
-
-
Save sakanafuto/604ecafa73f6c5dbc72a922d09d7ccd2 to your computer and use it in GitHub Desktop.
7ofu's analysis_options.yaml from https://zenn.dev/10_tofu_01/articles/flutter_comparison_linter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include: package:flutter_lints/flutter.yaml | |
analyzer: | |
strong-mode: | |
implicit-casts: false | |
implicit-dynamic: false | |
errors: | |
missing_required_param: warning | |
missing_return: warning | |
argument_type_not_assignable: warning | |
language: | |
strict-inference: true | |
strict-raw-types: true | |
exclude: | |
- lib/**/*.g.dart | |
- lib/**/*.gql.dart | |
- lib/**/*.gql.g.dart | |
- lib/**/*.freezed.dart | |
linter: | |
rules: | |
- always_declare_return_types | |
- always_put_control_body_on_new_line | |
- avoid_bool_literals_in_conditional_expressions | |
- avoid_catches_without_on_clauses | |
- avoid_catching_errors | |
- avoid_classes_with_only_static_members | |
- avoid_double_and_int_checks | |
- avoid_dynamic_calls | |
- avoid_field_initializers_in_const_classes | |
- avoid_final_parameters | |
- avoid_implementing_value_types | |
- avoid_js_rounded_ints | |
- avoid_multiple_declarations_per_line | |
- avoid_positional_boolean_parameters | |
- avoid_private_typedef_functions | |
- avoid_redundant_argument_values | |
- avoid_returning_null | |
- avoid_returning_this | |
- avoid_setters_without_getters | |
- avoid_slow_async_io | |
- avoid_type_to_string | |
- avoid_unused_constructor_parameters | |
- avoid_void_async | |
- cancel_subscriptions | |
- cascade_invocations | |
- cast_nullable_to_non_nullable | |
- close_sinks | |
- comment_references | |
- deprecated_consistency | |
- directives_ordering | |
- eol_at_end_of_file | |
- flutter_style_todos | |
- invariant_booleans | |
- join_return_with_assignment | |
- lines_longer_than_80_chars | |
- literal_only_boolean_expressions | |
- no_adjacent_strings_in_list | |
- no_default_cases | |
- noop_primitive_operations | |
- omit_local_variable_types | |
- one_member_abstracts | |
- only_throw_errors | |
- package_api_docs | |
- parameter_assignments | |
- prefer_asserts_in_initializer_lists | |
- prefer_constructors_over_static_methods | |
- prefer_final_in_for_each | |
- prefer_final_locals | |
- prefer_foreach | |
- prefer_int_literals | |
- prefer_single_quotes | |
- require_trailing_commas | |
- secure_pubspec_urls | |
- sized_box_shrink_expand | |
- sort_constructors_first | |
- sort_pub_dependencies | |
- sort_unnamed_constructors_first | |
- test_types_in_equals | |
- throw_in_finally | |
- tighten_type_of_initializing_formals | |
- type_annotate_public_apis | |
- unawaited_futures | |
- unnecessary_await_in_return | |
- unnecessary_lambdas | |
- unnecessary_null_aware_operator_on_extension_on_nullable | |
- unnecessary_null_checks | |
- unnecessary_parenthesis | |
- unnecessary_statements | |
- unnecessary_to_list_in_spreads | |
- unsafe_html | |
- use_colored_box | |
- use_decorated_box | |
- use_enums | |
- use_is_even_rather_than_modulo | |
- use_late_for_private_fields_and_variables | |
- use_named_constants | |
- use_setters_to_change_properties | |
- use_string_buffers | |
- use_super_parameters | |
- use_test_throws_matchers | |
- use_to_and_as_if_applicable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment