{
  "definitions": [
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "TOOL",
      "signature": "const TOOL = \"luacheck\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "VERSION",
      "signature": "const VERSION = \"master\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "SOURCE",
      "signature": "const SOURCE = \"https://raw.githubusercontent.com/lunarmodules/luacheck/master/docsrc/warnings.rst\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "DOCS",
      "signature": "const DOCS = \"https://luacheck.readthedocs.io/en/stable/warnings.html\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "MIN_CODE_DIGITS",
      "signature": "const MIN_CODE_DIGITS = 2;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "NAME_MAX",
      "signature": "const NAME_MAX = 60;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "NAME_TRUNC",
      "signature": "const NAME_TRUNC = 57;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "ruleOf",
      "signature": "const ruleOf = function ruleOf(raw: string): CatalogRule[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "end",
      "signature": "let end = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "description",
      "signature": "const description = raw.slice(end).trim();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "code",
      "signature": "const code = raw.slice(0, end);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "produce",
      "signature": "const produce = async function produce(): Promise<CatalogProduct[]> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "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-luacheck-producer-ts",
  "language": "typescript",
  "layer": "application",
  "name": "tool.luacheck.producer.ts",
  "path": "core/producers/tool.luacheck.producer.ts",
  "ref": "anatomy:file-quality-core-producers-tool-luacheck-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"
    }
  ],
  "slots": {
    "concern": "producer",
    "subject": "tool",
    "variant": "luacheck"
  },
  "stats": {
    "bytes": 1779,
    "callable": 2,
    "definitions": 13,
    "edges": 0,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "isolated": 13
    },
    "lines": {
      "blank": 4,
      "code": 42,
      "total": 46
    }
  },
  "summary": "42 lines of code and 13 definitions.",
  "text": "https://banes-lab.com/source/quality/core/producers/tool.luacheck.producer.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-mypy-producer-ts",
      "json": "https://banes-lab.com/json/source/quality/core/producers/tool.mypy.producer.ts",
      "label": "core/producers/tool.mypy.producer.ts",
      "markdown": "https://banes-lab.com/source/quality/core/producers/tool.mypy.producer.ts.md",
      "ref": "anatomy:file-quality-core-producers-tool-mypy-producer-ts"
    },
    "previous": {
      "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"
    }
  },
  "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"
  }
}
