Skip to content

Commit 6e1bc02

Browse files
andimarekbbakerman
authored andcommitted
update code style to always force curly braces in if for while
1 parent bfee885 commit 6e1bc02

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

graphql-java-code-style.xml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<code_scheme name="graphql-java" version="173">
2+
<GroovyCodeStyleSettings>
3+
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999"/>
4+
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999"/>
5+
</GroovyCodeStyleSettings>
6+
<JavaCodeStyleSettings>
27
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999"/>
38
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999"/>
49
<option name="JD_ADD_BLANK_AFTER_PARM_COMMENTS" value="true"/>
510
<option name="JD_ADD_BLANK_AFTER_RETURN" value="true"/>
611
<option name="JD_P_AT_EMPTY_LINES" value="false"/>
7-
<GroovyCodeStyleSettings>
8-
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999"/>
9-
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999"/>
10-
</GroovyCodeStyleSettings>
11-
<JavaCodeStyleSettings>
12-
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999"/>
13-
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999"/>
14-
<option name="JD_ADD_BLANK_AFTER_PARM_COMMENTS" value="true"/>
15-
<option name="JD_ADD_BLANK_AFTER_RETURN" value="true"/>
16-
<option name="JD_P_AT_EMPTY_LINES" value="false"/>
17-
</JavaCodeStyleSettings>
12+
</JavaCodeStyleSettings>
13+
<codeStyleSettings language="JAVA">
14+
<option name="IF_BRACE_FORCE" value="3"/>
15+
<option name="DOWHILE_BRACE_FORCE" value="3"/>
16+
<option name="WHILE_BRACE_FORCE" value="3"/>
17+
<option name="FOR_BRACE_FORCE" value="3"/>
18+
</codeStyleSettings>
1819
</code_scheme>

0 commit comments

Comments
 (0)