-
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
31 lines (29 loc) · 851 Bytes
/
Copy pathanalysis_options.yaml
File metadata and controls
31 lines (29 loc) · 851 Bytes
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:flutter_lints/flutter.yaml
analyzer:
# Tighten typing so the API-parsing surface can't quietly use `dynamic`:
# a raw `data['mag']` or unchecked cast becomes an analysis error, not a
# runtime surprise on a renamed field.
language:
strict-casts: true
strict-raw-types: true
exclude:
# Read-only snapshot of the pre-rewrite app, kept for reference only.
- legacy/**
# Build output, incl. SPM-checked-out dependency sources.
- build/**
# Generated code (freezed / json_serializable / l10n).
- "**/*.freezed.dart"
- "**/*.g.dart"
- lib/l10n/gen/**
- android/**
- ios/**
- web/**
- windows/**
- macos/**
- linux/**
errors:
# Logging must go through core/logging Log — never print/debugPrint.
avoid_print: error
linter:
rules:
avoid_print: true