Skip to content

Commit ecea9f6

Browse files
authored
Merge pull request #28 from OPPIDA/fix/spotbugs-parser
2 parents 4771ecd + 8ddaea8 commit ecea9f6

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

codesectools/sasts/tools/SpotBugs/parser.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ def __init__(self, output_dir: Path, result_data: dict, cmdout: dict) -> None:
8484
]
8585
)
8686
if partial_filepath.parent not in partial_parents:
87-
filepath = next(
88-
self.source_path.rglob(str(partial_filepath))
89-
).relative_to(self.source_path)
90-
partial_parents[partial_filepath.parent] = filepath.parent
87+
if next(self.source_path.rglob(str(partial_filepath)), None):
88+
filepath = next(
89+
self.source_path.rglob(str(partial_filepath))
90+
).relative_to(self.source_path)
91+
partial_parents[partial_filepath.parent] = filepath.parent
9192
else:
9293
filepath = (
9394
partial_parents[partial_filepath.parent] / partial_filepath.name

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "CodeSecTools"
3-
version = "0.13.6"
3+
version = "0.13.7"
44
description = "A framework for code security that provides abstractions for static analysis tools and datasets to support their integration, testing, and evaluation."
55
readme = "README.md"
66
license = "AGPL-3.0-only"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)