Ide CheckStyle注释

Ide CheckStyle注释,ide,checkstyle,Ide,Checkstyle,在Idea中,我打开选项“第一栏评论” CheckStyle抛出一个错误 如何解决 Comment has incorrect indentation level 0, expected is 10, indentation should be the same level as line 139. [CommentsIndentation] 编辑2019年6月28日 观念偏好 如果阻止 148: CompletableFuture.allOf(terminateE

在Idea中,我打开选项“第一栏评论”

CheckStyle抛出一个错误 如何解决

 Comment has incorrect indentation level 0, expected is 10, indentation should be the same level as line 139. [CommentsIndentation]
编辑2019年6月28日

观念偏好

如果阻止

148:            CompletableFuture.allOf(terminateEnvironmentResponseCompletableFuture, checkInvoicePaidResponseCompletableFuture,
149:                inactiveUserResponseCompletableFuture).whenComplete((v, th) -> {
151:              if (th != null) {
152:                log.error(th.getMessage(), th);
153:              }
154:              finishDelete(userDto);
155:            });
错误:

....java:150: 'if' has incorrect indentation level 14, expected level should be 18. [Indentation]
....java:151: 'if' child has incorrect indentation level 16, expected level should be 20. [Indentation]
....java:152: 'if rcurly' has incorrect indentation level 14, expected level should be 18. [Indentation]
....java:153: 'block' child has incorrect indentation level 14, expected level should be 18. [Indentation]
....java:154: 'block rcurly' has in*correct indentation level 12, expected level should be 16. [Indentation]
....java:110: Comment has incorrect indentation level 0, expected is 10, indentation should be the same level as line 111. [CommentsIndentation]
....java:112: Comment has incorrect indentation level 0, expected is 10, indentation should be the same level as line 113. [CommentsIndentation]
评论

108:          .withIdentity("ServicesTrigger", "TriggerGroup")
109://           is fired every day at 3:00 am
110:          .withSchedule(cronSchedule("0 0 3 * * ?"))
111://          .withSchedule(SimpleScheduleBuilder.simpleSchedule().withIntervalInSeconds(12).repeatForever())
112:          .forJob(_servicesJob)
113:          .build();
114:      _scheduler.scheduleJob(_servicesJob, serviceTrigger);
错误:

....java:150: 'if' has incorrect indentation level 14, expected level should be 18. [Indentation]
....java:151: 'if' child has incorrect indentation level 16, expected level should be 20. [Indentation]
....java:152: 'if rcurly' has incorrect indentation level 14, expected level should be 18. [Indentation]
....java:153: 'block' child has incorrect indentation level 14, expected level should be 18. [Indentation]
....java:154: 'block rcurly' has in*correct indentation level 12, expected level should be 16. [Indentation]
....java:110: Comment has incorrect indentation level 0, expected is 10, indentation should be the same level as line 111. [CommentsIndentation]
....java:112: Comment has incorrect indentation level 0, expected is 10, indentation should be the same level as line 113. [CommentsIndentation]
在Idea中,我打开选项“第一栏评论”
CheckStyle抛出一个错误,如何解决它

 Comment has incorrect indentation level 0, expected is 10, indentation should be the same level as line 139. [CommentsIndentation]
CommentsIndentation
当前不支持在第一列中需要注释。默认行为是注释必须与周围代码位于同一缩进处

如果您想从
CommentsIndentation
中看到这种行为,您需要在github的checkstyle上创建一个问题。目前,我建议禁用该检查。将其从配置中删除或注释掉

在Idea中,我打开选项“第一栏评论”
CheckStyle抛出一个错误,如何解决它

 Comment has incorrect indentation level 0, expected is 10, indentation should be the same level as line 139. [CommentsIndentation]
CommentsIndentation
当前不支持在第一列中需要注释。默认行为是注释必须与周围代码位于同一缩进处


如果您想从
CommentsIndentation
中看到这种行为,您需要在github的checkstyle上创建一个问题。目前,我建议禁用该检查。请将其从配置中删除或注释掉。

请给我们一个示例java代码。请给我们一个示例java代码。