This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new f5a1ca2  Allow extra lines at the bottom of LICENSE files
f5a1ca2 is described below

commit f5a1ca232bc26db5dc184a5b17a2d4425b7200c6
Author: Sean B. Palmer <[email protected]>
AuthorDate: Sun Nov 16 18:48:36 2025 +0000

    Allow extra lines at the bottom of LICENSE files
---
 atr/tasks/checks/license.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/atr/tasks/checks/license.py b/atr/tasks/checks/license.py
index 71ea34a..f8be11b 100644
--- a/atr/tasks/checks/license.py
+++ b/atr/tasks/checks/license.py
@@ -267,6 +267,10 @@ def _files_check_core_logic_license(archive: 
tarzip.Archive, member: tarzip.Memb
 
     expected_lines = _normal_whitespace(expected_lines)
     actual_lines = _normal_whitespace(actual_lines)
+    # Allow extra lines at the bottom of the license
+    # This could invalidate the license, but we cannot check that automatically
+    # if len(actual_lines) > len(expected_lines):
+    actual_lines = actual_lines[: len(expected_lines)]
     if expected_lines != actual_lines:
         # TODO: Only show a contextual diff, not the full diff
         diff = difflib.ndiff(expected_lines, actual_lines)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to