]> git.lttng.org Git - lttng-tools.git/commit
Misc: Add pre-commit check for SPDX License-Identifier and FileCopyrightText
authorKienan Stewart <kstewart@efficios.com>
Mon, 20 Jan 2025 20:08:59 +0000 (15:08 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 28 Jan 2025 19:11:09 +0000 (19:11 +0000)
commit86de00ce653c0a1c3d774e2cb5cd807a27a275ed
tree605125f5c9e8739d2bd8a8b52ea0e0184877a4e9
parent50dcdb575ef7017f25d21557f5f67a530297c9fc
Misc: Add pre-commit check for SPDX License-Identifier and FileCopyrightText

Observed issue
==============

There are frequently small typos or slightly deviant SPDX tags set on files.

Cause
=====

Mostly me.

Solution
========

Add a pre-commit check with the following allowed tags:

 * SPDX-License-Identifier
 * SPDX-FileCopyrightText
 * SPDX-URL

Known drawbacks
===============

This is not a full SPDX validation, and does not validate the license
identifier values.

Change-Id: Iabd78ae14ef143ab4a956e0c5c31c1490b43aeda
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
extras/pre-commit.py
This page took 0.030845 seconds and 4 git commands to generate.