{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/producers/tool.staticcheck.producer.ts",
          "name": "prefixOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-staticcheck-producer-ts",
            "json": "https://banes-lab.com/json/source/quality/core/producers/tool.staticcheck.producer.ts",
            "label": "core/producers/tool.staticcheck.producer.ts",
            "markdown": "https://banes-lab.com/source/quality/core/producers/tool.staticcheck.producer.ts.md",
            "ref": "anatomy:file-quality-core-producers-tool-staticcheck-producer-ts"
          }
        },
        {
          "file": "core/producers/tool.staticcheck.producer.ts",
          "name": "ruleOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-staticcheck-producer-ts",
            "json": "https://banes-lab.com/json/source/quality/core/producers/tool.staticcheck.producer.ts",
            "label": "core/producers/tool.staticcheck.producer.ts",
            "markdown": "https://banes-lab.com/source/quality/core/producers/tool.staticcheck.producer.ts.md",
            "ref": "anatomy:file-quality-core-producers-tool-staticcheck-producer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "isUpperAscii",
      "signature": "const isUpperAscii = function isUpperAscii(ch: string | undefined): boolean {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/producers/tool.staticcheck.producer.ts",
          "name": "isUpperAscii",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-staticcheck-producer-ts",
            "json": "https://banes-lab.com/json/source/quality/core/producers/tool.staticcheck.producer.ts",
            "label": "core/producers/tool.staticcheck.producer.ts",
            "markdown": "https://banes-lab.com/source/quality/core/producers/tool.staticcheck.producer.ts.md",
            "ref": "anatomy:file-quality-core-producers-tool-staticcheck-producer-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "prefixOf",
      "signature": "const prefixOf = function prefixOf(code: string): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/producers/tool.staticcheck.producer.ts",
          "name": "isUpperAscii",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-staticcheck-producer-ts",
            "json": "https://banes-lab.com/json/source/quality/core/producers/tool.staticcheck.producer.ts",
            "label": "core/producers/tool.staticcheck.producer.ts",
            "markdown": "https://banes-lab.com/source/quality/core/producers/tool.staticcheck.producer.ts.md",
            "ref": "anatomy:file-quality-core-producers-tool-staticcheck-producer-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "ruleOf",
      "signature": "const ruleOf = function ruleOf(line: string, version: string): CatalogRule[] {"
    },
    {
      "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": 55,
      "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 = \"staticcheck\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "DOCS",
      "signature": "const DOCS = \"https://staticcheck.dev/docs/checks/#\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "FAMILY",
      "signature": "const FAMILY: ReadonlyMap<string, string> = new Map(["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "text",
      "signature": "const text = line.trim();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "space",
      "signature": "const space = text.indexOf(\" \");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "code",
      "signature": "const code = space === -1 ? \"\" : text.slice(0, space);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "prefix",
      "signature": "const prefix = prefixOf(code);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "version",
      "signature": "const version = commandVersion(TOOL, [\"-version\"]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "rules",
      "signature": "const rules = commandOutput(TOOL, [\"-list-checks\"])"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-staticcheck-producer-ts",
  "language": "typescript",
  "layer": "application",
  "name": "tool.staticcheck.producer.ts",
  "path": "core/producers/tool.staticcheck.producer.ts",
  "ref": "anatomy:file-quality-core-producers-tool-staticcheck-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": "staticcheck"
  },
  "stats": {
    "bytes": 2178,
    "callable": 4,
    "definitions": 13,
    "edges": 3,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 3,
      "isolated": 9
    },
    "lines": {
      "blank": 6,
      "code": 64,
      "total": 70
    }
  },
  "summary": "64 lines of code and 13 definitions.",
  "text": "https://banes-lab.com/source/quality/core/producers/tool.staticcheck.producer.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-yamllint-producer-ts",
      "json": "https://banes-lab.com/json/source/quality/core/producers/tool.yamllint.producer.ts",
      "label": "core/producers/tool.yamllint.producer.ts",
      "markdown": "https://banes-lab.com/source/quality/core/producers/tool.yamllint.producer.ts.md",
      "ref": "anatomy:file-quality-core-producers-tool-yamllint-producer-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-sqlfluff-producer-ts",
      "json": "https://banes-lab.com/json/source/quality/core/producers/tool.sqlfluff.producer.ts",
      "label": "core/producers/tool.sqlfluff.producer.ts",
      "markdown": "https://banes-lab.com/source/quality/core/producers/tool.sqlfluff.producer.ts.md",
      "ref": "anatomy:file-quality-core-producers-tool-sqlfluff-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"
  }
}
