Skip to content

Instantly share code, notes, and snippets.

@mawippel
Last active July 21, 2020 22:22
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 mawippel/d12654679b8514b5fbf7ef2d81285341 to your computer and use it in GitHub Desktop.
Save mawippel/d12654679b8514b5fbf7ef2d81285341 to your computer and use it in GitHub Desktop.
Exemplo de analysis_options.yaml
# See: https://dart-lang.github.io/linter/lints/
include: package:lint/analysis_options.yaml
analyzer:
strong-mode:
implicit-casts: true
errors:
missing_required_param: warning
missing_return: warning
todo: ignore
exclude:
- lib/**.g.dart
linter:
rules:
always_declare_return_types: true
always_put_required_named_parameters_first: true
always_specify_types: false
annotate_overrides: true
avoid_bool_literals_in_conditional_expressions: true
avoid_classes_with_only_static_members: false
avoid_print: true
avoid_unnecessary_containers: true
await_only_futures: true
curly_braces_in_flow_control_structures: true
directives_ordering: true
empty_catches: true
file_names: true
omit_local_variable_types: true
prefer_adjacent_string_concatenation: true
prefer_foreach: true
prefer_is_empty: true
prefer_is_not_empty: true
prefer_is_not_operator: true
prefer_spread_collections: true
sort_constructors_first: true
sort_pub_dependencies: true
type_annotate_public_apis: false
unawaited_futures: true
unnecessary_lambdas: true
unnecessary_null_in_if_null_operators: true
unnecessary_overrides: true
unnecessary_parenthesis: true
unnecessary_this: true
use_function_type_syntax_for_parameters: false
use_rethrow_when_possible: true
use_setters_to_change_properties: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment