Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check Style Indentation violation - 'public' have incorrect indentation level 4, expected level should be 8

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

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

at this line

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

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

like image 820
Srikanth A Avatar asked Jan 07 '23 20:01

Srikanth A


1 Answers

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.

like image 57
Trisha Avatar answered Jan 10 '23 09:01

Trisha