{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/factories/finding.factory.ts",
          "name": "toolFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-factories-finding-factory-ts",
            "json": "https://banes-lab.com/json/source/quality/core/factories/finding.factory.ts",
            "label": "core/factories/finding.factory.ts",
            "markdown": "https://banes-lab.com/source/quality/core/factories/finding.factory.ts.md",
            "ref": "anatomy:file-quality-core-factories-finding-factory-ts"
          }
        },
        {
          "file": "core/parsers/tool.yamllint.parser.ts",
          "name": "locationOf",
          "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": [
        {
          "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"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "parseLine",
      "signature": "const parseLine = function parseLine(line: string, ecosystem: string): Finding | null {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/parsers/location.parser.ts",
          "name": "parseLines",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-location-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/location.parser.ts",
            "label": "core/parsers/location.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/location.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-location-parser-ts"
          }
        },
        {
          "file": "core/parsers/tool.yamllint.parser.ts",
          "name": "parseLine",
          "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": [
        {
          "file": "core/adapters/tool.yamllint.adapter.ts",
          "name": "runYamllint",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-adapters-tool-yamllint-adapter-ts",
            "json": "https://banes-lab.com/json/source/quality/core/adapters/tool.yamllint.adapter.ts",
            "label": "core/adapters/tool.yamllint.adapter.ts",
            "markdown": "https://banes-lab.com/source/quality/core/adapters/tool.yamllint.adapter.ts.md",
            "ref": "anatomy:file-quality-core-adapters-tool-yamllint-adapter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "parseYamllintOutput",
      "signature": "export const parseYamllintOutput = function parseYamllintOutput(output: string, ecosystem: string): Finding[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/parsers/tool.yamllint.parser.ts",
          "name": "parseLine",
          "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"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "locationOf",
      "signature": "const locationOf = function locationOf(location: string): SourceLocation {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "TOOL",
      "signature": "const TOOL = \"yamllint\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "MARKER",
      "signature": "const MARKER = \": [\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "extractRule",
      "signature": "const extractRule = function extractRule(body: string): { message: string; ruleId: string } {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "open",
      "signature": "const open = body.endsWith(\")\") ? body.lastIndexOf(\"(\") : -1;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "lastColon",
      "signature": "const lastColon = location.lastIndexOf(\":\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "beforeCol",
      "signature": "const beforeCol = location.slice(0, lastColon);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "lineColon",
      "signature": "const lineColon = beforeCol.lastIndexOf(\":\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "marker",
      "signature": "const marker = line.indexOf(MARKER);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "rest",
      "signature": "const rest = line.slice(marker + MARKER.length);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "{ message, ruleId }",
      "signature": "const { message, ruleId } = extractRule(rest.slice(rest.indexOf(\"]\") + 1).trim());"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-yamllint-parser-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "tool.yamllint.parser.ts",
  "path": "core/parsers/tool.yamllint.parser.ts",
  "ref": "anatomy:file-quality-core-parsers-tool-yamllint-parser-ts",
  "relations": [
    {
      "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": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#file-quality-core-factories-finding-factory-ts",
          "json": "https://banes-lab.com/json/source/quality/core/factories/finding.factory.ts",
          "label": "core/factories/finding.factory.ts",
          "markdown": "https://banes-lab.com/source/quality/core/factories/finding.factory.ts.md",
          "ref": "anatomy:file-quality-core-factories-finding-factory-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-location-parser-ts",
          "json": "https://banes-lab.com/json/source/quality/core/parsers/location.parser.ts",
          "label": "core/parsers/location.parser.ts",
          "markdown": "https://banes-lab.com/source/quality/core/parsers/location.parser.ts.md",
          "ref": "anatomy:file-quality-core-parsers-location-parser-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#file-quality-core-adapters-tool-yamllint-adapter-ts",
          "json": "https://banes-lab.com/json/source/quality/core/adapters/tool.yamllint.adapter.ts",
          "label": "core/adapters/tool.yamllint.adapter.ts",
          "markdown": "https://banes-lab.com/source/quality/core/adapters/tool.yamllint.adapter.ts.md",
          "ref": "anatomy:file-quality-core-adapters-tool-yamllint-adapter-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "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"
        },
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-factories",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-factories",
          "label": "core/factories",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-factories.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-factories"
        },
        {
          "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": "parser",
    "subject": "tool",
    "variant": "yamllint"
  },
  "stats": {
    "bytes": 1666,
    "callable": 4,
    "definitions": 13,
    "edges": 4,
    "exported": 1,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 2,
      "leaf": 1,
      "isolated": 10
    },
    "lines": {
      "blank": 5,
      "code": 34,
      "total": 39
    }
  },
  "summary": "34 lines of code and 13 definitions.",
  "text": "https://banes-lab.com/source/quality/core/parsers/tool.yamllint.parser.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-word-parser-ts",
      "json": "https://banes-lab.com/json/source/quality/core/parsers/word.parser.ts",
      "label": "core/parsers/word.parser.ts",
      "markdown": "https://banes-lab.com/source/quality/core/parsers/word.parser.ts.md",
      "ref": "anatomy:file-quality-core-parsers-word-parser-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-ts-prune-parser-ts",
      "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.ts-prune.parser.ts",
      "label": "core/parsers/tool.ts-prune.parser.ts",
      "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.ts-prune.parser.ts.md",
      "ref": "anatomy:file-quality-core-parsers-tool-ts-prune-parser-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/quality/core/parsers",
    "label": "core/parsers",
    "markdown": "https://banes-lab.com/api/source/quality/core/parsers.md",
    "ref": "api:source/quality/core/parsers"
  }
}
