forked from X-Wei/flutter_catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
31 lines (29 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
include: package:lint/analysis_options.yaml
analyzer:
exclude:
- build/**
- "lib/**/*.g.dart"
- "lib/**/*.freezed.dart"
enable-experiment:
- non-nullable
linter:
rules:
avoid_multiple_declarations_per_line: false
prefer_relative_imports: true # https://stackoverflow.com/a/66188522/12421326
always_use_package_imports: false
require_trailing_commas: false
# Rationale: in our app, the codes are for reading on mobile phones, adding
# `this` makes it easier for readers to understand which variables class
# members and which ones are not.
unnecessary_this: false
# Same as above, allow writing local variable types to improve readability
# without IDE.
omit_local_variable_types: false
# We sometimes have print statements just for demo purposes.
avoid_print: false
use_string_buffers: false
avoid_redundant_argument_values: false
prefer_const_constructors: false
avoid_dynamic_calls: false
directives_ordering: false
sort_pub_dependencies: false