From eb35012e1482f6a6fc05dfd2286c0d1092ff970b Mon Sep 17 00:00:00 2001 From: GitHub Date: Fri, 23 Feb 2024 00:34:35 +0000 Subject: [PATCH] auto: Update lint rules --- lib/flutter/3.19.1/all.yaml | 22 +++++++++++++ lib/flutter/3.19.1/recommended.yaml | 49 +++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 lib/flutter/3.19.1/all.yaml create mode 100644 lib/flutter/3.19.1/recommended.yaml diff --git a/lib/flutter/3.19.1/all.yaml b/lib/flutter/3.19.1/all.yaml new file mode 100644 index 0000000..ac03875 --- /dev/null +++ b/lib/flutter/3.19.1/all.yaml @@ -0,0 +1,22 @@ +# GENERATED CODE - DO NOT MODIFY BY HAND + +include: package:yumemi_lints/dart/3.3.0/all.yaml + +linter: + rules: + # Errors + - avoid_print + - avoid_web_libraries_in_flutter + - no_logic_in_create_state + - use_build_context_synchronously + - use_key_in_widget_constructors + + # Style + - avoid_unnecessary_containers + - prefer_const_constructors + - prefer_const_constructors_in_immutables + - prefer_const_declarations + - prefer_const_literals_to_create_immutables + - sized_box_for_whitespace + - sort_child_properties_last + - use_full_hex_values_for_flutter_colors diff --git a/lib/flutter/3.19.1/recommended.yaml b/lib/flutter/3.19.1/recommended.yaml new file mode 100644 index 0000000..8be5f48 --- /dev/null +++ b/lib/flutter/3.19.1/recommended.yaml @@ -0,0 +1,49 @@ +# GENERATED CODE - DO NOT MODIFY BY HAND + +include: package:yumemi_lints/flutter/3.19.1/all.yaml + +analyzer: + language: + # Increase safety as much as possible. + strict-casts: true + strict-inference: true + strict-raw-types: true + errors: + # By including all.yaml, some rules will conflict. + # These warnings will be addressed within this file. + included_file_warning: ignore + +linter: + rules: + # Conflicts with enabling `avoid_types_on_closure_parameters`, `omit_local_variable_types`. + always_specify_types: false + + # Conflicts with enabling `strict-raw-types`. + avoid_annotating_with_dynamic: false + + # There are cases that are warned but not fixed by `dart fix`. + cascade_invocations: false + + # Don't use Flutter-style todos. + flutter_style_todos: false + + # May add more methods later. + one_member_abstracts: false + + # Conflicts with enabling `prefer_single_quotes`. + prefer_double_quotes: false + + # Using `=>` has sometimes to reduce readability. + prefer_expression_function_bodies: false + + # Conflicts with enabling `avoid_final_parameters`. + prefer_final_parameters: false + + # Conflicts with enabling `always_use_package_imports`. + prefer_relative_imports: false + + # Don't often develop package. + public_member_api_docs: false + + # Conflicts with enabling `prefer_final_locals`. + unnecessary_final: false