-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathanalysis_options.yaml
36 lines (33 loc) · 1.09 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
# Defines a default set of lint rules enforced for projects at Google. For
# details and rationale, see
# https://github.com/dart-lang/pedantic#enabled-lints.
include: package:lints/recommended.yaml
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
# Uncomment to specify additional rules.
linter:
rules:
- camel_case_types
- prefer_single_quotes
analyzer:
errors:
camel_case_types: error
unrelated_type_equality_checks: error
avoid_empty_else: error
empty_catches: error
avoid_types_as_parameter_names: error
always_declare_return_types: error
empty_constructor_bodies: error
library_names: error
library_prefixes: error
prefer_single_quotes: error
unnecessary_brace_in_string_interps: error
unnecessary_const: error
unnecessary_new: error
unnecessary_null_in_if_null_operators: error
unnecessary_string_escapes: error
unnecessary_string_interpolations: error
avoid_unused_constructor_parameters: error
prefer_final_in_for_each: error
# analyzer:
# exclude:
# - path/to/excluded/files/**