fsfe / reuse-tool

reuse is a tool for compliance with the REUSE recommendations.
https://reuse.software
376 stars 144 forks source link

Fix copyright merging for all copyright styles. #964

Closed sudorook closed 4 weeks ago

sudorook commented 3 months ago

Fixes patterns not matching spdx-c, spdx-symbol, and string-symbol correctly, thereby causing merges to not occur.

Also change test_annotate_merge_copyrights_simple() to test copyright merging for all copyright styles defined in _COPYRIGHT_STYLES dictionary.

carmenbianca commented 4 weeks ago

Closing in favour of #979. Some of the code here was reused there, with attribution in the commit message. Thank you!