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

Constants Naming #67

Open
Lyanthropos opened this issue Feb 19, 2024 · 0 comments
Open

Constants Naming #67

Lyanthropos opened this issue Feb 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Lyanthropos
Copy link
Member

I'd like to propose that we standardize our constants file to use upper snake case, such as MY_CONSTANT_VALUE instead of either camel case myConstantValue or kabab case my-constant-value. This is the java default pattern and conveniently the one that sonarlint enforces.

I'd also propose we drop the c++ pattern of prepending constants with k or k_ as they will already be visually distinct in the code. C++ uses that pattern because it reserves upper snake case for use with compile time replacements, something that java does not have.

This is very low priority, but a great small project for someone to carefully do when they need a break from their complex work – say writing commands for example.

please use the symbol rename feature, this is much more reliable then manual renaming

Constants file for reference

@Lyanthropos Lyanthropos added the enhancement New feature or request label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant