{
  "$comment": "Not a JSON Schema: the data the review file filter reads. Lives beside token-budget.json for the same reason - it is a budget-shaped decision the pipeline owns, versioned with the code that consumes it.",
  "version": 1,
  "patterns": [
    {
      "glob": "**/*.generated.*",
      "reason": "generated file - review the generator, not its output"
    },
    {
      "glob": "**/Generated/**",
      "reason": "generated tree - review the generator, not its output"
    },
    {
      "glob": "**/generated/**",
      "reason": "generated tree - review the generator, not its output"
    },
    { "glob": "**/*.pb.go", "reason": "generated file - review the generator, not its output" },
    { "glob": "**/*_pb2.py", "reason": "generated file - review the generator, not its output" },

    {
      "glob": "**/package-lock.json",
      "reason": "lockfile - resolved by the package manager, not written by hand"
    },
    {
      "glob": "**/yarn.lock",
      "reason": "lockfile - resolved by the package manager, not written by hand"
    },
    {
      "glob": "**/pnpm-lock.yaml",
      "reason": "lockfile - resolved by the package manager, not written by hand"
    },
    {
      "glob": "**/Package.resolved",
      "reason": "lockfile - resolved by the package manager, not written by hand"
    },
    {
      "glob": "**/Podfile.lock",
      "reason": "lockfile - resolved by the package manager, not written by hand"
    },
    {
      "glob": "**/Gemfile.lock",
      "reason": "lockfile - resolved by the package manager, not written by hand"
    },
    {
      "glob": "**/poetry.lock",
      "reason": "lockfile - resolved by the package manager, not written by hand"
    },
    {
      "glob": "**/Cargo.lock",
      "reason": "lockfile - resolved by the package manager, not written by hand"
    },
    {
      "glob": "**/gradle.lockfile",
      "reason": "lockfile - resolved by the package manager, not written by hand"
    },

    {
      "glob": "**/__snapshots__/**",
      "reason": "recorded snapshot - the assertion is the test that records it"
    },
    {
      "glob": "**/*.snap",
      "reason": "recorded snapshot - the assertion is the test that records it"
    },
    {
      "glob": "**/__Snapshots__/**",
      "reason": "recorded snapshot - the assertion is the test that records it"
    },
    {
      "glob": "**/ReferenceImages/**",
      "reason": "recorded snapshot - the assertion is the test that records it"
    },

    {
      "glob": "vendor/**",
      "reason": "vendored third-party source - not ours to change in this diff"
    },
    {
      "glob": "**/node_modules/**",
      "reason": "vendored third-party source - not ours to change in this diff"
    },
    {
      "glob": "Pods/**",
      "reason": "vendored third-party source - not ours to change in this diff"
    },
    {
      "glob": "**/third_party/**",
      "reason": "vendored third-party source - not ours to change in this diff"
    },

    {
      "glob": "**/*.min.js",
      "reason": "build output - unreadable by design, and the source is elsewhere in the diff"
    },
    {
      "glob": "**/*.min.css",
      "reason": "build output - unreadable by design, and the source is elsewhere in the diff"
    },
    {
      "glob": "**/*.map",
      "reason": "build output - unreadable by design, and the source is elsewhere in the diff"
    },
    {
      "glob": "dist/**",
      "reason": "build output - unreadable by design, and the source is elsewhere in the diff"
    },
    {
      "glob": "build/**",
      "reason": "build output - unreadable by design, and the source is elsewhere in the diff"
    },
    {
      "glob": ".build/**",
      "reason": "build output - unreadable by design, and the source is elsewhere in the diff"
    },
    {
      "glob": "**/DerivedData/**",
      "reason": "build output - unreadable by design, and the source is elsewhere in the diff"
    },

    { "glob": "**/*.png", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.jpg", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.jpeg", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.gif", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.webp", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.pdf", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.zip", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.ipa", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.apk", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.aab", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.mp4", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.mov", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.ttf", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.otf", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.woff", "reason": "binary asset - a text reviewer cannot read it" },
    { "glob": "**/*.woff2", "reason": "binary asset - a text reviewer cannot read it" }
  ]
}
