mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-16 23:04:50 +00:00
Update coding style guidelines
This commit is contained in:
parent
b5d2b79a37
commit
19080f9958
@ -24,7 +24,8 @@ Multiline comments are used to introduce a block of code such as a function defi
|
|||||||
function demoFunction(param,more) {
|
function demoFunction(param,more) {
|
||||||
// Proper sentence capitalisation for comments
|
// Proper sentence capitalisation for comments
|
||||||
if(condition == "something") {
|
if(condition == "something") {
|
||||||
// No space between "if" and the brackets; always spaces around operators
|
// No space between "if" and the brackets; always spaces around binary operators
|
||||||
|
something = somethingElse;
|
||||||
myOtherFunction(one,two); // No whitespace within function parameters
|
myOtherFunction(one,two); // No whitespace within function parameters
|
||||||
do {
|
do {
|
||||||
myCondition.explore(); // Always use semicolons
|
myCondition.explore(); // Always use semicolons
|
||||||
|
Loading…
Reference in New Issue
Block a user