56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
include: package:flutter_lints/flutter.yaml
|
|
|
|
# Additional information about this file can be found at
|
|
# https://dart.dev/guides/language/analysis-options
|
|
linter:
|
|
rules:
|
|
- require_trailing_commas
|
|
|
|
- prefer_collection_literals
|
|
- prefer_final_fields
|
|
- prefer_final_in_for_each
|
|
- prefer_final_locals
|
|
|
|
- sized_box_for_whitespace
|
|
- use_decorated_box
|
|
|
|
- unnecessary_parenthesis
|
|
- unnecessary_await_in_return
|
|
- unnecessary_raw_strings
|
|
|
|
- avoid_unnecessary_containers
|
|
- avoid_redundant_argument_values
|
|
- avoid_unused_constructor_parameters
|
|
|
|
- always_declare_return_types
|
|
|
|
- sort_constructors_first
|
|
- unawaited_futures
|
|
|
|
analyzer:
|
|
exclude:
|
|
- lib/src/l10n/**
|
|
plugins:
|
|
- custom_lint
|
|
|
|
custom_lint:
|
|
enable_all_lint_rules: false
|
|
rules:
|
|
# Formatting rules
|
|
- newline_before_case
|
|
- newline_before_constructor
|
|
- newline_before_method
|
|
- newline_before_return
|
|
|
|
- no_equal_then_else
|
|
- no_equal_conditions
|
|
- avoid_contradictory_expressions
|
|
- avoid_constant_conditions
|
|
- avoid_collection_equality_checks
|
|
- avoid_collection_methods_with_unrelated_types
|
|
# - avoid_late_context
|
|
- avoid_mounted_in_setstate
|
|
- proper_super_calls
|
|
- dispose_fields
|
|
# - avoid_undisposed_instances
|
|
# - dispose_class_fields
|