| # 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_common.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 |