-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
48 lines (44 loc) · 1.17 KB
/
Copy pathanalysis_options.yaml
File metadata and controls
48 lines (44 loc) · 1.17 KB
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
# Strict analysis options for Flutter
include: package:flutter_lints/flutter.yaml
analyzer:
errors:
missing_return: error
missing_required_param: error
exclude:
- build/**
- android/**
- ios/**
- web/**
- windows/**
- macos/**
- linux/**
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
linter:
rules:
# Error prevention
avoid_print: true
avoid_empty_else: true
avoid_slow_async_io: true
cancel_subscriptions: true
close_sinks: true
literal_only_boolean_expressions: true
no_adjacent_strings_in_list: true
throw_in_finally: true
unnecessary_statements: true
# Style
prefer_const_constructors: true
prefer_const_declarations: true
prefer_final_locals: true
prefer_final_in_for_each: true
prefer_single_quotes: true
sort_constructors_first: false # Disabled - purely stylistic, current ordering is fine
unawaited_futures: true
unnecessary_await_in_return: true
unnecessary_lambdas: true
unnecessary_parenthesis: true
use_string_buffers: true
# Documentation (optional - enable if you want)
# public_member_api_docs: true