-
-
Notifications
You must be signed in to change notification settings - Fork 272
/
analysis_options.yaml
65 lines (62 loc) · 1.91 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
include: package:lints/recommended.yaml
linter:
rules:
- always_declare_return_types
- avoid_empty_else
- await_only_futures
- avoid_returning_null_for_void
- cancel_subscriptions
- directives_ordering
- flutter_style_todos
- sort_constructors_first
- sort_unnamed_constructors_first
- sort_pub_dependencies
- type_init_formals
- unnecessary_brace_in_string_interps
- unnecessary_const
- unnecessary_new
- unnecessary_getters_setters
- unnecessary_null_aware_assignments
- unnecessary_null_in_if_null_operators
- unnecessary_overrides
- unnecessary_parenthesis
- unnecessary_statements
- unnecessary_string_interpolations
- unnecessary_this
- unrelated_type_equality_checks
- use_rethrow_when_possible
- valid_regexps
- void_checks
# - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219
- always_specify_types
- annotate_overrides
- prefer_single_quotes
- prefer_generic_function_type_aliases
- prefer_final_fields
analyzer:
errors:
constant_identifier_names: ignore
always_put_control_body_on_new_line: ignore
argument_type_not_assignable: ignore
omit_local_variable_types: ignore
slash_for_doc_comments: ignore
library_prefixes: ignore
unused_field: ignore
avoid_init_to_null: ignore
prefer_is_empty: ignore
unused_element: ignore
curly_braces_in_flow_control_structures: ignore
unnecessary_null_in_if_null_operators: ignore
prefer_contains: ignore
avoid_types_as_parameter_names: ignore
empty_catches: ignore
unawaited_futures: ignore
unused_import: ignore
must_be_immutable: ignore
todo: ignore
non_constant_identifier_names: ignore
unnecessary_null_comparison: ignore
exclude:
- lib/src/grammar_parser.dart
- tool/*
- test/*