Describe the bug
Hi, I believe the year number in the first line of copyright declaration should be 2016 or 2016-[year of the latest modification], not 2016-.
If the year number is just 2016, that means the copyright was declared initially from 2016. If the year number is 2016-XXX, that means the copyright was declared initially from 2016 and a (major) modification was recently made in XXX. Note that 2016-XXX does not mean the copyright ends in year XXX, and 2016- is not an accepted format.
Another minor issue is that, it's best practice to put the year number before the author name Taichi Authors, not after :)
点赞!
It is not a "potential bug", but that label was assigned automatically to this issue..
Cool! Thank for pointing out. Would you mind to make a PR to make things correct?
If the year number is just
2016, that means the copyright was declared initially from 2016. If the year number is2016-XXX, that means the copyright was declared initially from 2016 and a (major) modification was recently made in XXX. Note that2016-XXXdoes _not_ mean the copyright ends in year XXX, and2016-is not an accepted format.
Thanks for pointing this out!
Cool! Thank for pointing out. Would you mind to make a PR to make things correct?
I think we should first discuss if it is necessary to enforce the copyright notice as part of the code format requirements.
At the moment most files don't have these lines.
I think we should first discuss if it is necessary to enforce the copyright notice as part of the code format requirements.
At the moment most files don't have these lines.
It seems that only the legacy parts have these lines? I personally don't like these lines, since that should be a LICENCE should do, not the source codes.
I personally don't like these lines, since that should be a LICENCE should do, not the source codes.
I'd suggest keep the copyright notices in files, so that it is harder for a violator to claim "innocent infringement" because he/she would need to explicitly delete the notices.
Of course, I'm not a lawyer and this is not a legal advice.
I'll go ahead and make a PR.
Thanks! One file that may be useful: https://github.com/taichi-dev/taichi/blob/master/misc/add_copyright.py
Created PR 1031. Sorry I didn't notice your reply above (regarding add_copyright.py), so I hand-rolled one myself.
The new script, however, can handle files in batch and can handle Python/Shell/.. style comments as well (not just C/C++), so I think it's worthwhile to keep it (but feel free to say no) ~ 😄
Closing this issue. Let's followup on that PR.
Most helpful comment
Created PR 1031. Sorry I didn't notice your reply above (regarding add_copyright.py), so I hand-rolled one myself.
The new script, however, can handle files in batch and can handle Python/Shell/.. style comments as well (not just C/C++), so I think it's worthwhile to keep it (but feel free to say no) ~ 😄
Closing this issue. Let's followup on that PR.