UNPKG

deepsource-mcp-server

Version:
74 lines 2.8 kB
/** * @fileoverview Metrics-related models * This module defines interfaces for DeepSource quality metrics. */ /* eslint-disable no-unused-vars */ /** * Shortcodes for the different types of metrics that DeepSource supports * @public */ export var MetricShortcode; (function (MetricShortcode) { /** Line Coverage - percentage of lines covered by tests */ MetricShortcode["LCV"] = "LCV"; /** Branch Coverage - percentage of branches covered by tests */ MetricShortcode["BCV"] = "BCV"; /** Documentation Coverage - percentage of public functions with documentation */ MetricShortcode["DCV"] = "DCV"; /** Duplicate Code Percentage - percentage of code that is duplicated */ MetricShortcode["DDP"] = "DDP"; /** Statement Coverage - percentage of statements covered by tests */ MetricShortcode["SCV"] = "SCV"; /** Type Coverage - percentage of code with type annotations */ MetricShortcode["TCV"] = "TCV"; /** Complexity - code complexity metrics */ MetricShortcode["CMP"] = "CMP"; })(MetricShortcode || (MetricShortcode = {})); /** * Keys for different metric contexts, like programming languages or aggregates * @public */ export var MetricKey; (function (MetricKey) { /** Aggregate metrics for the entire repository */ MetricKey["AGGREGATE"] = "AGGREGATE"; /** Python-specific metrics */ MetricKey["PYTHON"] = "PYTHON"; /** JavaScript-specific metrics */ MetricKey["JAVASCRIPT"] = "JAVASCRIPT"; /** TypeScript-specific metrics */ MetricKey["TYPESCRIPT"] = "TYPESCRIPT"; /** Go-specific metrics */ MetricKey["GO"] = "GO"; /** Java-specific metrics */ MetricKey["JAVA"] = "JAVA"; /** Ruby-specific metrics */ MetricKey["RUBY"] = "RUBY"; /** Rust-specific metrics */ MetricKey["RUST"] = "RUST"; })(MetricKey || (MetricKey = {})); /** * Status of a metric's threshold comparison * @public */ export var MetricThresholdStatus; (function (MetricThresholdStatus) { /** Metric is passing (meets or exceeds threshold) */ MetricThresholdStatus["PASSING"] = "PASSING"; /** Metric is failing (does not meet threshold) */ MetricThresholdStatus["FAILING"] = "FAILING"; /** Metric threshold status is unknown or not applicable */ MetricThresholdStatus["UNKNOWN"] = "UNKNOWN"; })(MetricThresholdStatus || (MetricThresholdStatus = {})); /** * Direction in which a metric is considered "positive" * @public */ export var MetricDirection; (function (MetricDirection) { /** Higher values are better (e.g., code coverage) */ MetricDirection["UPWARD"] = "UPWARD"; /** Lower values are better (e.g., duplicate code percentage) */ MetricDirection["DOWNWARD"] = "DOWNWARD"; })(MetricDirection || (MetricDirection = {})); //# sourceMappingURL=metrics.js.map