STYLE: Add SPDX license identifiers to all ITK source files#6063
Draft
hjmjohnson wants to merge 2 commits intoInsightSoftwareConsortium:mainfrom
Draft
STYLE: Add SPDX license identifiers to all ITK source files#6063hjmjohnson wants to merge 2 commits intoInsightSoftwareConsortium:mainfrom
hjmjohnson wants to merge 2 commits intoInsightSoftwareConsortium:mainfrom
Conversation
21b931c to
1d05a10
Compare
1d05a10 to
42b4ef7
Compare
Contributor
|
Too many files changed for review. ( |
Add AddSPDXHeaders.py to prepend SPDX-FileCopyrightText and SPDX-License-Identifier lines to all ITK source files following VTK's convention (// comment lines before the existing block). Update ITKHeader.h KWStyle template to include the SPDX lines so new files are enforced going forward.
Add machine-readable SPDX headers to all ITK-owned source files following VTK's convention: two // (or #) comment lines before the existing license block. // SPDX-FileCopyrightText: Copyright NumFOCUS // SPDX-License-Identifier: Apache-2.0 This completes Phase 2 of the SBOM roadmap (issue InsightSoftwareConsortium#4302). Applied by Utilities/Maintenance/AddSPDXHeaders.py. 5503 files modified. ThirdParty code is excluded.
42b4ef7 to
5af400c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add machine-readable SPDX headers to all 5,503 ITK-owned source files following VTK's convention. This completes Phase 2 of the SBOM roadmap (#4302), complementing the SBOM generation in #5817.
Format (matching VTK)
C/C++ files:
Python files:
Scope
.h,.hxx,.cxx,.txx,.py,.cmake,CMakeLists.txt)Utilities/KWStyle/ITKHeader.htemplate updated to enforce SPDX on new filesUtilities/Maintenance/AddSPDXHeaders.pyfor reuseWhy both SPDX lines and existing header?
The existing 17-line Apache-2.0 block is the human-readable legal notice. The SPDX lines are the machine-readable equivalent, parseable by REUSE,
scancode-toolkit,fossology, and other license compliance tools. Both forms are standard practice — VTK, CMake, KDE, and FSFE projects use this dual approach.