)]}'
{
  "commit": "ae9963e802446d643f5a280b420d5afa6ee33932",
  "tree": "f69c49a7a819e759e3c757c402fabd310ece3ea3",
  "parents": [
    "277ba13e45cd5b3d7bd9f3bb11bb4877dfafebcc"
  ],
  "author": {
    "name": "Ben Konyi",
    "email": "bkonyi@google.com",
    "time": "Wed Aug 12 21:17:24 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Aug 12 21:17:24 2026 +0000"
  },
  "message": "[analysis] Reland \"Added initial implementation of the flutter_analyzer_plugin (#175679)\" (#191022)\n\nRelands #175679 (reverted in #179766).\n\nFixes https://github.com/flutter/flutter/issues/175276.\n\n### Context \u0026 Fixes\nThe original PR was reverted because the `Linux linux_unopt` engine\nbuilder timed out during postsubmit.\n\nRoot cause \u0026 changes in this reland:\n1. **Scoped Plugin Configuration**: Plugin activation is now configured\ndirectly in target package `analysis_options.yaml` files\n(`packages/flutter/lib`, `packages/flutter/test`,\n`packages/flutter_tools`) rather than at the monorepo root\n`analysis_options.yaml`. This avoids leaking plugin configuration into\nsubtrees such as `engine/src/flutter` where standard pub resolution and\nframework plugin rules do not apply.\n2. **Analyzer AST Modernization**: Updated `ClassDeclaration` pattern\nmatching in `render_box_intrinsics.dart` from `name` to `namePart` for\ncompatibility with `package:analyzer` 10.1+.\n3. **State Element Caching**: Updated `isPublicStateSubtype` in\n`protect_public_state_subtypes.dart` to cache `InterfaceElement` rather\nthan instantiated `DartType`, ensuring all `State\u003cT\u003e` subclasses are\nproperly analyzed regardless of generic type arguments.\n4. **Defensive Guard**: Added null check on `ConstructorElement` in\n`no_stopwatches.dart`.\n5. **Path \u0026 Test Fixes**: Corrected relative plugin path in\n`packages/flutter/test/analysis_options.yaml` and test method naming in\n`no_stopwatches_test.dart`.\n\n## Pre-launch Checklist\n\n- [x] I read the [Contributor Guide] and followed the process outlined\nthere for submitting PRs.\n- [x] I read the [Tree Hygiene] wiki page, which explains my\nresponsibilities.\n- [x] I read and followed the [Flutter Style Guide], including [Features\nwe expect every widget to implement].\n- [x] I signed the [CLA].\n- [x] I listed at least one issue that this PR fixes in the description\nabove.\n- [x] I updated/added relevant documentation (doc comments with `///`).\n- [x] I added new tests to check the change I am making, or this PR is\n[test-exempt].\n- [x] All existing and new tests are passing.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "74a5e1e3b0eeb3d2a11797940acffcc1286fe93e",
      "old_mode": 33188,
      "old_path": "analysis_options.yaml",
      "new_id": "f4a11f84615f9bff70ea122cedfa7ab1e87cf3cf",
      "new_mode": 33188,
      "new_path": "analysis_options.yaml"
    },
    {
      "type": "modify",
      "old_id": "1151980a6599fd30bef3cb6444efb825457f8517",
      "old_mode": 33188,
      "old_path": "dev/bots/suite_runners/run_framework_tests.dart",
      "new_id": "4376a2c37a79c14cb372d23825abd2a493852ab2",
      "new_mode": 33188,
      "new_path": "dev/bots/suite_runners/run_framework_tests.dart"
    },
    {
      "type": "modify",
      "old_id": "4342be20da6d88d910652be15deaf77a1d6dabad",
      "old_mode": 33188,
      "old_path": "dev/bots/test/analyze-test-input/root/packages/flutter/lib/renderbox_intrinsics.dart",
      "new_id": "23e7330fb9fdb3a1d6c74b304d41acb231f4c588",
      "new_mode": 33188,
      "new_path": "dev/bots/test/analyze-test-input/root/packages/flutter/lib/renderbox_intrinsics.dart"
    },
    {
      "type": "delete",
      "old_id": "1ed5cc8ea31e9606653ef8f9e2c59d32cd82b663",
      "old_mode": 33188,
      "old_path": "dev/bots/test/analyze-test-input/root/packages/foo/fake_render_box.dart",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "3a85790408401f7e9d4f00d07006a207a00a3392",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/.gitignore"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "96be4c93510ee0332f0b519e898e6d142d65c2da",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/README.md"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2b89a7d3e3ba7d7ecae2d1d7ef12a507f6a46649",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/analysis_options.yaml"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "3426d073c7e1963e4ab6f98f49ecd322c7785b5c",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/lib/main.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "790068e70897c87f0c047e34dccc99d1d315e8e1",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/lib/src/rules/avoid_future_catch_error.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "906b960cf3234d8c271708153de3a4f33a4bcfb1",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/lib/src/rules/no_double_clamp.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4d8fd422f1e97b575c18e9e20c0d9bf88cd452ba",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/lib/src/rules/no_stopwatches.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "0ec52305d74b67417b46c7d8faf494594ddc7eb3",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/lib/src/rules/protect_public_state_subtypes.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4769c70d78a3b544c706c79992056600f67ee58f",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/lib/src/rules/render_box_intrinsics.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "00535dfe8cad6fb8ea912bc2a1d07ebfd53cb1cc",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/pubspec.yaml"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c558c0763f37bcda3e252b032ccb637e509aae11",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/test/avoid_future_catch_error_test.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d49beee78f898fec72679708773ac12dd7e15c47",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/test/no_double_clamp_test.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "01cf483cc900bcb0cd268ccb68b37bbb5f2b1983",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/test/no_stopwatches_test.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "87374e48d8f7230ec2ac366fe514063dcec3e5cc",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/test/package_mixins/external_stopwatches_mixin.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8f322e02c2bf2c30631ff436bc6b23d5d57c2241",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/test/package_mixins/meta_mixin.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ba144746433e445a8f7a6303dda8041319422e54",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/test/package_mixins/widgets_mixin.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "60eeec43a8763497c49055e4c40bb187538de749",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/test/protect_public_state_subtypes_test.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b9a7b82e3984e90f5922dedb6f7f5be82c0f0aea",
      "new_mode": 33188,
      "new_path": "dev/flutter_analyzer_plugin/test/render_box_intrinsics_test.dart"
    },
    {
      "type": "modify",
      "old_id": "60b5bafebd4da8f0e7d240e1837e798d5bca2359",
      "old_mode": 33188,
      "old_path": "packages/flutter/lib/analysis_options.yaml",
      "new_id": "8ab79bb346b204c12a5f5ac9d159789740ce1857",
      "new_mode": 33188,
      "new_path": "packages/flutter/lib/analysis_options.yaml"
    },
    {
      "type": "modify",
      "old_id": "594830c78b9bea3673b0b7bd56b74bc7eb9f4a0d",
      "old_mode": 33188,
      "old_path": "packages/flutter/test/analysis_options.yaml",
      "new_id": "1c1299074891497aa3b9f946600b81db03f852e4",
      "new_mode": 33188,
      "new_path": "packages/flutter/test/analysis_options.yaml"
    },
    {
      "type": "modify",
      "old_id": "71e95192ecdd5d3f76e8a03f0feaf4a9db624a91",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/analysis_options.yaml",
      "new_id": "e8af77b87aae648c63062ae2a1539644901ea79a",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/analysis_options.yaml"
    },
    {
      "type": "modify",
      "old_id": "2cf2ac6bdeb694710f1d00a7f83600b4cb95de2e",
      "old_mode": 33188,
      "old_path": "pubspec.lock",
      "new_id": "216238260a0dd28f885e82bab01e0283bafe188d",
      "new_mode": 33188,
      "new_path": "pubspec.lock"
    },
    {
      "type": "modify",
      "old_id": "dccaf20d41a4578378c72f28673855056dfc82c1",
      "old_mode": 33188,
      "old_path": "pubspec.yaml",
      "new_id": "b2863416faf5b5ef42269b7ffc447fc657f5e414",
      "new_mode": 33188,
      "new_path": "pubspec.yaml"
    }
  ]
}
