Skip to content

Instantly share code, notes, and snippets.

@ehbc221
Created June 24, 2023 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehbc221/5f37d9ae47b78c70a229a8ba1228595a to your computer and use it in GitHub Desktop.
Save ehbc221/5f37d9ae47b78c70a229a8ba1228595a to your computer and use it in GitHub Desktop.
Flutter Linting - Linter analysis_options
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