{
  "repository": "eosphoros-ai/DB-GPT",
  "ref": "0cf4ebf26dd4d9026cdea34f5806a3f2f574603b",
  "methods": [
    {
      "slug": "formal",
      "title": "Formal verification and model checking"
    },
    {
      "slug": "static_analysis",
      "title": "Static analysis"
    },
    {
      "slug": "testing",
      "title": "Testing"
    },
    {
      "slug": "formatting",
      "title": "Formatting and hygiene"
    },
    {
      "slug": "supply_chain",
      "title": "Supply chain"
    },
    {
      "slug": "unclassified",
      "title": "Unclassified"
    }
  ],
  "verifications": [
    {
      "tool": "eslint",
      "method": "static_analysis",
      "commands": [
        "eslint **/*.{ts,tsx} --fix"
      ],
      "triggers": [
        "local"
      ],
      "evidence": [
        {
          "path": "web/package.json",
          "locator": "scripts.lint"
        },
        {
          "path": "web/package.json",
          "locator": "scripts.verify:dashboard"
        },
        {
          "path": "web/package.json",
          "locator": "devDependencies: eslint"
        },
        {
          "path": "web/.eslintrc.js",
          "locator": "config file"
        }
      ],
      "upstream": "https://github.com/eslint/eslint",
      "docs": "https://eslint.org/docs/latest/use/command-line-interface#exit-codes",
      "exit_codes": {
        "0": "no errors",
        "1": "linting errors found",
        "2": "configuration problem or internal error"
      },
      "autofix": true,
      "declared_only": false
    },
    {
      "tool": "tsc",
      "method": "static_analysis",
      "commands": [
        "tsc --target ES2020 --module commonjs --moduleResolution node --esModuleInterop --skipLibCheck --strict --outDir node_modules/.cache/react-final-tests utils/react-agent-final.ts utils/react-agent-final.test.ts",
        "tsc --target ES2020 --module commonjs --moduleResolution node --esModuleInterop --skipLibCheck --strict --outDir node_modules/.cache/final-presentation-tests utils/final-presentation.ts utils/final-presentation.test.ts",
        "tsc --project tsconfig.report-graph-test.json --moduleResolution node",
        "tsc --target ES2020 --module commonjs --moduleResolution node --esModuleInterop --skipLibCheck --strict --outDir node_modules/.cache/report-html-tests new-components/report/report-html.ts new-components/report/report-html.test.ts"
      ],
      "triggers": [
        "local"
      ],
      "evidence": [
        {
          "path": "web/package.json",
          "locator": "scripts.test"
        },
        {
          "path": "web/package.json",
          "locator": "scripts.test:react-final"
        },
        {
          "path": "web/package.json",
          "locator": "scripts.test:final-presentation"
        },
        {
          "path": "web/package.json",
          "locator": "scripts.test:report-graph"
        },
        {
          "path": "web/package.json",
          "locator": "scripts.test:report-html"
        },
        {
          "path": "web/package.json",
          "locator": "dependencies: typescript"
        }
      ],
      "upstream": "https://github.com/microsoft/TypeScript",
      "docs": null,
      "exit_codes": {},
      "autofix": false,
      "declared_only": false
    },
    {
      "tool": "flake8",
      "method": "static_analysis",
      "commands": [],
      "triggers": [],
      "evidence": [
        {
          "path": ".flake8",
          "locator": "config file"
        }
      ],
      "upstream": "https://github.com/PyCQA/flake8",
      "docs": null,
      "exit_codes": {},
      "autofix": false,
      "declared_only": true
    },
    {
      "tool": "mypy",
      "method": "static_analysis",
      "commands": [],
      "triggers": [],
      "evidence": [
        {
          "path": ".mypy.ini",
          "locator": "config file"
        }
      ],
      "upstream": "https://github.com/python/mypy",
      "docs": "https://mypy.readthedocs.io/en/stable/command_line.html",
      "exit_codes": {
        "0": "no type errors",
        "1": "type errors found",
        "2": "crash or invalid invocation"
      },
      "autofix": false,
      "declared_only": true
    },
    {
      "tool": "ruff-check",
      "method": "static_analysis",
      "commands": [],
      "triggers": [],
      "evidence": [
        {
          "path": "pyproject.toml",
          "locator": "[tool.ruff]"
        }
      ],
      "upstream": "https://github.com/astral-sh/ruff",
      "docs": "https://docs.astral.sh/ruff/linter/#exit-codes",
      "exit_codes": {
        "0": "no violations",
        "1": "violations found",
        "2": "invalid configuration, CLI options or internal error"
      },
      "autofix": true,
      "declared_only": true
    },
    {
      "tool": "ci-matrix",
      "method": "testing",
      "commands": [
        "test-python (os: 2, python-version: 2)"
      ],
      "triggers": [
        "ci"
      ],
      "evidence": [
        {
          "path": ".github/workflows/test-python.yml",
          "locator": "jobs.test-python.strategy.matrix"
        }
      ],
      "upstream": "https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/run-job-variations",
      "docs": null,
      "exit_codes": {},
      "autofix": false,
      "declared_only": false
    },
    {
      "tool": "playwright",
      "method": "testing",
      "commands": [
        "playwright test --config playwright.dashboard.config.ts",
        "playwright test --config playwright.report.config.ts"
      ],
      "triggers": [
        "local"
      ],
      "evidence": [
        {
          "path": "web/package.json",
          "locator": "scripts.test:e2e:dashboard"
        },
        {
          "path": "web/package.json",
          "locator": "scripts.test:e2e:report"
        },
        {
          "path": "web/package.json",
          "locator": "devDependencies: @playwright/test"
        }
      ],
      "upstream": "https://github.com/microsoft/playwright",
      "docs": null,
      "exit_codes": {},
      "autofix": false,
      "declared_only": false
    },
    {
      "tool": "pytest",
      "method": "testing",
      "commands": [
        "pytest dbgpt --cov=dbgpt --cov-report=xml:coverage-$EXPR-$EXPR.xml --cov-report=html:htmlcov-$EXPR-$EXPR --junitxml=pytest_report-$EXPR-$EXPR.xml"
      ],
      "triggers": [
        "ci"
      ],
      "evidence": [
        {
          "path": ".github/workflows/test-python.yml",
          "locator": "jobs.test-python.steps[3] (Run tests)"
        },
        {
          "path": "pyproject.toml",
          "locator": "[tool.pytest]"
        }
      ],
      "upstream": "https://github.com/pytest-dev/pytest",
      "docs": "https://docs.pytest.org/en/stable/reference/exit-codes.html",
      "exit_codes": {
        "0": "all tests passed",
        "1": "some tests failed",
        "2": "interrupted by the user",
        "3": "internal error",
        "4": "command line usage error",
        "5": "no tests were collected"
      },
      "autofix": false,
      "declared_only": false
    },
    {
      "tool": "vitest",
      "method": "testing",
      "commands": [
        "vitest run --config vitest.dashboard.config.mts"
      ],
      "triggers": [
        "local"
      ],
      "evidence": [
        {
          "path": "web/package.json",
          "locator": "scripts.test:dashboard"
        },
        {
          "path": "web/package.json",
          "locator": "scripts.verify:dashboard"
        },
        {
          "path": "web/package.json",
          "locator": "devDependencies: vitest"
        }
      ],
      "upstream": "https://github.com/vitest-dev/vitest",
      "docs": null,
      "exit_codes": {},
      "autofix": false,
      "declared_only": false
    },
    {
      "tool": "prettier",
      "method": "formatting",
      "commands": [
        "prettier --write **/*.{ts,tsx}"
      ],
      "triggers": [
        "local"
      ],
      "evidence": [
        {
          "path": "web/package.json",
          "locator": "scripts.format"
        },
        {
          "path": "web/package.json",
          "locator": "devDependencies: prettier"
        },
        {
          "path": "web/.prettierrc.js",
          "locator": "config file"
        }
      ],
      "upstream": "https://github.com/prettier/prettier",
      "docs": "https://prettier.io/docs/cli#exit-codes",
      "exit_codes": {
        "0": "everything formatted",
        "1": "something was not formatted (--check)",
        "2": "prettier error"
      },
      "autofix": true,
      "declared_only": false
    },
    {
      "tool": null,
      "method": "unclassified",
      "commands": [
        "else . $(VENV_BIN)/activate"
      ],
      "triggers": [
        "local"
      ],
      "evidence": [
        {
          "path": "Makefile",
          "locator": "target testenv (line 25)"
        }
      ],
      "upstream": null,
      "docs": null,
      "exit_codes": {},
      "autofix": false,
      "declared_only": false
    },
    {
      "tool": null,
      "method": "unclassified",
      "commands": [
        "msgfmt -o $(LOCALEDIR)/$$lang/LC_MESSAGES/$$domain.mo $$po"
      ],
      "triggers": [
        "local"
      ],
      "evidence": [
        {
          "path": "i18n/Makefile",
          "locator": "target mo (line 30)"
        }
      ],
      "upstream": null,
      "docs": null,
      "exit_codes": {},
      "autofix": false,
      "declared_only": false
    },
    {
      "tool": null,
      "method": "unclassified",
      "commands": [
        "node ./scripts/sync-docs-zh-skeleton.mjs"
      ],
      "triggers": [
        "local"
      ],
      "evidence": [
        {
          "path": "docs/package.json",
          "locator": "scripts.sync-docs-zh-skeleton"
        },
        {
          "path": "docs/package.json",
          "locator": "scripts.bootstrap-docs-zh"
        }
      ],
      "upstream": null,
      "docs": null,
      "exit_codes": {},
      "autofix": false,
      "declared_only": false
    },
    {
      "tool": null,
      "method": "unclassified",
      "commands": [
        "node node_modules/.cache/final-presentation-tests/final-presentation.test.js"
      ],
      "triggers": [
        "local"
      ],
      "evidence": [
        {
          "path": "web/package.json",
          "locator": "scripts.test"
        },
        {
          "path": "web/package.json",
          "locator": "scripts.test:final-presentation"
        }
      ],
      "upstream": null,
      "docs": null,
      "exit_codes": {},
      "autofix": false,
      "declared_only": false
    },
    {
      "tool": null,
      "method": "unclassified",
      "commands": [
        "node node_modules/.cache/react-final-tests/react-agent-final.test.js"
      ],
      "triggers": [
        "local"
      ],
      "evidence": [
        {
          "path": "web/package.json",
          "locator": "scripts.test"
        },
        {
          "path": "web/package.json",
          "locator": "scripts.test:react-final"
        }
      ],
      "upstream": null,
      "docs": null,
      "exit_codes": {},
      "autofix": false,
      "declared_only": false
    },
    {
      "tool": null,
      "method": "unclassified",
      "commands": [
        "node node_modules/.cache/report-graph-tests/new-components/report/report-graph-model.test.js"
      ],
      "triggers": [
        "local"
      ],
      "evidence": [
        {
          "path": "web/package.json",
          "locator": "scripts.test"
        },
        {
          "path": "web/package.json",
          "locator": "scripts.test:report-graph"
        }
      ],
      "upstream": null,
      "docs": null,
      "exit_codes": {},
      "autofix": false,
      "declared_only": false
    },
    {
      "tool": null,
      "method": "unclassified",
      "commands": [
        "node node_modules/.cache/report-html-tests/report-html.test.js"
      ],
      "triggers": [
        "local"
      ],
      "evidence": [
        {
          "path": "web/package.json",
          "locator": "scripts.test"
        },
        {
          "path": "web/package.json",
          "locator": "scripts.test:report-html"
        }
      ],
      "upstream": null,
      "docs": null,
      "exit_codes": {},
      "autofix": false,
      "declared_only": false
    },
    {
      "tool": null,
      "method": "unclassified",
      "commands": [
        "touch $(VENV)/.testenv"
      ],
      "triggers": [
        "local"
      ],
      "evidence": [
        {
          "path": "Makefile",
          "locator": "target testenv (line 25)"
        }
      ],
      "upstream": null,
      "docs": null,
      "exit_codes": {},
      "autofix": false,
      "declared_only": false
    }
  ]
}
