We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c5e98e2 + 4a909c2 commit 9457a4eCopy full SHA for 9457a4e
1 file changed
codesectools/sasts/core/parser.py
@@ -127,17 +127,6 @@ def __init__(
127
self.loc = loc
128
self.data = data
129
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
-
141
def __repr__(self) -> str:
142
"""Return a developer-friendly string representation of the AnalysisResult.
143
0 commit comments