Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions codesectools/sasts/core/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,6 @@ def __init__(
self.loc = loc
self.data = data

# Ensure all defect filepaths are relative to the source path
for defect in self.defects:
if defect.filepath.is_absolute():
try:
defect.filepath = defect.filepath.relative_to(self.source_path)
defect.filepath_str = str(defect.filepath)
except ValueError:
# This can happen if the path is outside the source_path tree.
# We leave it as is, but it will likely not match during validation.
pass

def __repr__(self) -> str:
"""Return a developer-friendly string representation of the AnalysisResult.

Expand Down