{
  "definitions": [
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "TOOL",
      "signature": "const TOOL = \"revive\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "VERSION",
      "signature": "const VERSION = \"master\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "SOURCE",
      "signature": "const SOURCE = \"https://raw.githubusercontent.com/mgechev/revive/master/RULES_DESCRIPTIONS.md\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "DOCS",
      "signature": "const DOCS = \"https://revive.run/r#\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "HEADER_PREFIX",
      "signature": "const HEADER_PREFIX = \"## \";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "ALPHA",
      "signature": "const ALPHA: ReadonlySet<string> = new Set(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 13,
      "name": "Section",
      "signature": "interface Section {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "sectionsOf",
      "signature": "const sectionsOf = function sectionsOf(lines: readonly string[]): Section[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "sections",
      "signature": "const sections: Section[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "last",
      "signature": "const last = sections.at(-1);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "line",
      "signature": "const line = raw.trim();"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "ruleOf",
      "signature": "const ruleOf = function ruleOf(section: Section): CatalogRule[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "{ description, header }",
      "signature": "const { description, header } = section;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "produce",
      "signature": "const produce = async function produce(): Promise<CatalogProduct[]> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 54,
      "name": "rules",
      "signature": "const rules = sectionsOf(((await remoteText(SOURCE)) ?? \"\").split(\"\\n\"))"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-revive-producer-ts",
  "language": "typescript",
  "layer": "application",
  "name": "tool.revive.producer.ts",
  "path": "core/producers/tool.revive.producer.ts",
  "ref": "anatomy:file-quality-core-producers-tool-revive-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": "revive"
  },
  "stats": {
    "bytes": 2129,
    "callable": 3,
    "definitions": 15,
    "edges": 0,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "isolated": 15
    },
    "lines": {
      "blank": 6,
      "code": 54,
      "total": 60
    }
  },
  "summary": "54 lines of code and 15 definitions.",
  "text": "https://banes-lab.com/source/quality/core/producers/tool.revive.producer.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-rubocop-producer-ts",
      "json": "https://banes-lab.com/json/source/quality/core/producers/tool.rubocop.producer.ts",
      "label": "core/producers/tool.rubocop.producer.ts",
      "markdown": "https://banes-lab.com/source/quality/core/producers/tool.rubocop.producer.ts.md",
      "ref": "anatomy:file-quality-core-producers-tool-rubocop-producer-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-pylint-producer-ts",
      "json": "https://banes-lab.com/json/source/quality/core/producers/tool.pylint.producer.ts",
      "label": "core/producers/tool.pylint.producer.ts",
      "markdown": "https://banes-lab.com/source/quality/core/producers/tool.pylint.producer.ts.md",
      "ref": "anatomy:file-quality-core-producers-tool-pylint-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"
  }
}
