检查样式缩进违规 - 'public'有不正确的缩进级别4,预期级别应为8 [英] Check Style Indentation violation - 'public' have incorrect indentation level 4, expected level should be 8

查看:753
本文介绍了检查样式缩进违规 - 'public'有不正确的缩进级别4,预期级别应为8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到了关于压力规则的checkstyle声纳违规(com.puppycrawl.tools.checkstyle.checks.indentation)

I am getting an checkstyle sonar violation on indendation rule (com.puppycrawl.tools.checkstyle.checks.indentation)

'public'有不正确的缩进级别4,预期水平应为8。

'public' have incorrect indentation level 4, expected level should be 8.

此行

    public Response getItem(@PathParam(CODE) final ProgramCode programCode,

在Intelliji中,请建议如何更改缩进级别为8

In Intelliji, Kindly suggest on how to change the indentation level to 8

推荐答案

打开首选项(Mac上的cmd +,Windows上的ctrl + alt + s),以及转到编辑器 - >代码样式 - > Java。在制表符和缩进空格上,您可以将缩进设置为8。

Open up preferences (cmd + , on the Mac, ctrl + alt + s on Windows), and go to Editor -> Code Style -> Java. On the tabs and indents spaces you can set the indents to 8.

这篇关于检查样式缩进违规 - 'public'有不正确的缩进级别4,预期级别应为8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆