{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "unescapeXml",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "errorFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        },
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "errorFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        },
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "errorFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        },
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "errorFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "attr",
      "signature": "const attr = function attr(tag: string, name: string): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "attr",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        },
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "fileStep",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "unescapeXml",
      "signature": "const unescapeXml = function unescapeXml(value: string): string {"
    },
    {
      "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.scalastyle.parser.ts",
          "name": "attr",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        },
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "attr",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        },
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "attr",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        },
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "attr",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "errorStep",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "errorFinding",
      "signature": "const errorFinding = function errorFinding(tag: string, currentFile: string, ecosystem: string): Finding {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "errorStep",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        },
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "fileStep",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "parseScalastyleXml",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "stepFrom",
      "signature": "const stepFrom = function stepFrom(xml: string, state: ScanState, ecosystem: string): ScanStep | null {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "unescapeXml",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "stepFrom",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "fileStep",
      "signature": "const fileStep = function fileStep(xml: string, fileIdx: number, state: ScanState): ScanStep {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "errorFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "stepFrom",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "errorStep",
      "signature": "const errorStep = function errorStep(xml: string, errIdx: number, state: ScanState, ecosystem: string): ScanStep {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/parsers/tool.scalastyle.parser.ts",
          "name": "stepFrom",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.scalastyle.parser.ts",
            "label": "core/parsers/tool.scalastyle.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-parser-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 77,
      "name": "parseScalastyleXml",
      "signature": "export const parseScalastyleXml = function parseScalastyleXml(xml: string, ecosystem: string): Finding[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 5,
      "name": "TOOL",
      "signature": "const TOOL = \"scalastyle\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "FILE_MARKER",
      "signature": "const FILE_MARKER = '<file name=\"';"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "ERROR_MARKER",
      "signature": "const ERROR_MARKER = \"<error \";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "QUOTE",
      "signature": "const QUOTE = '\"';"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "XML_ENTITIES",
      "signature": "const XML_ENTITIES: readonly (readonly [string, string])[] = ["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 17,
      "name": "ScanState",
      "signature": "interface ScanState {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 22,
      "name": "ScanStep",
      "signature": "interface ScanStep {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "key",
      "signature": "const key = `${name}=\"`;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "from",
      "signature": "const from = tag.indexOf(key);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 51,
      "name": "start",
      "signature": "const start = fileIdx + FILE_MARKER.length;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "end",
      "signature": "const end = xml.indexOf(QUOTE, start);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "tagEnd",
      "signature": "const tagEnd = xml.indexOf(\">\", errIdx);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "stop",
      "signature": "const stop = tagEnd === -1 ? xml.length : tagEnd;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "fileIdx",
      "signature": "const fileIdx = xml.indexOf(FILE_MARKER, state.cursor);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "errIdx",
      "signature": "const errIdx = xml.indexOf(ERROR_MARKER, state.cursor);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 73,
      "name": "takeFile",
      "signature": "const takeFile = fileIdx !== -1 && (errIdx === -1 || fileIdx < errIdx);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 78,
      "name": "findings",
      "signature": "const findings: Finding[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 79,
      "name": "initial",
      "signature": "const initial: ScanState = { currentFile: \"\", cursor: 0 };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 80,
      "name": "step",
      "signature": "let step = stepFrom(xml, initial, ecosystem);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-scalastyle-parser-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "tool.scalastyle.parser.ts",
  "path": "core/parsers/tool.scalastyle.parser.ts",
  "ref": "anatomy:file-quality-core-parsers-tool-scalastyle-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"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "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": "scalastyle"
  },
  "stats": {
    "bytes": 3195,
    "callable": 7,
    "definitions": 26,
    "edges": 11,
    "exported": 4,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 5,
      "leaf": 1,
      "entry": 1,
      "isolated": 19
    },
    "lines": {
      "blank": 10,
      "code": 78,
      "total": 88
    }
  },
  "summary": "78 lines of code and 26 definitions.",
  "text": "https://banes-lab.com/source/quality/core/parsers/tool.scalastyle.parser.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-semgrep-parser-ts",
      "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.semgrep.parser.ts",
      "label": "core/parsers/tool.semgrep.parser.ts",
      "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.semgrep.parser.ts.md",
      "ref": "anatomy:file-quality-core-parsers-tool-semgrep-parser-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-tool-ruff-parser-ts",
      "json": "https://banes-lab.com/json/source/quality/core/parsers/tool.ruff.parser.ts",
      "label": "core/parsers/tool.ruff.parser.ts",
      "markdown": "https://banes-lab.com/source/quality/core/parsers/tool.ruff.parser.ts.md",
      "ref": "anatomy:file-quality-core-parsers-tool-ruff-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"
  }
}
