copywrite
copywrite copied to clipboard
Add SPDX-Copyright-Text tag
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.