Skip to content

Commit 78424fd

Browse files
committed
Add fixedFindings to ChangeSet per spec
1 parent 8491719 commit 78424fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/codemodder/codetf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ class ChangeSet(BaseModel):
108108
ai: Optional[AIMetadata] = None
109109
strategy: Optional[Strategy] = None
110110
provisional: Optional[bool] = False
111+
# For fixed findings that are not associated with a specific change
112+
fixedFindings: Optional[list[Finding]] = None
111113

112114
def with_changes(self, changes: list[Change]) -> ChangeSet:
113115
return ChangeSet(
@@ -117,6 +119,7 @@ def with_changes(self, changes: list[Change]) -> ChangeSet:
117119
ai=self.ai,
118120
strategy=self.strategy,
119121
provisional=self.provisional,
122+
fixedFindings=self.fixedFindings,
120123
)
121124

122125

0 commit comments

Comments
 (0)