-
Notifications
You must be signed in to change notification settings - Fork 1
/
analysis_options.yaml
53 lines (41 loc) · 1.49 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
include:
package:lint/analysis_options_package.yaml
# ------ List of linting rules ----- #
# https://dart-lang.github.io/linter/lints/index.html
# https://pub.dev/packages/lint
# ------------------------------------- #
linter:
rules:
# ------ Disable individual rules ----- #
# --- #
# Turn off what you don't like. #
# ------------------------------------- #
# Use parameter order as in json response
always_put_required_named_parameters_first: true
# Util classes are awesome!
avoid_classes_with_only_static_members: false
# ------ Enable individual rules ------ #
# --- #
# These rules here are good but too #
# opinionated to enable them by default #
# ------------------------------------- #
# Make constructors the first thing in every class
sort_constructors_first: true
# The new tabs vs. spaces. Choose wisely
prefer_single_quotes: true
# Good packages document everything
public_member_api_docs: false
# Blindly follow the Flutter code style, which prefers types everywhere
always_specify_types: true
parameter_assignments: true
# ------ Analyze errors behavior ----- #
# Options value: ignore | info | warning | error
# ------------------------------------- #
analyzer:
language:
strict-inference: true
strict-raw-types: true
exclude:
- lib/**/**/**.g.dart
errors:
parameter_assignments: error