-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
merge_copyright_lines()
should honor --copyright-style
parameter
#911
Comments
This is actually strangely irregular. One run will default to the |
Oof. Can you provide an example file @BigBlueHat ? |
Using Before:
After:
I'm also using a template that starts with... /*!
{% for copyright_line in copyright_lines %}
* {{ copyright_line }}
{% endfor %}
* |
Rerunning it this time had no effect. So it seems it may be that Also, I can't seem to replicate the irregular behavior. It's just consistently ignoring |
Found it! It's treating "All rights reserved." as part of the copyright owners name...so since I'm trying to remove that by setting Neither behavior was expected, so still some bugs here--but they probably need new issues. |
Closing in favor of #929 |
Currently, the code guesses from the existing copyright claims:
reuse-tool/src/reuse/_util.py
Lines 366 to 371 in 00a8d94
If it "misses", it uses the
spdx
format even if--copyright-style
is set to some other style.My expectation was that providing
--copyright-style
would force any existing copyright claim into that style (vs. replacing it with one I didn't select).This is especially important for licenses such as the Apache-2.0 which come with their own requirements for applying the license via a per-document preamble comment:
https://www.apache.org/licenses/LICENSE-2.0#apply
The text was updated successfully, but these errors were encountered: