You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 17, 2025. It is now read-only.
HebiKotei edited this page Feb 25, 2023
·
1 revision
Structure/Scope
Limited Scope
Variables and functions should be scoped to the smallest visibility needed. Prefer in order: local, global, export.
Example
If you need the variable for one function, you declare the variable local within the function.
Resource/Script Naming
Never use spaces, "_" and "-" are acceptable alternatives. You may also chose to do camelCase as well.
Indentation
You should not exceed 4 levels of indentation if you can avoid it. Any more impacts the readability of code. Effective use of guard functions will be necessary to cut down on this.