This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch sbp
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/sbp by this push:
new 31e07c4 Record relative rather than absolute paths in RAT check
results
31e07c4 is described below
commit 31e07c49e7e6a53b28f1886df07ee5df18c70838
Author: Sean B. Palmer <[email protected]>
AuthorDate: Fri Feb 6 17:09:03 2026 +0000
Record relative rather than absolute paths in RAT check results
---
atr/tasks/checks/rat.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/atr/tasks/checks/rat.py b/atr/tasks/checks/rat.py
index 3812157..9e5757c 100644
--- a/atr/tasks/checks/rat.py
+++ b/atr/tasks/checks/rat.py
@@ -598,7 +598,10 @@ def _synchronous_extract_parse_output_core(xml_file: str,
base_dir: str) -> chec
# Remove base_dir prefix for cleaner display
if name.startswith(base_dir):
- name = name[len(base_dir) :].lstrip("/")
+ name = name[len(base_dir) :]
+ name = name.lstrip("/")
+ if name.startswith("./"):
+ name = name[2:]
# Get license information
license_elem = resource.find("license")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]