91 lines
3.4 KiB
YAML
Executable File
91 lines
3.4 KiB
YAML
Executable File
# 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.
|
|
include: package:flutter_lints/flutter.yaml
|
|
|
|
analyzer:
|
|
exclude:
|
|
- "**/*.g.dart"
|
|
- "**/*.freezed.dart"
|
|
# - "**/*.config.dart"
|
|
errors:
|
|
#supported options: 'ignore', 'false', 'include', 'true', 'info', 'info', and 'warning'
|
|
# ignores
|
|
# info
|
|
invalid_annotation_target: ignore
|
|
file_names: info
|
|
always_specify_types: ignore
|
|
annotate_overrides: info
|
|
avoid_function_literals_in_foreach_calls: info
|
|
avoid_unnecessary_containers: info
|
|
camel_case_types: info
|
|
dead_code: info
|
|
depend_on_referenced_packages: info
|
|
deprecated_member_use: info
|
|
empty_statements: info
|
|
library_private_types_in_public_api: info
|
|
must_be_immutable: info
|
|
no_leading_underscores_for_local_identifiers: info
|
|
non_constant_identifier_names: info
|
|
override_on_non_overriding_member: info
|
|
prefer_const_constructors: info
|
|
prefer_relative_imports: info
|
|
prefer_const_constructors_in_immutables: info
|
|
prefer_interpolation_to_compose_strings: info
|
|
prefer_typing_uninitialized_variables: info
|
|
require_trailing_commas: info
|
|
sized_box_for_whitespace: info
|
|
sort_child_properties_last: info
|
|
todo: info
|
|
unnecessary_const: info
|
|
unnecessary_import: info
|
|
unnecessary_new: info
|
|
unnecessary_string_interpolations: info
|
|
unused_element: info
|
|
unused_field: info
|
|
unused_import: info
|
|
unused_local_variable: info
|
|
use_build_context_synchronously: info
|
|
use_key_in_widget_constructors: info
|
|
|
|
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
|
|
# prefer_const_constructors: true
|
|
# prefer_const_constructors_in_immutables: true
|
|
# prefer_const_literals_to_create_immutables: true
|
|
# prefer_const_declarations: true
|
|
# prefer_final_fields: true
|
|
# prefer_final_locals: true
|
|
# - always_specify_types
|
|
- prefer_interpolation_to_compose_strings
|
|
- always_use_package_imports
|
|
# - prefer_relative_imports
|
|
- prefer_single_quotes
|
|
- require_trailing_commas
|
|
- sized_box_for_whitespace
|
|
- sort_child_properties_last
|
|
- sort_constructors_first
|
|
- sort_unnamed_constructors_first
|
|
- use_full_hex_values_for_flutter_colors
|
|
# Additional information about this file can be found at
|
|
# https://dart.dev/guides/language/analysis-options
|