-
Notifications
You must be signed in to change notification settings - Fork 5
/
analysis_options.yaml
32 lines (25 loc) · 1.02 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
# This file configures the analyzer to use the lint rule set from `package:lint`
# For apps, use the default set
include: package:lint/analysis_options.yaml
# Packages, that may be distributed (i.e. via pub.dev) should use the package
# version, resulting in a better pub score.
# include: package:lint/analysis_options_package.yaml
# You might want to exclude auto-generated files from dart analysis
analyzer:
exclude:
- "**/*.g.dart"
- "**/*.gen.dart"
- "**/*.freezed.dart"
# 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:
# Util classes are awesome!
avoid_classes_with_only_static_members: false
# Make constructors the first thing in every class
sort_constructors_first: true
prefer_single_quotes: true
unawaited_futures: true
constant_identifier_names: false
# not correct lint: https://github.com/dart-lang/linter/issues/3286
use_decorated_box: false