{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/producers/tool.hadolint.producer.ts",
          "name": "ruleOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-hadolint-producer-ts",
            "json": "https://banes-lab.com/json/source/quality/core/producers/tool.hadolint.producer.ts",
            "label": "core/producers/tool.hadolint.producer.ts",
            "markdown": "https://banes-lab.com/source/quality/core/producers/tool.hadolint.producer.ts.md",
            "ref": "anatomy:file-quality-core-producers-tool-hadolint-producer-ts"
          }
        },
        {
          "file": "core/producers/tool.hadolint.producer.ts",
          "name": "ruleOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-hadolint-producer-ts",
            "json": "https://banes-lab.com/json/source/quality/core/producers/tool.hadolint.producer.ts",
            "label": "core/producers/tool.hadolint.producer.ts",
            "markdown": "https://banes-lab.com/source/quality/core/producers/tool.hadolint.producer.ts.md",
            "ref": "anatomy:file-quality-core-producers-tool-hadolint-producer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "cell",
      "signature": "const cell = function cell(value: string | undefined): string | null {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/producers/tool.hadolint.producer.ts",
          "name": "cell",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-hadolint-producer-ts",
            "json": "https://banes-lab.com/json/source/quality/core/producers/tool.hadolint.producer.ts",
            "label": "core/producers/tool.hadolint.producer.ts",
            "markdown": "https://banes-lab.com/source/quality/core/producers/tool.hadolint.producer.ts.md",
            "ref": "anatomy:file-quality-core-producers-tool-hadolint-producer-ts"
          }
        },
        {
          "file": "core/producers/tool.hadolint.producer.ts",
          "name": "cell",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-hadolint-producer-ts",
            "json": "https://banes-lab.com/json/source/quality/core/producers/tool.hadolint.producer.ts",
            "label": "core/producers/tool.hadolint.producer.ts",
            "markdown": "https://banes-lab.com/source/quality/core/producers/tool.hadolint.producer.ts.md",
            "ref": "anatomy:file-quality-core-producers-tool-hadolint-producer-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "ruleOf",
      "signature": "const ruleOf = function ruleOf(line: string): CatalogRule[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "TOOL",
      "signature": "const TOOL = \"hadolint\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "VERSION",
      "signature": "const VERSION = \"readme\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "SOURCE",
      "signature": "const SOURCE = \"https://raw.githubusercontent.com/hadolint/hadolint/master/README.md\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "DOCS",
      "signature": "const DOCS = \"https://github.com/hadolint/hadolint/wiki\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "ID_COL",
      "signature": "const ID_COL = 1;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "CAT_COL",
      "signature": "const CAT_COL = 2;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "DESC_COL",
      "signature": "const DESC_COL = 3;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "ROW_MARKERS",
      "signature": "const ROW_MARKERS = [\"| [DL\", \"| [SC\"];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "ID_PREFIXES",
      "signature": "const ID_PREFIXES = [\"DL\", \"SC\"];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "cols",
      "signature": "const cols = line.split(\"|\").map((col) => col.trim());"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "idCell",
      "signature": "const idCell = cols[ID_COL] ?? \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "open",
      "signature": "const open = idCell.indexOf(\"[\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "close",
      "signature": "const close = idCell.indexOf(\"]\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "id",
      "signature": "const id = open === -1 || close === -1 ? \"\" : idCell.slice(open + 1, close);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "produce",
      "signature": "const produce = async function produce(): Promise<CatalogProduct[]> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "rules",
      "signature": "const rules = distinctRules(((await remoteText(SOURCE)) ?? \"\").split(\"\\n\").flatMap(ruleOf)).toSorted(byRuleId);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-hadolint-producer-ts",
  "language": "typescript",
  "layer": "application",
  "name": "tool.hadolint.producer.ts",
  "path": "core/producers/tool.hadolint.producer.ts",
  "ref": "anatomy:file-quality-core-producers-tool-hadolint-producer-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-producers",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-producers",
          "label": "core/producers",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-producers.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-producers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-producers",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-producers",
          "label": "core/producers",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-producers.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-producers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "producer",
    "subject": "tool",
    "variant": "hadolint"
  },
  "stats": {
    "bytes": 1988,
    "callable": 3,
    "definitions": 18,
    "edges": 2,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 1,
      "isolated": 16
    },
    "lines": {
      "blank": 5,
      "code": 48,
      "total": 53
    }
  },
  "summary": "48 lines of code and 18 definitions.",
  "text": "https://banes-lab.com/source/quality/core/producers/tool.hadolint.producer.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-htmlhint-producer-ts",
      "json": "https://banes-lab.com/json/source/quality/core/producers/tool.htmlhint.producer.ts",
      "label": "core/producers/tool.htmlhint.producer.ts",
      "markdown": "https://banes-lab.com/source/quality/core/producers/tool.htmlhint.producer.ts.md",
      "ref": "anatomy:file-quality-core-producers-tool-htmlhint-producer-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-gosec-producer-ts",
      "json": "https://banes-lab.com/json/source/quality/core/producers/tool.gosec.producer.ts",
      "label": "core/producers/tool.gosec.producer.ts",
      "markdown": "https://banes-lab.com/source/quality/core/producers/tool.gosec.producer.ts.md",
      "ref": "anatomy:file-quality-core-producers-tool-gosec-producer-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/quality/core/producers",
    "label": "core/producers",
    "markdown": "https://banes-lab.com/api/source/quality/core/producers.md",
    "ref": "api:source/quality/core/producers"
  }
}
