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

[0025] [ndf-script] [debt] Clean variables #8

Closed
greg-ynx opened this issue Nov 10, 2023 · 1 comment
Closed

[0025] [ndf-script] [debt] Clean variables #8

greg-ynx opened this issue Nov 10, 2023 · 1 comment

Comments

@greg-ynx
Copy link
Owner

Check each variables in the project and apply the following guidelines:

  • Must be ASCII compatible
  • Private variables should have the double underscore prefix, ex: __variable
  • Protected variables should have the underscore prefix, ex: _variable
  • Constants should adopt the UPPER_SNAKE_CASE namming convention, ex: MY_CONSTANT
  • Variables (Private, protected, public and global) should adopt the snake_case namming convantion, ex: my_variable
  • Never abbreviate variables name, ex: my_var non-compliant -> my_variable compliant
  • Variables with a sigle letter are allowed only for a looping context, ex: loop counters
@greg-ynx
Copy link
Owner Author

greg-ynx commented Dec 4, 2023

Hot fix pushed to v2.0.X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant