Skip to content

Commit 9457a4e

Browse files
authored
Merge pull request #13 from OPPIDA/fix/sasts-refactor
2 parents c5e98e2 + 4a909c2 commit 9457a4e

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

codesectools/sasts/core/parser.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,6 @@ def __init__(
127127
self.loc = loc
128128
self.data = data
129129

130-
# Ensure all defect filepaths are relative to the source path
131-
for defect in self.defects:
132-
if defect.filepath.is_absolute():
133-
try:
134-
defect.filepath = defect.filepath.relative_to(self.source_path)
135-
defect.filepath_str = str(defect.filepath)
136-
except ValueError:
137-
# This can happen if the path is outside the source_path tree.
138-
# We leave it as is, but it will likely not match during validation.
139-
pass
140-
141130
def __repr__(self) -> str:
142131
"""Return a developer-friendly string representation of the AnalysisResult.
143132

0 commit comments

Comments
 (0)