Skip to content

Instantly share code, notes, and snippets.

@saif97
Last active February 21, 2021 18:32
Show Gist options
  • Save saif97/25b956c9612ce83cf8bebc7f41be1ee6 to your computer and use it in GitHub Desktop.
Save saif97/25b956c9612ce83cf8bebc7f41be1ee6 to your computer and use it in GitHub Desktop.
include: package:lint/analysis_options.yaml
# https://github.com/passsy/dart-lint/blob/master/lib/analysis_options.yaml
# To enable new Rules
#linter:
# rules:
# - parameter_assignments
# first_rule: false # disable
# second_rule: true # enable
# To modify rule state
analyzer:
errors:
# Possible values ignore, info, warning and error.
missing_required_param: error
avoid_single_cascade_in_expression_statements: ignore
non_constant_identifier_names: ignore
curly_braces_in_flow_control_structures: ignore
argument_type_not_assignable: ignore
invalid_assignment: ignore
constant_identifier_names: ignore
avoid_void_async: error
file_names: ignore
avoid_returning_null_for_future: error
invalid_use_of_protected_member: error
missing_enum_constant_in_switch: error
unawaited_futures: error
sort_unnamed_constructors_first: ignore
avoid_function_literals_in_foreach_calls: ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment