)]}'
{
  "commit": "4a435a90a39174d0168a01e6301a11a24ad711c7",
  "tree": "3765b019922a77beb84c437bc9798f89a95cf3ca",
  "parents": [
    "94f030037d8ae16f854231fb36ce768e65de1eab"
  ],
  "author": {
    "name": "TypeScript Team",
    "email": "noreply@google.com",
    "time": "Wed Jan 22 02:13:36 2020 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Wed Jan 22 02:13:54 2020 -0800"
  },
  "message": "Adds a tsetse rule to prevent constructing Sets using a string.\n\nDisallows `new Set(\u0027abc\u0027)` since that results in a Set containing \u0027a\u0027, \u0027b\u0027 and \u0027c\u0027.\n\n- If that really is the intention of the code, it can be converted to `new Set(\u0027abc\u0027 as Iterable\u003cstring\u003e)`\n- If the intention was to have a Set containing \u0027abc\u0027, it should be `new Set([\u0027abc\u0027])`\n\nPiperOrigin-RevId: 290914197\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "87b7fd2e40e5db214afe6177ebbbafe076590fdd",
      "old_mode": 33188,
      "old_path": "internal/tsetse/error_code.ts",
      "new_id": "10d36c55fd3928bc25971243c142453a740717da",
      "new_mode": 33188,
      "new_path": "internal/tsetse/error_code.ts"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "44087baf2818f9337f83290f5e113a8830b6c103",
      "new_mode": 33188,
      "new_path": "internal/tsetse/rules/ban_string_initialized_sets_rule.ts"
    },
    {
      "type": "modify",
      "old_id": "a2b76d40775c8b26abe200e81c13e36149aed8c5",
      "old_mode": 33188,
      "old_path": "internal/tsetse/runner.ts",
      "new_id": "8e2926aa9d0d0c025d1d89227852f5ff3bfbd975",
      "new_mode": 33188,
      "new_path": "internal/tsetse/runner.ts"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e9a188aee1b5a18f7eb120742d8214b515622455",
      "new_mode": 33188,
      "new_path": "internal/tsetse/tests/ban_string_initialized_sets/negatives.ts"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a4ec6955b972f041bc7b2504853263682e305d1f",
      "new_mode": 33188,
      "new_path": "internal/tsetse/tests/ban_string_initialized_sets/positives.ts"
    }
  ]
}
