forked from bizz84/starter_architecture_flutter_firebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
100 lines (97 loc) · 3.74 KB
/
analysis_options.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
analyzer:
strong-mode:
implicit-casts: false
implicit-dynamic: false
errors:
# Otherwise cause the import of all_lint_rules to warn because of some rules conflicts.
# The conflicts are fixed in this file instead, so we can safely ignore the warning.
included_file_warning: ignore
# treat missing required parameters as a warning (not a hint)
missing_required_param: warning
# treat missing returns as a warning (not a hint)
missing_return: warning
# allow having TODOs in the code
todo: ignore
# Ignore analyzer hints for updating pubspecs when using Future or
# Stream and not importing dart:async
# Please see https://github.com/flutter/flutter/pull/24528 for details.
sdk_version_async_exported_from_core: ignore
# Custom errors to be ignored
implicit_dynamic_type: ignore
#invalid_assignment: ignore
implicit_dynamic_map_literal: ignore
always_put_control_body_on_new_line: ignore
exclude:
- "bin/cache/**"
# the following two are relative to the stocks example and the flutter package respectively
# see https://github.com/dart-lang/sdk/issues/28463
- "lib/i18n/messages_*.dart"
- "lib/src/http/**"
linter:
rules:
# navigator.pop inside a closure requires this
unnecessary_lambdas: false
# It's ok
cascade_invocations: false
# Ignored in tests
missing_whitespace_between_adjacent_strings: false
# In the future
type_annotate_public_apis: false
# It's ok
avoid_print: false
# Not including author name in small projects
flutter_style_todos: false
# Sometimes used
avoid_as: false
# Not sure how to address this
use_raw_strings: false
# Need to fix this
comment_references: false
# Ok to use a class
one_member_abstracts: false
# Need to fix this
avoid_annotating_with_dynamic: false
# Disabled for type inference
always_specify_types: false
# non-required Key often precedes required named parameters
always_put_required_named_parameters_first: false
# Catch all often used in project
avoid_catches_without_on_clauses: false
# Ok to be explicit
avoid_redundant_argument_values: false
# Still some instances of this in the project
lines_longer_than_80_chars: false
# Often used in local variables
unnecessary_final: false
# Not always done with factory constructors
sort_constructors_first: false
# Ok to be explicit
omit_local_variable_types: false
# For build methods
prefer_expression_function_bodies: false
# I use double out of habit
prefer_int_literals: false
# sometimes using `with` syntax
prefer_mixin: false
# Codebase uses mostly single quotes
avoid_escaping_inner_quotes: false
prefer_double_quotes: false
# Need to fix this sometime (easier to copy paste files across projects)
prefer_relative_imports: false
# A lot of documentation missing
public_member_api_docs: false
# Not enforced
sort_child_properties_last: false
# Many constructors not declared for widgets that take no arguments
use_key_in_widget_constructors: false
# Disable: DO reference all public properties in debug method implementations.
diagnostic_describe_all_properties: false