RFR: 7903479: JMH: Add .editorconfig so IDEs would pick up the common settings automatically: indent, trim whitespace

Vladimir Sitnikov vsitnikov at openjdk.org
Mon May 29 07:12:39 UTC 2023


On Mon, 29 May 2023 07:03:21 GMT, Vladimir Sitnikov <vsitnikov at openjdk.org> wrote:

> See https://bugs.openjdk.org/browse/CODETOOLS-7903479
> 
> I tried re-format random files from JMH, and they either kept intact, or the changes were minimal.

.editorconfig line 9:

> 7: trim_trailing_whitespace = true
> 8: insert_final_newline = true
> 9: ij_any_blank_lines_after_class_header = 0

The code is not particularly consistent in placing a blank line after class header, however, I guess it would make sense to specify a preferred style

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

PR Review Comment: https://git.openjdk.org/jmh/pull/105#discussion_r1208988292


More information about the jmh-dev mailing list