{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/producers/tool.pylint.producer.ts",
          "name": "messagesOf",
          "source": {
            "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"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "headerOf",
      "signature": "const headerOf = function headerOf(line: string): Message {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/producers/tool.pylint.producer.ts",
          "name": "headerOf",
          "source": {
            "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"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "messagesOf",
      "signature": "const messagesOf = function messagesOf(lines: readonly string[]): Message[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/aggregators/catalog.aggregator.ts",
          "name": "tallyBy",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-aggregators-catalog-aggregator-ts",
            "json": "https://banes-lab.com/json/source/quality/core/aggregators/catalog.aggregator.ts",
            "label": "core/aggregators/catalog.aggregator.ts",
            "markdown": "https://banes-lab.com/source/quality/core/aggregators/catalog.aggregator.ts.md",
            "ref": "anatomy:file-quality-core-aggregators-catalog-aggregator-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 75,
      "name": "produce",
      "signature": "const produce = async function produce(): Promise<CatalogProduct[]> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "TOOL",
      "signature": "const TOOL = \"pylint\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "PYTHON",
      "signature": "const PYTHON = \"python\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "CATEGORY_BY_LETTER",
      "signature": "const CATEGORY_BY_LETTER: ReadonlyMap<string, string> = new Map(["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 18,
      "name": "Message",
      "signature": "interface Message {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "openParen",
      "signature": "const openParen = line.indexOf(\" (\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "closeParen",
      "signature": "const closeParen = line.indexOf(\")\", openParen);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "firstStar",
      "signature": "const firstStar = line.indexOf(\"*\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "lastStar",
      "signature": "const lastStar = line.lastIndexOf(\"*\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "messages",
      "signature": "const messages: Message[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "last",
      "signature": "const last = messages.at(-1);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "ruleOf",
      "signature": "const ruleOf = function ruleOf(message: Message, version: string): CatalogRule[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 54,
      "name": "{ code }",
      "signature": "const { code } = message;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "letter",
      "signature": "const letter = code[0] ?? \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 76,
      "name": "version",
      "signature": "const version = commandVersion(PYTHON, [\"-m\", TOOL, \"--version\"]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 77,
      "name": "lines",
      "signature": "const lines = commandOutput(PYTHON, [\"-m\", TOOL, \"--list-msgs\"])"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 80,
      "name": "rules",
      "signature": "const rules = messagesOf(lines)"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-pylint-producer-ts",
  "language": "typescript",
  "layer": "application",
  "name": "tool.pylint.producer.ts",
  "path": "core/producers/tool.pylint.producer.ts",
  "ref": "anatomy:file-quality-core-producers-tool-pylint-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#file-quality-core-aggregators-catalog-aggregator-ts",
          "json": "https://banes-lab.com/json/source/quality/core/aggregators/catalog.aggregator.ts",
          "label": "core/aggregators/catalog.aggregator.ts",
          "markdown": "https://banes-lab.com/source/quality/core/aggregators/catalog.aggregator.ts.md",
          "ref": "anatomy:file-quality-core-aggregators-catalog-aggregator-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-aggregators",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-aggregators",
          "label": "core/aggregators",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-aggregators.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-aggregators"
        },
        {
          "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": "pylint"
  },
  "stats": {
    "bytes": 3096,
    "callable": 4,
    "definitions": 19,
    "edges": 2,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 2,
      "isolated": 16
    },
    "lines": {
      "blank": 7,
      "code": 85,
      "total": 92
    }
  },
  "summary": "85 lines of code and 19 definitions.",
  "text": "https://banes-lab.com/source/quality/core/producers/tool.pylint.producer.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-revive-producer-ts",
      "json": "https://banes-lab.com/json/source/quality/core/producers/tool.revive.producer.ts",
      "label": "core/producers/tool.revive.producer.ts",
      "markdown": "https://banes-lab.com/source/quality/core/producers/tool.revive.producer.ts.md",
      "ref": "anatomy:file-quality-core-producers-tool-revive-producer-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-prettier-producer-ts",
      "json": "https://banes-lab.com/json/source/quality/core/producers/tool.prettier.producer.ts",
      "label": "core/producers/tool.prettier.producer.ts",
      "markdown": "https://banes-lab.com/source/quality/core/producers/tool.prettier.producer.ts.md",
      "ref": "anatomy:file-quality-core-producers-tool-prettier-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"
  }
}
