mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-22 04:34:08 +00:00
Update coding style guidelines
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user