From 777666081a8d1026440fc54873aa6d6b0cd02817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1gi-Kaz=C3=A1r=20M=C3=A1rk?= Date: Sat, 14 Nov 2015 22:51:32 +0100 Subject: [PATCH] Add coding style requirements --- CONTRIBUTING.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4cafa7e..383c3b3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -87,6 +87,18 @@ This repository follows the [PSR-2 standard](http://www.php-fig.org/psr/psr-2/) you must follow these rules. +## Coding style + +Apart from the standards above, we have a few more rules which we think makes programming more logical: + +1. Don't align key value pairs: it messes up diff (this applies to code, config, even docblocks) +2. Use trailing commas after last array elements + +See these articles for reference: + +- http://mnapoli.fr/approaching-coding-style-rationally/ + + ## Semver We are trying to follow [semver](http://semver.org/). When you are making BC breaking changes,