Jahia.net - The Online Jahia Community / Jahia Forge / Standards and Specifications / Coding Convention
Coding Convention
Jahia follows rather closely the Sun Coding Conventions, adding a few extensions to them.1. Identation should using ONLY spaces, never tabs, and should be set to 4 spaces
2. Brackets should be used this way :
if (true) {
// statement
}
and NOT this way :
if (true)
{
// statement
}
This also goes for class declarations, method declarations, etc...
That's basically it. We do ask that contributors follow these conventions as it makes it easier for developers to work on the code if everybody follows the same conventions. Thanks.
