2022-08-17 17:23:20 +08:00
|
|
|
include: package:flutter_lints/flutter.yaml
|
|
|
|
|
|
|
|
|
|
# Additional information about this file can be found at
|
|
|
|
|
# https://dart.dev/guides/language/analysis-options
|
2023-04-12 14:37:50 +02:00
|
|
|
linter:
|
|
|
|
|
rules:
|
|
|
|
|
- always_declare_return_types
|
|
|
|
|
- require_trailing_commas
|
|
|
|
|
- unnecessary_raw_strings
|
|
|
|
|
- use_decorated_box
|
|
|
|
|
|
|
|
|
|
analyzer:
|
|
|
|
|
exclude:
|
2025-12-23 15:12:57 +08:00
|
|
|
- lib/src/l10n/**
|
|
|
|
|
plugins:
|
|
|
|
|
- custom_lint
|
|
|
|
|
|
|
|
|
|
custom_lint:
|
|
|
|
|
enable_all_lint_rules: false
|
|
|
|
|
rules:
|
2025-12-26 17:05:02 +08:00
|
|
|
# Formatting rules
|
2025-12-23 15:12:57 +08:00
|
|
|
- newline_before_case
|
|
|
|
|
- newline_before_constructor
|
|
|
|
|
- newline_before_method
|
|
|
|
|
- newline_before_return
|
2025-12-26 17:05:02 +08:00
|
|
|
|
|
|
|
|
- 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
|