-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
I propose adding .editorconfig files so it would be easier for the contributors to configure basic editor settings.
For instance, there's jcheck configuration for managing whitespace: https://github.com/openjdk/jdk/blob/52ee570025589d4d813ec4deae1f6133ca83156b/.jcheck/conf#L17-L19
Unfortunately, contributors have to configure the same in their editors manually as jcheck configuration is not widespread.
The same settings could be configured in `.editorconfig`:
{noformat}
[{*.cpp,*hpp}]
trim_trailing_whitespace = true
{noformat}
Then many IDEs would be able to autoconfigure the settings, and trim the trailing whitespace on save.
It would be nice if jcheck could pick settings from {{.editorconfig}}. Then the corresponding configuration could be stored in a single place only.
See https://editorconfig.org/
For instance, there's jcheck configuration for managing whitespace: https://github.com/openjdk/jdk/blob/52ee570025589d4d813ec4deae1f6133ca83156b/.jcheck/conf#L17-L19
Unfortunately, contributors have to configure the same in their editors manually as jcheck configuration is not widespread.
The same settings could be configured in `.editorconfig`:
{noformat}
[{*.cpp,*hpp}]
trim_trailing_whitespace = true
{noformat}
Then many IDEs would be able to autoconfigure the settings, and trim the trailing whitespace on save.
It would be nice if jcheck could pick settings from {{.editorconfig}}. Then the corresponding configuration could be stored in a single place only.
See https://editorconfig.org/
- links to
-
Review(master) openjdk/jdk/23693