mirror of
https://github.com/Karaka-Management/Developer-Guide.git
synced 2026-01-22 09:18:40 +00:00
48 lines
849 B
Markdown
48 lines
849 B
Markdown
# 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 |