Created
June 24, 2023 00:21
-
-
Save ehbc221/5f37d9ae47b78c70a229a8ba1228595a to your computer and use it in GitHub Desktop.
Flutter Linting - Linter analysis_options
This file contains hidden or 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: | |
dead_code: info | |
invalid_assignment: warning | |
missing_required_param: error | |
missing_return: error | |
must_be_immutable: error | |
exclude: | |
- build/** | |
- lib/config/injectable.config.dart | |
- lib/generated_plugin_registrant.dart | |
- lib/**/*.g.dart | |
- test/** | |
language: | |
strict-casts: true | |
strict-raw-types: true | |
linter: | |
rules: | |
always_declare_return_types: true | |
always_specify_types: true | |
avoid_classes_with_only_static_members: true | |
cancel_subscriptions: true | |
close_sinks: true | |
comment_references: true | |
lines_longer_than_80_chars: false | |
one_member_abstracts: true | |
only_throw_errors: true | |
package_api_docs: true | |
prefer_final_in_for_each: true | |
prefer_single_quotes: true | |
require_trailing_commas: true | |
sort_constructors_first: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment