Add SPDX license identifiers to source files#1335
Add SPDX license identifiers to source files#1335rwmjones wants to merge 1 commit intomicrosoft:mainfrom
Conversation
SPDX (https://spdx.org/licenses/) is a commonly used system for annotating source files with the intended license. In WDK, the top level LICENSE file describes the license as MS-PL, but individual files are less clear about the exact license. This has caused confusion in the past (microsoft#60). By annotating files with SPDX the license can be clarified by the addition of a single line. This change was done largely using the script below, followed by some light hand editing: perl -i -e 'while (<>) { if ($. <= 5 && m/(.*)Copyright.*Microsoft/) { print; print "$1SPDX-License-Identifier: MS-PL\r\n"; } else { print } } continue { close ARGV if eof }' -- $( git ls-files ) Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
|
@microsoft-github-policy-service agree company="Red Hat, Inc." |
|
I appreciate the effort, but, frankly, as I balance it out, I am not sure this is a good change or an important area to improve. We are with this change emphasizing explicitness at the cost of redundancy and compactness. Frankly, I am more inclined to go to in different direction and delete lines referencing root of repo. I may be wrong in this balance, and I will keep an open mind to be proven wrong. |
JakobL-MSFT
left a comment
There was a problem hiding this comment.
I appreciate the effort, but, frankly, as I balance it out, I am not sure this is a good change or an important area to improve.
We are with this change emphasizing explicitness at the cost of redundancy and compactness. Frankly, I am more inclined to go to in different direction and delete lines referencing root of repo.
I may be wrong in this balance, and I will keep an open mind to be proven wrong.
|
Link to discussion on Fedora legal which led to this PR: https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/thread/ZSVCFJFVMLTODFKGV352TYHH5ZQODJXD/ |
|
Thank you for sharing discussion. I am intrigued. I will ask around internally at MSFT to see what the consensus is. |
SPDX (https://spdx.org/licenses/) is a commonly used system for annotating source files with the intended license. In WDK, the top level LICENSE file describes the license as MS-PL, but individual files are less clear about the exact license. This has caused confusion in the past
(#60). By annotating files with SPDX the license can be clarified by the addition of a single line.
This change was done largely using the script below, followed by some light hand editing: