[banshee] HACKING: add coding style rule about spaces around operators



commit 189f085feb2e9417245342d368755061b2651af4
Author: Andres G. Aragoneses <knocte gmail com>
Date:   Mon Feb 25 17:42:49 2013 +0000

    HACKING: add coding style rule about spaces around operators
    
    This rule is already respected in all Banshee source code, but not written
    in the coding guidelines, so some contributors were accidentally violating
    it when creating patchs (i.e. bgo#689123).

 HACKING |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/HACKING b/HACKING
index 69bab02..9313b35 100644
--- a/HACKING
+++ b/HACKING
@@ -85,6 +85,11 @@ guidelines. If code is in violation, you will be asked to reformat it.
   10. Try to observe a 120 character wrap margin. If your lines are over 120
      characters, break and indent them logically.
 
+  11. One space at both sides of all type of operators (assignment,
+     equality, mathematical, event-subscription, ...):
+
+      var compare = (a + b * c) != (d - e * f);
+
 
 .NET API Naming Guidelines
 ==========================


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]