RFR: 8354919: Move HotSpot .editorconfig into the global .editorconfig

Julian Waters jwaters at openjdk.org
Sun Apr 27 15:10:45 UTC 2025


On Fri, 25 Apr 2025 07:26:39 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> The src/hotspot directory should ideally only be used for HotSpot source files, and we should avoid polluting it with an .editorconfig. A cleaner solution exists since we can just specify the desired code formatting for HotSpot as an override in the root .editorconfig
>
> .editorconfig line 10:
> 
>> 8: 
>> 9: [src/hotspot/**.{cpp,hpp,h}]
>> 10: indent_style = space
> 
> Just wondering - will the new src/hotspot block inherit the trim_trailing_whitespace setting from the top-level [*] block?

>From documentation that I checked it should, but I'll test it just to be sure

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/24714#discussion_r2062652131


More information about the hotspot-dev mailing list