-
Notifications
You must be signed in to change notification settings - Fork 13
/
analysis_options.yaml
42 lines (40 loc) · 1.26 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
# 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:pedantic/analysis_options.yaml
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
linter:
rules:
- always_declare_return_types
- camel_case_types
- hash_and_equals
- iterable_contains_unrelated_type
- list_remove_unrelated_type
- unrelated_type_equality_checks
- valid_regexps
- empty_constructor_bodies
- always_require_non_null_named_parameters
- avoid_empty_else
- avoid_print
- avoid_return_types_on_setters
- avoid_unused_constructor_parameters
- prefer_single_quotes
- unnecessary_new
- unnecessary_parenthesis
#- always_put_required_named_parameters_first
- avoid_init_to_null
- empty_catches
- unnecessary_brace_in_string_interps
- avoid_relative_lib_imports
- avoid_types_as_parameter_names
- prefer_final_locals
- file_names
- type_annotate_public_apis
- avoid_positional_boolean_parameters
- unnecessary_const
- unnecessary_overrides
#- prefer_const_constructors
#- prefer_const_declarations
# analyzer:
# exlude:
# - test/circle_testes.dart