Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua coding standards (WIP) #54

Open
aldum opened this issue Nov 6, 2024 · 0 comments
Open

Lua coding standards (WIP) #54

aldum opened this issue Nov 6, 2024 · 0 comments

Comments

@aldum
Copy link
Collaborator

aldum commented Nov 6, 2024

No rules for formatting, everything is automatically prettyprinted by metalua

  • maximum line length 64 characters (screen fit)
  • function length max. 14 lines
  • maximum number of params: 4
  • maximum level of code nesting: 4
  • avoid complex inline expressions
    i. e. compound conditions
    local cond = a and b or c
    if cond then
    end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant