-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
44 lines (38 loc) · 1.44 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
# This file configures the static analysis results for your project (errors,
# warnings, and lints).
#
# This enables the 'recommended' set of lints from `package:lints`.
# This set helps identify many issues that may lead to problems when running
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
# style and format.
#
# If you want a smaller set of lints you can change this to specify
# 'package:lints/core.yaml'. These are just the most critical lints
# (the recommended set includes the core lints).
# The core lints are also what is used by pub.dev for scoring packages.
include: package:lints/recommended.yaml
# Uncomment the following section to specify additional rules.
linter:
rules:
- always_declare_return_types
- always_put_required_named_parameters_first
- avoid_escaping_inner_quotes
- avoid_unused_constructor_parameters
- lines_longer_than_80_chars
- only_throw_errors
- parameter_assignments
- prefer_asserts_with_message
- prefer_final_in_for_each
# - prefer_final_parameters
- unnecessary_lambdas
- unnecessary_statements
- unreachable_from_main
- use_raw_strings
- use_string_buffers
# analyzer:
# exclude:
# - path/to/excluded/files/**
# For more information about the core and recommended set of lints, see
# https://dart.dev/go/core-lints
# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options