forked from zulip/zulip-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
27 lines (24 loc) · 955 Bytes
/
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
# For docs on this file, see:
# https://dart.dev/tools/analysis
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
# Skip analysis on Pigeon-generated code, because it currently
# triggers some stylistic lints and they aren't actionable for us.
# (Some lints could signal a bug, which would be good to catch...
# but typically those are lints Flutter upstream keeps enabled, so
# if Pigeon tripped them it'd immediately get caught.)
# TODO(pigeon) re-enable lints once clean: https://github.com/flutter/flutter/issues/145633
- lib/host/*.g.dart
language:
strict-inference: true
strict-raw-types: true
strict-casts: true
linter:
# For a list of all available lints, with docs, see:
# https://dart-lang.github.io/linter/lints/index.html.
rules:
always_declare_return_types: true
no_literal_bool_comparisons: true
prefer_relative_imports: true
unnecessary_statements: true