Developer-Guide/standards/general.md
2016-07-05 20:39:30 +02:00

849 B

Code Standards

The following code standard is enforced in order to make it easier to update and maintain implementations.

General

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

The term "class" refers to all classes, interfaces, and traits.

Indention

The default indention MUST be 4 spaces.

Html

Omitted closing tags

The following closing tags SHOULD be omitted:

  • </li>
  • </option>
  • </tr>
  • </td>
  • </th>
  • </thead>
  • </tbody>
  • </tfoot>
  • </head>
  • </body>
  • </html>

The following tags MUST not specify a end tag (\):

  • <br \>
  • <meta \>
  • <input \>
  • <hr \>
  • <img \>
  • <link \>
  • <source \>
  • <embed \>

JavaScript

Scss