-
Notifications
You must be signed in to change notification settings - Fork 170
/
analysis_options.yaml
47 lines (45 loc) · 1.54 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
include: package:flutter_lints/flutter.yaml
analyzer:
# Do not disable errors here. pub.dev ignores the lint error configuration here
# when analyzing the code, causing issues to appear in the pub.dev analysis.
exclude:
- lib/models/*.freezed.dart
- lib/models/*.g.dart
- lib/models/**/*.freezed.dart
- lib/models/**/*.g.dart
- api_tester/**
linter:
rules:
avoid_redundant_argument_values: true
avoid_relative_lib_imports: true
avoid_types_as_parameter_names: true
avoid_unnecessary_containers: true
avoid_unused_constructor_parameters: true
avoid_void_async: true
cascade_invocations: true
deprecated_consistency: true
directives_ordering: true
omit_local_variable_types: true
prefer_const_constructors: true
prefer_const_constructors_in_immutables: true
prefer_const_declarations: true
prefer_expression_function_bodies: true
prefer_final_in_for_each: true
prefer_final_locals: true
prefer_is_not_empty: true
prefer_is_not_operator: true
prefer_iterable_whereType: true
prefer_relative_imports: true
prefer_single_quotes: true
prefer_spread_collections: true
provide_deprecation_message: true
require_trailing_commas: true
unnecessary_brace_in_string_interps: true
unnecessary_lambdas: true
unnecessary_null_aware_assignments: true
unnecessary_null_checks: true
unnecessary_parenthesis: true
unnecessary_statements: true
unnecessary_string_escapes: true
unnecessary_string_interpolations: true
unnecessary_this: true