)]}'
{
  "commit": "6efda21b63ec034e0e390b7002e7266274fa30ac",
  "tree": "b2250b7cfd45bc5c454a2f7671d2956a21a58feb",
  "parents": [
    "b67d387a505df4d68db20a0fc013e7d658c2ec2b"
  ],
  "author": {
    "name": "Fabian Meumertzheim",
    "email": "fabian@meumertzhe.im",
    "time": "Tue Nov 17 17:20:33 2026 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Nov 17 17:20:33 2026 +0100"
  },
  "message": "Don\u0027t flag conditional expressions that call rules as no-effect (#1541)\n\nBUILD files don\u0027t support `if` statements, so a conditional expression\nis the only way to choose between rules inline, as in rules_java\u0027s\n`toolchains/BUILD`:\n\n```starlark\ntoolchain_type(\n    name \u003d \"toolchain_type\",\n) if bazel_features.java._toolchain_type_in_rules_java else alias(\n    name \u003d \"toolchain_type\",\n    actual \u003d \"@bazel_tools//tools/jdk:toolchain_type\",\n)\n```\n\n`no-effect` flagged such statements even though they call a rule, which\nrequired a `# buildifier: disable\u003dno-effect` comment. A conditional\nexpression statement is now treated like a call if either of its\nbranches is a call, possibly nested in parentheses or further\nconditional expressions. Conditional expressions without calls are still\nflagged.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0ff7bd9a57e29166efda14198a1e6ba433e5463f",
      "old_mode": 33188,
      "old_path": "warn/warn_control_flow.go",
      "new_id": "3ef13e217c35374be0af12cc89e72711bfbcd0c3",
      "new_mode": 33188,
      "new_path": "warn/warn_control_flow.go"
    },
    {
      "type": "modify",
      "old_id": "876f870134e9b58da85128a0ad01e4d00d652987",
      "old_mode": 33188,
      "old_path": "warn/warn_control_flow_test.go",
      "new_id": "3111f0479a755ad59d0098554eb9065696297e6c",
      "new_mode": 33188,
      "new_path": "warn/warn_control_flow_test.go"
    }
  ]
}
