-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
32 lines (25 loc) · 1.03 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
# 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
exclude:
#- '**.freezed.dart'
- '**.g.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
sort_constructors_first: true
prefer_double_quotes: false
always_put_required_named_parameters_first: true
prefer_const_constructors: true
prefer_relative_imports: false
use_is_even_rather_than_modulo: false
avoid_web_libraries_in_flutter: false
unnecessary_library_directive: false