Bug 220982 - Set ruby-indent-level to 4
Summary: Set ruby-indent-level to 4
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-01-26 07:34 PST by Angelos Oikonomopoulos
Modified: 2021-01-27 04:13 PST (History)
6 users (show)

See Also:


Attachments
Patch (883 bytes, patch)
2021-01-26 07:36 PST, Angelos Oikonomopoulos
no flags Details | Formatted Diff | Diff
Patch (1.32 KB, patch)
2021-01-26 08:15 PST, Angelos Oikonomopoulos
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Angelos Oikonomopoulos 2021-01-26 07:34:51 PST
Set ruby-indent-level to 4
Comment 1 Angelos Oikonomopoulos 2021-01-26 07:36:30 PST
Created attachment 418417 [details]
Patch
Comment 2 Angelos Oikonomopoulos 2021-01-26 08:15:56 PST
Created attachment 418422 [details]
Patch
Comment 3 Fujii Hironori 2021-01-26 11:45:20 PST
What about other languages? Perl and Python?
What about an idea adding the following?

[*]
indent_style = space
indent_size = 4
Comment 4 Angelos Oikonomopoulos 2021-01-27 01:50:32 PST
(In reply to Fujii Hironori from comment #3)
> What about other languages? Perl and Python?
> What about an idea adding the following?
> 
> [*]
> indent_style = space
> indent_size = 4


Adding a wildcard would make a coding style decision for future languages as well, something I'm not terribly comfortable with.

I know the webkit code style guidelines dictate that "The indent size is 4 spaces" but they also have a python section that simply says "For Python use PEP8 style". So I can't assume an indent size of 4 is mandated for every language used in WebKit (as it might reasonably come in conflict with much more established norms in a language community).

Also, I'm not aware of the coding style conventions for all the languages as they are currently used in WebKit. If someone who has touched a lot of perl/python files in WebKit feels that's appropriate, we could add them explicitly alongside C++, C and ruby?
Comment 5 EWS 2021-01-27 04:12:34 PST
Committed r271945: <https://trac.webkit.org/changeset/271945>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 418422 [details].
Comment 6 Radar WebKit Bug Importer 2021-01-27 04:13:16 PST
<rdar://problem/73657473>