Home

Awesome

Lua Style Guide

This style guide contains a list of guidelines that we try to follow for our projects. It does not attempt to make arguments for the styles; its goal is to provide consistency across projects.

Feel free to fork this style guide and change to your own liking, and file issues / pull requests if you have questions, comments, or if you find any mistakes or typos.

<a name='TOC'>Table of Contents</a>

  1. Types
  2. Tables
  3. Strings
  4. Functions
  5. Properties
  6. Variables
  7. Conditional Expressions & Equality
  8. Blocks
  9. Whitespace
  10. Commas
  11. Semicolons
  12. Type Casting & Coercion
  13. Naming Conventions
  14. Accessors
  15. Constructors
  16. Modules
  17. File Structure
  18. Testing
  19. Performance
  20. Resources
  21. In the Wild
  22. Contributors
  23. License

<a name='types'>Types</a>

<a name='tables'>Tables</a>

<a name='strings'>Strings</a>

<a name='functions'>Functions</a>

[⬆]

<a name='properties'>Properties</a>

<a name='variables'>Variables</a>

<a name='conditionals'>Conditional Expressions & Equality</a>

<a name='blocks'>Blocks</a>

<a name='whitespace'>Whitespace</a>

<a name='commas'>Commas</a>

<a name='semicolons'>Semicolons</a>

<a name='type-coercion'>Type Casting & Coercion</a>

<a name='naming-conventions'>Naming Conventions</a>

<a name='modules'>Modules</a>

[⬆]

<a name='file-structrure'>File Structure</a>

<a name='testing'>Testing</a>

<a name='contributors'>Contributors</a>

<a name='license'>License</a>

[⬆]