i am using checkstyle.
i want to configure checkstyle so that code indentation use 2 space. For example :-
while(condition) {
if(condition) {
while(condition)
}
}
Please note the inentation is using 2 spaces. For example :- if block startted after 2 spaces.
i tried
<module name="Checker">
<module name="Indentation">
<property name="basicOffset" value="2"/>
<property name="caseIndent" value="2"/>
</module>
</module>
But it does not give warning on applying checkstyles when i add 4 spaces instead of 2 like below
if(condition) {
while(condition)
}
I am not getting whats the issue?