This repository was archived by the owner on Dec 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
GUIDELINES
Sebas Veeke edited this page Sep 17, 2019
·
7 revisions
The following guidelines are part of Serverbot. Please review these guidelines before contributing.
- Loosely based on https://semver.org/, with the following specifics:
- Version numbers are based on
X.X.Xwhere the X's are short forMAJOR.MINOR.PATCH. -
MAJORversion number increases when breaking changes are being made. -
MINORversion number increases when functionality is added or expanded. -
PATCHversion number increases when existing code is being improved (bug fixes, layout improvements, readability, small improvements etc.).
- Version numbers are based on
Simplified suffixes more or less based on the Debian GNU/Linux project:
- Pre-release name is
x.x.x-UNSTABLE. - Release name is
x.x.x-STABLE.
- Pre-release name is
x.x.x-ALPHA.X. - Release candidate name is
x.x.x-BETA.X. - Release name is
x.x.x-RELEASE. Both ALPHA en BETA are pre-releases and therefor don't increase minor and patch version numbers. Instead they increment the.Xafter the tag.
- Don't use tabs.
- Use 4 spaces for indents.
- Don't use trailing spaces.
- Comments start with #.
- Comments in software are all in lower case.
- Comments in configuration or documentation files can contain capitals.
-
VARIABLESare in upper case. -
MULTI_WORD_VARIABLESare split with underscores.
-
functionsare in lower case. -
multi_word_functionsare split with a underscore. - functions are written as:
function function_name {
function commands
}
- Four spaces will be used for indentation.
- Basic if statements are written as:
if [ "${VARIABLE}" == '0' ]; then
echo "${VAR} is zero!"
fi
- Four spaces will be used for indentation.