Closed Bug 1037436 Opened 11 years ago Closed 11 years ago

Coding Style Guide operator placement contradicts gecko-dev code base

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: anaran, Unassigned)

References

()

Details

https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Operators recommends to put operators at the begin of continuations lines, not at end of previous line. This is against current coding practice, as demonstrated by following commands. /tmp/git.mozilla.org/gecko-dev$ grep -rE "^\s*[-+,:?]" --include=*.js browser | grep -vE ":\s*(\-\-|\+\+)" | wc 1091 5472 104753 /tmp/git.mozilla.org/gecko-dev$ grep -rE "[-+,:?]\s*$" --include=*.js browser | wc 85037 377303 7788389 /tmp/git.mozilla.org/gecko-dev$ I suggest to update the coding style guide to better agree with current practice.
OS: Windows XP → All
Hardware: x86 → All
A bug is not the appropriate venue for such a suggestion, you should bring it up to the dev-platform or firefox-dev mailing lists. It certainly isn't something specific to devtools. At the sametime you should keep in mind that the style guide is not a rigid set of rules, and different modules (and module owners) often have slightly different opinions.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.