spantaleev / matrix-docker-ansible-deploy

🐳 Matrix (An open network for secure, decentralized communication) server setup using Ansible and Docker
GNU Affero General Public License v3.0
4.92k stars 1.05k forks source link

Put a license notice to each file? #3796

Open luixxiul opened 1 week ago

luixxiul commented 1 week ago

Playbook Configuration: irrelevant

Matrix Server: irrelevant

Ansible: irrelevant

Problem description: https://www.gnu.org/licenses/gpl-faq.en.html#NoticeInSourceFile says:

You should put a notice at the start of each source file, stating what license it carries, in order to avoid risk of the code's getting disconnected from its license. If your repository's README says that source file is under the GNU GPL, what happens if someone copies that file to another program? That other context may not show what the file's license is. It may appear to have some other license, or no license at all (which would make the code nonfree).

Adding a copyright notice and a license notice at the start of each source file is easy and makes such confusion unlikely.

I believe it would be appreciated by contributors if they are given a chance to add their names to the source code (regardless of the number of those who would like to do so actually), as I will.

Additional context As an extensive contributor to https://github.com/element-hq/element-web/blame/develop/res/css/views/rooms/_EventTile.pcss (for styling of one of the most important components of Element Web), I regret that I have not pushed a request to put my name on it while I was working on it.

spantaleev commented 1 week ago

A CREDITS file (like the Linux kernel's CREDITS file) may be another option for adding credits which does not pollute files with metadata.

It doesn't help with the "license being close to the source code file" though, so the other one may be useful as well (although at the cost of polluting files).