From bdc4ed311c8ea12ae8fcb38778e881e4e2a2fdab Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 4 Jul 2026 14:29:38 -0400 Subject: [PATCH] Update CONTRIBUTING.md --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6bdafeb93c..3f576b35f4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -34,7 +34,7 @@ This means: - Same-line braces. - 4 spaces indentation - `camelCase`, **even for constants or enums**. Why? Because `SCREAMING_CASE` is ugly, annoying to type and does not achieve anything useful. Constants are *less* dangerous than variables, not more. Any reasonable IDE should highlight them for you anyway. -- No underscores for anything. (Yes, I know `Bindings` violates this principle, but that's for legacy reasons and really should be cleaned up some day) +- No underscores for anything. - Do not use braceless `if/else` statements. `if(x) statement else statement2` should **never** be done. In very specific situations, having braceless if-statements on one line is allowed: `if(cond) return;` would be valid. - Prefer single-line javadoc `/** @return for example */` instead of multiline javadoc whenever possible - Short method/variable names (multipleLongWords should be avoided if it's possible to do so reasonably, especially for variables)