-
Bug
-
Resolution: Done
-
Low
-
None
This issue has been hijacked to gather together another of indentation style related issues which have been made subtasks of this general issue.
—
Right now, the rules about wrapping lines in code says clearly that a 8-spaces indentation must be used, but later the example shows the use for a control structure (if), not for general use were people could think that 4-spaces is the norm.
http://docs.moodle.org/dev/Coding_style#Wrapping_lines
This is a request to clarify that by:
1) Explicitly saying that the 8-spaces rule is for any code (general and control structures).
2) Providing one more example of the rule in general code.
Ciao
PS: All this comes from CONTRIB-3562 and current inability for the codechecker to verify that indentation. So for now, better make the rule clearer.
- has been marked as being related by
-
MDLSITE-4184 Improve control structure wrapping style
-
- Open
-
-
MDLSITE-2825 How to indent line with many object operators
-
- Closed
-
-
CONTRIB-6032 Determine support for fluent interfaces
-
- Closed
-
-
MDLSITE-6399 Allow line wrapping/indentation rules to follow PSR-12 rules
-
- Open
-
- is duplicated by
-
MDLSITE-4389 RFC: Coding style for wrapping the code
-
- Open
-