We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c39777 commit f44a0f9Copy full SHA for f44a0f9
src/codemodder/result.py
@@ -96,7 +96,7 @@ class SASTResult(Result):
96
97
98
@dataclass(frozen=True, kw_only=True)
99
-class SarifResult(SASTResult, ABCDataclass):
+class SarifResult(SASTResult):
100
location_type: ClassVar[Type[SarifLocation]]
101
102
@classmethod
@@ -122,9 +122,9 @@ def from_sarif(
122
)
123
124
125
- @abstractmethod
126
- def rule_url_from_id(cls, result: dict, run: dict, rule_id: str) -> str:
127
- raise NotImplementedError
+ def rule_url_from_id(cls, result: dict, run: dict, rule_id: str) -> str | None:
+ del result, run, rule_id
+ return None
128
129
130
def extract_locations(cls, sarif_result) -> Sequence[Location]:
0 commit comments