From 82ae968eda9d594371dafd9c46b4865631a44fde Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sat, 15 Nov 2008 23:33:03 +0000 Subject: [PATCH] (No Version Change) Added coding convention item --- inxi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inxi b/inxi index e3242a1..1213a3c 100755 --- a/inxi +++ b/inxi @@ -39,11 +39,14 @@ ######################################################################## #### CONVENTIONS: #### Indentation: TABS +#### Do not use `....`, those are totally non-reabable, use $(....) #### Do not use one liner flow controls. The ONLY time you should use ; is in #### this single case: if [[ condition ]];then (ie, never: [[ condition ]] && statement) +#### #### All new code/methods must be in a function. #### For all boolean tests, use 'true' / 'false'. Do NOT use 0 or 1 unless #### it's a function return. Avoid complicated tests in the if condition itself. +#### #### VARIABLE/FUNCTION NAMING: #### All variables should explain what they are, except counters like i, j #### All variables MUST be initialized / declared explicitly