-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathanalysis_options.yaml
32 lines (30 loc) · 1.07 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
# Specify analysis options for all of flutter/cocoon
#
# For a list of lints, see: http://dart-lang.github.io/linter/lints/.
# For guidelines on configuring static analysis, see: https://dart.dev/tools/analysis.
#
# https://github.com/dart-lang/ecosystem/blob/main/pkgs/dart_flutter_team_lints/lib/analysis_options.yaml
include: package:dart_flutter_team_lints/analysis_options.yaml
analyzer:
errors:
# TODO(matanlurey): Ignore for now, we have a lot of pre-existing violations.
avoid_dynamic_calls: ignore
comment_references: ignore
lines_longer_than_80_chars: ignore
only_throw_errors: ignore
exclude:
- ".dart_tool/**"
- "**/*.g.dart"
- "**/*.pb.dart"
- "**/*.pbjson.dart"
- "**/*.pbgrpc.dart"
- "**/*.pbserver.dart"
- "**/*.pbenum.dart"
- "lib/generated_plugin_registrant.dart"
- "test/**/mocks.mocks.dart"
# Additional rules that do not *conflict* (i.e. are additive) with dart_flutter_team_lints.
linter:
rules:
# - avoid_private_typedef_functions
# - avoid_unused_constructor_parameters
- prefer_final_locals