From 18bef75c940171f09baeaa4341b5085fae712607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Tue, 19 Jul 2016 11:34:58 +0200 Subject: [PATCH] add license header section Added a paragraph to explain how to add a license header and a correct copyright notice together with a example header. --- developer_manual/general/codingguidelines.rst | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/developer_manual/general/codingguidelines.rst b/developer_manual/general/codingguidelines.rst index 61bfe9c94..e672b6582 100644 --- a/developer_manual/general/codingguidelines.rst +++ b/developer_manual/general/codingguidelines.rst @@ -72,6 +72,35 @@ Coding * Check these `database performance tips `_ * When you ``git pull``, always ``git pull --rebase`` to avoid generating extra commits like: *merged master into master* +License Haders +-------------- + +Nextcloud is licensed under the `GNU AGPLv3 `_. From June, 16 2016 on we switched to "GNU AGPLv3 or any later version" for better long-term maintainability. If you create a new file please use this header: + +.. code-block:: php + + /** + * + * @copyright Copyright (c) , () + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +If you edit an existing file please add a copyright notice with your name, if you consider your changes substantial enough to claim copyright. As a rule if thumb, this is the case if you contributed more than seven lines of code. User interface --------------