Changes

Coding Standards

3,780 bytes added, 14:52, 9 January 2015
set autoindent
</pre>
 
= Licence =
We have decided to release all our open sourced software under the [[agpl-3.0.txt | GNU Affero General Public License]] (Version 3, 19 November 2007).
 
== Scripts of Programmes consisting of one file ==
<pre>
Copyright (C) 2015 stepping stone GmbH
Switzerland
http://www.stepping-stone.ch
support@stepping-stone.ch
Authors:
Hans Mustermann <hans.mustermann@stepping-stone.ch>
 
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, version
3 of the License.
 
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 <http://www.gnu.org/licenses/>.
</pre>
 
== Scripts of Programmes consisting of multiple files ==
<pre>
Copyright (C) 2015 stepping stone GmbH
Switzerland
http://www.stepping-stone.ch
support@stepping-stone.ch
Authors:
Hans Mustermann <hans.mustermann@stepping-stone.ch>
 
This file is part of the stoney cloud.
 
stoney cloud 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, version
3 of the License.
 
stoney cloud 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 stoney cloud.
If not, see <http://www.gnu.org/licenses/>.
</pre>
 
= File Headers =
The following file header examples presume, that your scripts of programmes consist of multiple files.
== PHP ==
<?php
/*
* Copyright (C) 2013 2015 stepping stone GmbH
* Switzerland
* http://www.stepping-stone.ch
* support@stepping-stone.ch
*
* Authors:
* Hans Mustermann <hans.mustermann@stepping-stone.ch>
*
* Licensed under the EUPL, Version 1.1.
*
* You may not use this work except in compliance with This file is part of the * Licencestoney cloud. * You may obtain a copy of the Licence at:
*
* httpstoney cloud is free software:you can redistribute it and//wwwor * modify it under the terms of the GNU Affero General Public * License as published by the Free Software Foundation, version * 3 of the License.osor.eu/eupl
*
* Unless required by applicable law or agreed to stoney cloud is distributed in * writing, software distributed under the Licence is * distributed on an "AS IS" basishope that it will be useful, * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, eitherWARRANTY; without even the implied warranty of * express MERCHANTABILITY or impliedFITNESS FOR A PARTICULAR PURPOSE. * See the Licence for the specific language governing * permissions and limitations under the LicenceGNU Affero General Public License for more details.
*
* $Id$You should have received a copy of the GNU Affero General Public * License along with stoney cloud. * If not, see <http://www.gnu.org/licenses/>.
*
*/
################################################################################
#
# Copyright (C) 2013 2015 stepping stone GmbH
# Switzerland
# http://www.stepping-stone.ch
# support@stepping-stone.ch
#
# Authors:
# Hans Mustermann <hans.mustermann@stepping-stone.ch>
#
# Licensed under the EUPL, Version 1.1.
#
# You may not use this work except in compliance with This file is part of the# Licencestoney cloud.# You may obtain a copy of the Licence at:
#
# httpstoney cloud is free software:you can redistribute it and//wwwor# modify it under the terms of the GNU Affero General Public # License as published by the Free Software Foundation, version# 3 of the License.osor.eu/eupl
#
# Unless required by applicable law or agreed to in# writing, software distributed under the Licence stoney cloud is# distributed on an "AS IS" basisin the hope that it will be useful,# but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, eitherWARRANTY; without even the implied warranty of# express MERCHANTABILITY or impliedFITNESS FOR A PARTICULAR PURPOSE.# See the Licence # GNU Affero General Public License for the specific language governingmore details.# permissions and limitations under # You should have received a copy of the LicenceGNU Affero General Public# License along with stoney cloud.# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
#!/usr/bin/perl -w
#
# Copyright (C) 2013 2015 stepping stone GmbH
# Switzerland
# http://www.stepping-stone.ch
# support@stepping-stone.ch
#
# Authors:
# Hans Mustermann <hans.mustermann@stepping-stone.ch>
#
# Licensed under the EUPL, Version 1.1.
#
# You may not use this work except in compliance with the
# Licence.
# You may obtain a copy of the Licence at:
#
# http://wwwThis file is part of the stoney cloud.osor.eu/eupl
#
# Unless required by applicable law stoney cloud is free software: you can redistribute it and/or agreed to in# writing, software distributed modify it under the Licence isterms of the GNU Affero General Public # distributed on an "AS IS" basisLicense as published by the Free Software Foundation,version# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either# express or implied.# See the Licence for the specific language governing# permissions and limitations under 3 of the LicenceLicense.
#
# $Id$stoney cloud 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 stoney cloud.
# If not, see <http://www.gnu.org/licenses/>.
#
</source>
<pre>
# Copyright (C) 2013 2015 stepping stone GmbH
# Switzerland
# http://www.stepping-stone.ch
# support@stepping-stone.ch
#
# Authors:
# Hans Mustermann <hans.mustermann@stepping-stone.ch>
#
# Licensed under the EUPL, Version 1.1.
#
# You may not use this work except in compliance with This file is part of the# Licencestoney cloud.# You may obtain a copy of the Licence at:
#
# httpstoney cloud is free software:you can redistribute it and//wwwor# modify it under the terms of the GNU Affero General Public # License as published by the Free Software Foundation, version# 3 of the License.osor.eu/eupl
#
# Unless required by applicable law or agreed to stoney cloud is distributed in# writing, software distributed under the Licence is# distributed on an "AS IS" basishope that it will be useful,# but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, eitherWARRANTY; without even the implied warranty of# express MERCHANTABILITY or impliedFITNESS FOR A PARTICULAR PURPOSE.# See the Licence for the specific language governing# permissions and limitations under the LicenceGNU Affero General Public License for more details.## $Id$
#
# You should have received a copy of the GNU Affero General Public
# License along with stoney cloud.
# If not, see <http://www.gnu.org/licenses/>.
#
</pre>
== JavaScript ==
Whereat Hans Mustermann <hans.mustermann@stepping-stone.ch> needs to be replaced by the actual author.
 
<source lang="javascript">
/*
* Copyright (C) 2015 stepping stone GmbH
* Switzerland
* http://www.stepping-stone.ch
* support@stepping-stone.ch
*
* Authors:
* Hans Mustermann <hans.mustermann@stepping-stone.ch>
*
* This file is part of the stoney cloud.
*
* stoney cloud 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, version
* 3 of the License.
*
* stoney cloud 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 stoney cloud.
* If not, see <http://www.gnu.org/licenses/>.
*
*/
</source>
[[Category:Development]]
SLB, editor, reviewer
3,407
edits