From 3ea1f05460e37ace55962f39c6dfb6f6710b0d87 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Fri, 8 Oct 2021 07:30:42 +0100 Subject: [PATCH] revert linter changes --- packages/simplex_app/analysis_options.yaml | 64 ++++++++++++++-------- 1 file changed, 40 insertions(+), 24 deletions(-) diff --git a/packages/simplex_app/analysis_options.yaml b/packages/simplex_app/analysis_options.yaml index 61b6c4de1..7904c8104 100644 --- a/packages/simplex_app/analysis_options.yaml +++ b/packages/simplex_app/analysis_options.yaml @@ -1,29 +1,45 @@ -# This file configures the analyzer, which statically analyzes Dart code to -# check for errors, warnings, and lints. -# -# The issues identified by the analyzer are surfaced in the UI of Dart-enabled -# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be -# invoked from the command line by running `flutter analyze`. - -# The following line activates a set of recommended lints for Flutter apps, -# packages, and plugins designed to encourage good coding practices. +# https://dart.dev/guides/language/analysis-options include: package:flutter_lints/flutter.yaml linter: - # The lint rules applied to this project can be customized in the - # section below to disable rules from the `package:flutter_lints/flutter.yaml` - # included above or to enable additional rules. A list of all available lints - # and their documentation is published at # https://dart-lang.github.io/linter/lints/index.html. - # - # Instead of disabling a lint rule for the entire project in the - # section below, it can also be suppressed for a single line of code - # or a specific dart file by using the `// ignore: name_of_lint` and - # `// ignore_for_file: name_of_lint` syntax on the line or in the file - # producing the lint. rules: - # avoid_print: false # Uncomment to disable the `avoid_print` rule - # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule - -# Additional information about this file can be found at -# https://dart.dev/guides/language/analysis-options + prefer_double_quotes: true + always_declare_return_types: true + avoid_dynamic_calls: true + avoid_empty_else: true + avoid_relative_lib_imports: true + avoid_shadowing_type_parameters: true + avoid_slow_async_io: true + avoid_types_as_parameter_names: true + await_only_futures: true + camel_case_extensions: true + camel_case_types: true + cancel_subscriptions: true + curly_braces_in_flow_control_structures: true + directives_ordering: true + empty_catches: true + hash_and_equals: true + iterable_contains_unrelated_type: true + list_remove_unrelated_type: true + no_adjacent_strings_in_list: true + no_duplicate_case_values: true + package_api_docs: true + package_prefixed_library_names: true + prefer_generic_function_type_aliases: true + prefer_is_empty: true + prefer_is_not_empty: true + prefer_iterable_whereType: true + prefer_typing_uninitialized_variables: true + sort_child_properties_last: true + test_types_in_equals: true + throw_in_finally: true + unawaited_futures: true + unnecessary_import: true + unnecessary_null_aware_assignments: true + unnecessary_statements: true + unnecessary_type_check: true + unrelated_type_equality_checks: true + unsafe_html: true + use_full_hex_values_for_flutter_colors: true + valid_regexps: true