copywrite icon indicating copy to clipboard operation
copywrite copied to clipboard

Add SPDX-Copyright-Text tag

Open adam-moss opened this issue 2 years ago • 1 comments
trafficstars

Signed-off-by: Adam Moss [email protected]

:hammer_and_wrench: Description

Prefix the copyright text with SPDX-FileCopyrightText. This allows for easier machine parser of spdx data.

As a by-product of this it has highlight a bunch of extra files missing headers due to containing the word copyright.

I've updated the .pre-commit-config.yaml too.

:link: External Links

https://spdx.github.io/spdx-spec/v2.3/file-tags/#h2-file-tags-format

:+1: Definition of Done

  • [X] New functionality works?
  • [ ] Tests added?

:thinking: Can be merged upon approval?

:white_check_mark: It can, but there is an issue remaining that if the copyright text itself is change or entered incorrectly in a file (i.e. a line SPDX-FileCopyrightText: bla) the tool does not pick this up as an error.

adam-moss avatar Feb 13 '23 19:02 adam-moss

CLA assistant check
All committers have signed the CLA.

hashicorp-cla avatar Feb 13 '23 19:02 hashicorp-cla