Created
February 5, 2023 02:28
-
-
Save NirmalAriyathilake/1daa3f3944acc7023ffe82191f4d04c9 to your computer and use it in GitHub Desktop.
Flutter custom analysis options using flutter_lints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include: package:flutter_lints/flutter.yaml | |
analyzer: | |
errors: | |
todo: ignore | |
exclude: | |
- generated_plugin_registrant.dart | |
- "**/*.freezed.dart" | |
- "**/*.g.dart" | |
- "**/*.config.dart" | |
- "lib/generated/**" | |
linter: | |
rules: | |
- prefer_relative_imports | |
- sort_child_properties_last | |
- file_names | |
- join_return_with_assignment | |
- prefer_mixin | |
- sort_constructors_first | |
- avoid_classes_with_only_static_members | |
- always_put_control_body_on_new_line | |
- avoid_empty_else | |
- avoid_init_to_null | |
- avoid_unused_constructor_parameters | |
- camel_case_types | |
- non_constant_identifier_names | |
- constant_identifier_names | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment