{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/parsers/tool.yamllint.parser.ts",
          "name": "parseYamllintOutput",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-yamllint-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.yamllint.parser.ts",
            "label": "core/parsers/tool.yamllint.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.yamllint.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-yamllint-parser-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "runYamllint",
      "signature": "const runYamllint = async function runYamllint(context: RunnerContext): Promise<RunResult> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "SECTION",
      "signature": "const SECTION = \"yamllint\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "DEFAULT_COMMAND",
      "signature": "const DEFAULT_COMMAND = \"python -m yamllint\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "DEFAULT_EXTENDS",
      "signature": "const DEFAULT_EXTENDS = \"default\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "govlabYamllintConfig",
      "signature": "export const govlabYamllintConfig = async function govlabYamllintConfig("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "config",
      "signature": "const config = await loadGovlabConfig(consumerRoot);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "section",
      "signature": "const section = sectionOf(config, SECTION);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "inline",
      "signature": "const inline: Record<string, unknown> = { extends: stringField(section, \"extends\", DEFAULT_EXTENDS) };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "{ rules }",
      "signature": "const { rules } = section;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "ignore",
      "signature": "const ignore = withMasterExclude(config, stringArrayField(section, \"ignore\"));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "{ command, config }",
      "signature": "const { command, config } = await govlabYamllintConfig(context.root);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "{ bin, prefix }",
      "signature": "const { bin, prefix } = commandOf(command, SECTION);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "advisory",
      "signature": "const advisory = toolAdvisory(context, SECTION, commandHint(SECTION, bin));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "args",
      "signature": "const args = [...prefix, \"-d\", JSON.stringify(config), \"-f\", \"parsable\", ...context.paths];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "result",
      "signature": "const result = spawnTool(bin, args, { cwd: context.root, encoding: \"utf8\", shell: false });"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "terminal",
      "signature": "const terminal = terminalOf(advisory, result);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "output",
      "signature": "const output = `${result.stdout}${result.stderr}`;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/quality#file-quality-core-adapters-tool-yamllint-adapter-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "tool.yamllint.adapter.ts",
  "path": "core/adapters/tool.yamllint.adapter.ts",
  "ref": "anatomy:file-quality-core-adapters-tool-yamllint-adapter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-adapters",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-adapters",
          "label": "core/adapters",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-adapters.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-adapters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-yamllint-parser-ts",
          "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.yamllint.parser.ts",
          "label": "core/parsers/tool.yamllint.parser.ts",
          "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.yamllint.parser.ts.md",
          "ref": "anatomy:file-quality-core-parsers-tool-yamllint-parser-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-parsers",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-parsers",
          "label": "core/parsers",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-parsers.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-parsers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "adapter",
    "subject": "tool",
    "variant": "yamllint"
  },
  "stats": {
    "bytes": 2617,
    "callable": 2,
    "definitions": 17,
    "edges": 1,
    "exported": 6,
    "files": 1,
    "findings": {},
    "flows": {
      "entry": 1,
      "isolated": 16
    },
    "lines": {
      "blank": 4,
      "code": 47,
      "total": 51
    }
  },
  "summary": "47 lines of code and 17 definitions.",
  "text": "https://banes-lab.com/source/quality/core/adapters/tool.yamllint.adapter.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": null,
    "previous": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-adapters-tool-ts-prune-adapter-ts",
      "json": "https://banes-lab.com/json/source/quality/core/adapters/tool.ts-prune.adapter.ts",
      "label": "core/adapters/tool.ts-prune.adapter.ts",
      "markdown": "https://banes-lab.com/source/quality/core/adapters/tool.ts-prune.adapter.ts.md",
      "ref": "anatomy:file-quality-core-adapters-tool-ts-prune-adapter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/quality/core/adapters",
    "label": "core/adapters",
    "markdown": "https://banes-lab.com/api/source/quality/core/adapters.md",
    "ref": "api:source/quality/core/adapters"
  }
}
