-
Notifications
You must be signed in to change notification settings - Fork 30.3k
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
27 lines (24 loc) · 1.1 KB
/
analysis_options.yaml
File metadata and controls
27 lines (24 loc) · 1.1 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
# In general, the regular analysis_options.yaml file found at the root of the
# repo also applies to engine code.
#
# This file applies some engine-specific settings to the general rule set.
# Deviations from the general rules are rare. They should be kept to a
# minimum to ensure a unified style across the repo.
#
# The reasoning for deviating from the general style must be documented below.
include: ../../../analysis_options.yaml
analyzer:
exclude:
- examples
# Fixture depends on dart:ui and raises false positives.
- flutter_frontend_server/test/fixtures/lib/main.dart
- prebuilts
- third_party
- shell/platform/fuchsia
linter:
rules:
avoid_equals_and_hash_code_on_mutable_classes: false # cannot import the meta package here
missing_whitespace_between_adjacent_strings: false # too many false positives
public_member_api_docs: true # dart:ui is public API
use_string_in_part_of_directives: false # needs to be evaluated, dart:ui frequently uses non-strings
prefer_initializing_formals: false # https://github.com/flutter/flutter/issues/182617#issuecomment-3928680061