-
Notifications
You must be signed in to change notification settings - Fork 2
/
analysis_options.yaml
54 lines (51 loc) · 1.65 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
# This file configures the static analysis results for your project (errors,
# warnings, and lints).
#
# This enables the 'recommended' set of lints from `package:lints`.
# This set helps identify many issues that may lead to problems when running
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
# style and format.
#
# If you want a smaller set of lints you can change this to specify
# 'package:lints/core.yaml'. These are just the most critical lints
# (the recommended set includes the core lints).
# The core lints are also what is used by pub.dev for scoring packages.
include: package:lints/recommended.yaml
analyzer:
exclude:
- "**/*.freezed.dart"
- "**/*.g.dart"
errors:
invalid_annotation_target: ignore
linter:
rules:
- avoid_null_checks_in_equality_operators
- avoid_unused_constructor_parameters
- await_only_futures
- camel_case_types
- cancel_subscriptions
- comment_references
- constant_identifier_names
- control_flow_in_finally
- directives_ordering
- empty_statements
- hash_and_equals
- implementation_imports
- iterable_contains_unrelated_type
- library_names
- library_prefixes
- list_remove_unrelated_type
- non_constant_identifier_names
- overridden_fields
- package_api_docs
- package_names
- package_prefixed_library_names
- prefer_final_fields
- prefer_generic_function_type_aliases
- prefer_typing_uninitialized_variables
- test_types_in_equals
- throw_in_finally
- unnecessary_brace_in_string_interps
- unrelated_type_equality_checks
- lines_longer_than_80_chars
- avoid_relative_lib_imports