Coverage for lintro / parsers / oxfmt / oxfmt_issue.py: 100%
8 statements
« prev ^ index » next coverage.py v7.13.0, created at 2026-04-03 18:53 +0000
« prev ^ index » next coverage.py v7.13.0, created at 2026-04-03 18:53 +0000
1"""Typed structure representing a single oxfmt issue."""
3from dataclasses import dataclass, field
4from typing import ClassVar
6from lintro.enums.severity_level import SeverityLevel
7from lintro.parsers.base_issue import BaseIssue
10@dataclass
11class OxfmtIssue(BaseIssue):
12 """Simple container for oxfmt findings.
14 Attributes:
15 DEFAULT_SEVERITY: Defaults to INFO (pure formatter).
16 code: Tool-specific code identifying the rule (default: FORMAT).
17 """
19 DEFAULT_SEVERITY: ClassVar[SeverityLevel] = SeverityLevel.INFO
21 code: str = field(default="FORMAT")