mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
DOCS/contribute: increase hard column limit to 100
I'm guilty of violating this, but surely I can't be the only one. 85 is pretty small and there's plenty of lines in the codebase that go well over that. Surely nobody programs on tiny screens anymore and the kernel raised the limit to 100 a few years ago so let's just copy that.
This commit is contained in:
parent
1382a854c9
commit
7768c3d035
@ -153,9 +153,9 @@ mpv uses C11 with K&R formatting, with some exceptions.
|
||||
some_function(a, b, c);
|
||||
}
|
||||
```
|
||||
- Break lines on 80 columns. There is a hard limit of 85 columns. You may ignore
|
||||
- Break lines on 80 columns. There is a hard limit of 100 columns. You may ignore
|
||||
this limit if there's a strong case that not breaking the line will increase
|
||||
readability. Going over 85 columns might provoke endless discussions about
|
||||
readability. Going over 100 columns might provoke endless discussions about
|
||||
whether such a limit is needed or not, so avoid it.
|
||||
- If the body of an if/for/while statement has more than 1 physical lines, then
|
||||
always add braces, even if they're technically redundant.
|
||||
|
Loading…
Reference in New Issue
Block a user