Eclipse Formatting Against Checkstyle Mismatch

we use the eclipse formatting profile, which indicates that the line width is 125 characters and that the method parameters should be wrapped when necessary. Now this line does not break into two parts:

    public FeaturePart(final Long fooBarBarBarBar, final String foo, final int sequenceNumber, final boolean fooBarBarBazBar) {

Please note that characters older than 125 are not letters. Checkstyle with the same line width (125 characters) complains about the length of this line.

Is there a way so far for matching auto-fetch eclipse and checkstyle? I tried to find any settings that can help both in checkstyle style and in formatting, but failed.

+3
source share
1

. Eclipse Checkstyle - , -. , .

, Eclipse . , Eclipse 3.6 . . .

+2

Source: https://habr.com/ru/post/1757640/


All Articles