scripts/spdxcheck: Parse j2 comments correctly
authorThomas Gleixner <tglx@linutronix.de>
Fri, 29 Nov 2024 10:37:45 +0000 (11:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2025 14:38:28 +0000 (15:38 +0100)
commit634d34e856ca0123f96613ffaf1852a1d3b46880
tree546f2e4aa3985024720f312ecd7da9a660ad860b
parentc301e1fefc2d6c83a2beb47e9cdd7b59a90b0067
scripts/spdxcheck: Parse j2 comments correctly

j2 files use '#}' as comment closure, which trips up the SPDX
parser:

 tools/.../definition.j2: 1:36 Invalid token: #}

Handle those comments correctly by removing the closure.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/878qt2xr46.ffs@tglx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/spdxcheck.py