-
Notifications
You must be signed in to change notification settings - Fork 1
/
analysis_options.yaml
57 lines (50 loc) · 1.75 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
# This file configures the analyzer to use the lint rule set from `package:lint`
#include: package:lint/strict.yaml # For production apps
# include: package:lint/casual.yaml # For code samples, hackathons and other non-production code
include: package:lint/package.yaml # Use this for packages with public API
# You might want to exclude auto-generated files from dart analysis
analyzer:
language:
strict-casts: true
strict-raw-types: true
exclude:
- dice_parser_demo/**
#- '**.freezed.dart'
#- '**.g.dart'
errors:
always_use_package_imports: false
# You can customize the lint rules set to your own liking. A list of all rules
# can be found at https://dart-lang.github.io/linter/lints/options/options.html
linter:
rules:
- annotate_redeclares
- avoid_dynamic_calls
- avoid_final_parameters
- avoid_print
- avoid_unused_constructor_parameters
- combinators_ordering
- comment_references
- directives_ordering
- invalid_case_patterns
- leading_newlines_in_multiline_strings
- missing_code_block_language_in_doc_comment
- no_self_assignments
- omit_local_variable_types
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- prefer_expression_function_bodies
- prefer_final_in_for_each
- prefer_final_locals
- prefer_if_elements_to_conditional_expressions
- prefer_relative_imports
- prefer_single_quotes
- unnecessary_await_in_return
- unnecessary_breaks
- unnecessary_lambdas
- unnecessary_null_aware_operator_on_extension_on_nullable
- unnecessary_null_checks
- unnecessary_parenthesis
- unnecessary_statements
- unreachable_from_main