{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/detector.strings.ts",
          "name": "missingDetectors",
          "source": {
            "href": "https://banes-lab.com/anatomy/secrets#file-secrets-configuration-strings-detector-strings-ts",
            "json": "https://banes-lab.com/json/source/secrets/configuration/strings/detector.strings.ts",
            "label": "configuration/strings/detector.strings.ts",
            "markdown": "https://banes-lab.com/source/secrets/configuration/strings/detector.strings.ts.md",
            "ref": "anatomy:file-secrets-configuration-strings-detector-strings-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "loadDetectors",
      "signature": "export const loadDetectors = async function loadDetectors(): Promise<readonly Detector[]> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "folder",
      "signature": "const folder = absolutePath(\"project.secrets.detectors\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "files",
      "signature": "const files = readdirSync(folder)"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "detectors",
      "signature": "const detectors = registeredDetectors();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "missing",
      "signature": "const missing = DETECTOR_KINDS.filter((kind) => !detectors.some((detector) => detector.kind === kind));"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "detectedKinds",
      "signature": "export const detectedKinds = function detectedKinds(value: string, detectors: readonly Detector[]): readonly string[] {"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/secrets#file-secrets-core-loaders-detector-loader-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "detector.loader.ts",
  "path": "core/loaders/detector.loader.ts",
  "ref": "anatomy:file-secrets-core-loaders-detector-loader-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/secrets#folder-secrets-core-loaders",
          "json": "https://banes-lab.com/json/anatomy/secrets/folder-secrets-core-loaders",
          "label": "core/loaders",
          "markdown": "https://banes-lab.com/anatomy/secrets/folder-secrets-core-loaders.md",
          "ref": "chapter:/anatomy/secrets#folder-secrets-core-loaders"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/secrets#file-secrets-configuration-strings-detector-strings-ts",
          "json": "https://banes-lab.com/json/source/secrets/configuration/strings/detector.strings.ts",
          "label": "configuration/strings/detector.strings.ts",
          "markdown": "https://banes-lab.com/source/secrets/configuration/strings/detector.strings.ts.md",
          "ref": "anatomy:file-secrets-configuration-strings-detector-strings-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/secrets#folder-secrets-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/secrets/folder-secrets-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/secrets/folder-secrets-configuration-strings.md",
          "ref": "chapter:/anatomy/secrets#folder-secrets-configuration-strings"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "loader",
    "subject": "detector",
    "variant": null
  },
  "stats": {
    "bytes": 1408,
    "callable": 2,
    "definitions": 6,
    "edges": 1,
    "exported": 6,
    "files": 1,
    "findings": {},
    "flows": {
      "entry": 1,
      "isolated": 5
    },
    "lines": {
      "blank": 2,
      "code": 28,
      "total": 30
    }
  },
  "summary": "28 lines of code and 6 definitions.",
  "text": "https://banes-lab.com/source/secrets/core/loaders/detector.loader.ts.txt",
  "tree": "secrets",
  "siblings": {
    "next": null,
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/secrets/core/loaders",
    "label": "core/loaders",
    "markdown": "https://banes-lab.com/api/source/secrets/core/loaders.md",
    "ref": "api:source/secrets/core/loaders"
  }
}
