-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
43 lines (40 loc) · 1.3 KB
/
Copy pathanalysis_options.yaml
File metadata and controls
43 lines (40 loc) · 1.3 KB
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
# 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:
language:
strict-casts: true
strict-raw-types: true
strict-inference: true
errors:
missing_required_param: error
missing_return: error
unused_import: error
unused_local_variable: error
dead_code: error
unused_catch_clause: error
unused_catch_stack: error
unused_element: error
unused_field: error
avoid_dynamic_calls: error
linter:
rules:
- avoid_print
- prefer_const_constructors
- prefer_const_declarations
- prefer_final_fields
- sort_constructors_first
- always_put_required_named_parameters_first
- directives_ordering
- always_use_package_imports
- sort_pub_dependencies