google / google/addlicense

Feature Request: Prefix Copyright Text with SPDX Tag

Open
#195 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
886
Forks
194
PR merge metrics
No merged PRs in 30d

Description

Currently the copyright text is provided as a comment.

In the same way the license is prefixed with the `SPDX-License-Identifer:` tag, could this be prefixed with the `SPDX-FileCopyrightText:` tag per https://spdx.github.io/spdx-spec/v2.3/file-tags/#h2-file-tags-format ?

This would make machine parsing a bit easier and avoid some false positives when copyright appears in other contexts.

Thanks

Contributor guide

Open the contributing guide

Research direction

Start by locating the code that emits the existing SPDX-License-Identifier tag and inspect the related tests, if present. Update the copyright comment output to use SPDX-FileCopyrightText, then verify that generated headers retain the expected license information and avoid unrelated copyright matches.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.