{
  "definitions": [
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "TOOL",
      "signature": "const TOOL = \"gosec\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "VERSION",
      "signature": "const VERSION = \"repo-master\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "SOURCE",
      "signature": "const SOURCE = \"https://raw.githubusercontent.com/securego/gosec/master/rules/rulelist.go\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "DOCS",
      "signature": "const DOCS = \"https://securego.io/docs/rules\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "ENTRY_MARKER",
      "signature": "const ENTRY_MARKER = '{\"G';"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "ruleOf",
      "signature": "const ruleOf = function ruleOf(line: string): CatalogRule[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "[, id, , desc = \"\"]",
      "signature": "const [, id, , desc = \"\"] = line.split('\"');"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "produce",
      "signature": "const produce = async function produce(): Promise<CatalogProduct[]> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "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-gosec-producer-ts",
  "language": "typescript",
  "layer": "application",
  "name": "tool.gosec.producer.ts",
  "path": "core/producers/tool.gosec.producer.ts",
  "ref": "anatomy:file-quality-core-producers-tool-gosec-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": "gosec"
  },
  "stats": {
    "bytes": 1533,
    "callable": 2,
    "definitions": 9,
    "edges": 0,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "isolated": 9
    },
    "lines": {
      "blank": 4,
      "code": 37,
      "total": 41
    }
  },
  "summary": "37 lines of code and 9 definitions.",
  "text": "https://banes-lab.com/source/quality/core/producers/tool.gosec.producer.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": {
      "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"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-producers-tool-golangci-lint-producer-ts",
      "json": "https://banes-lab.com/json/source/quality/core/producers/tool.golangci-lint.producer.ts",
      "label": "core/producers/tool.golangci-lint.producer.ts",
      "markdown": "https://banes-lab.com/source/quality/core/producers/tool.golangci-lint.producer.ts.md",
      "ref": "anatomy:file-quality-core-producers-tool-golangci-lint-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"
  }
}
