-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
63 lines (55 loc) · 1.91 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
55
56
57
58
59
60
61
62
63
include: package:lints/recommended.yaml
# Rules: https://dart.dev/tools/linter-rules
# Dart Core Rules: https://github.com/dart-lang/lints/blob/main/lib/core.yaml
# Dart Recommended Rules: https://github.com/dart-lang/lints/blob/main/lib/recommended.yaml
analyzer:
errors:
# custom rules - errors
no_duplicate_case_values: error
directives_ordering: error
prefer_relative_imports: error
always_declare_return_types: error
avoid_multiple_declarations_per_line: error
avoid_unused_constructor_parameters: error
prefer_single_quotes: error
avoid_positional_boolean_parameters: error
require_trailing_commas: error
# custom rules - warnings
use_named_constants: warning
# default rules - errors
camel_case_extensions: error
camel_case_types: error
non_constant_identifier_names: error
empty_catches: error
empty_constructor_bodies: error
file_names: error
library_names: error
library_prefixes: error
prefer_final_fields: error
avoid_returning_null_for_void: error
prefer_const_constructors: error
prefer_const_constructors_in_immutables: error
# default rules - warnings
annotate_overrides: warning
avoid_init_to_null: warning
prefer_contains: warning
prefer_is_empty: warning
always_put_required_named_parameters_first: warning
avoid_renaming_method_parameters: warning
use_function_type_syntax_for_parameters: warning
# default rules - info
prefer_const_literals_to_create_immutables: info
prefer_const_declarations: info
linter:
rules:
- require_trailing_commas
- no_duplicate_case_values
- prefer_relative_imports
- always_declare_return_types
- avoid_multiple_declarations_per_line
- avoid_unused_constructor_parameters
- prefer_single_quotes
- avoid_positional_boolean_parameters
- use_named_constants
- eol_at_end_of_file
- directives_ordering