From 5da8cf8a8f1f30f084fcd85d78bd8ff43675f1e7 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 18 Aug 2014 17:55:09 -0700 Subject: Add some doc for contributors --- docs/coding-standards.markdown | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/coding-standards.markdown (limited to 'docs/coding-standards.markdown') diff --git a/docs/coding-standards.markdown b/docs/coding-standards.markdown new file mode 100644 index 00000000..a6975190 --- /dev/null +++ b/docs/coding-standards.markdown @@ -0,0 +1,23 @@ +Coding standards +================ + +PHP code +-------- + +- Indentation: 4 spaces +- Line return: Unix => `\n` +- Encoding: UTF-8 +- Always write PHPdoc comments for methods and class properties +- Coding style: Try to follow [PSR-1](http://www.php-fig.org/psr/psr-1/) and [PSR-2](http://www.php-fig.org/psr/psr-2/) otherwise follow the actual style. + +Javascript code +--------------- + +- Indentation: 4 spaces +- Line return: Unix => `\n` + +CSS code +-------- + +- Indentation: 4 spaces +- Line return: Unix => `\n` -- cgit v1.2.3