mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-11-06 10:06:20 +00:00
eb2d617ed8
This uses pre-commit [1] to check patches are well formed and run several linters on them. We currently do some boring things (check files are syntactically valid) as well as some project-specific ones: - Run illuaminate on the Lua files - Run checkstyle on Java [1]: https://pre-commit.com/
62 lines
3.0 KiB
XML
62 lines
3.0 KiB
XML
<code_scheme name="Project" version="173">
|
|
<JSON>
|
|
<option name="OBJECT_WRAPPING" value="1" />
|
|
<option name="ARRAY_WRAPPING" value="1" />
|
|
</JSON>
|
|
<JavaCodeStyleSettings>
|
|
<option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND">
|
|
<value />
|
|
</option>
|
|
<option name="JD_P_AT_EMPTY_LINES" value="false" />
|
|
<option name="JD_PRESERVE_LINE_FEEDS" value="true" />
|
|
</JavaCodeStyleSettings>
|
|
<codeStyleSettings language="JAVA">
|
|
<option name="KEEP_FIRST_COLUMN_COMMENT" value="false" />
|
|
<option name="BRACE_STYLE" value="2" />
|
|
<option name="CLASS_BRACE_STYLE" value="2" />
|
|
<option name="METHOD_BRACE_STYLE" value="2" />
|
|
<option name="LAMBDA_BRACE_STYLE" value="5" />
|
|
<option name="ELSE_ON_NEW_LINE" value="true" />
|
|
<option name="CATCH_ON_NEW_LINE" value="true" />
|
|
<option name="FINALLY_ON_NEW_LINE" value="true" />
|
|
<option name="SPACE_WITHIN_METHOD_CALL_PARENTHESES" value="true" />
|
|
<option name="SPACE_WITHIN_METHOD_PARENTHESES" value="true" />
|
|
<option name="SPACE_WITHIN_IF_PARENTHESES" value="true" />
|
|
<option name="SPACE_WITHIN_WHILE_PARENTHESES" value="true" />
|
|
<option name="SPACE_WITHIN_FOR_PARENTHESES" value="true" />
|
|
<option name="SPACE_WITHIN_TRY_PARENTHESES" value="true" />
|
|
<option name="SPACE_WITHIN_CATCH_PARENTHESES" value="true" />
|
|
<option name="SPACE_WITHIN_SWITCH_PARENTHESES" value="true" />
|
|
<option name="SPACE_WITHIN_SYNCHRONIZED_PARENTHESES" value="true" />
|
|
<option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACES" value="true" />
|
|
<option name="SPACE_BEFORE_IF_PARENTHESES" value="false" />
|
|
<option name="SPACE_BEFORE_WHILE_PARENTHESES" value="false" />
|
|
<option name="SPACE_BEFORE_FOR_PARENTHESES" value="false" />
|
|
<option name="SPACE_BEFORE_TRY_PARENTHESES" value="false" />
|
|
<option name="SPACE_BEFORE_CATCH_PARENTHESES" value="false" />
|
|
<option name="SPACE_BEFORE_SWITCH_PARENTHESES" value="false" />
|
|
<option name="SPACE_BEFORE_SYNCHRONIZED_PARENTHESES" value="false" />
|
|
<option name="SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE" value="true" />
|
|
<option name="KEEP_SIMPLE_METHODS_IN_ONE_LINE" value="true" />
|
|
<option name="KEEP_SIMPLE_LAMBDAS_IN_ONE_LINE" value="true" />
|
|
<option name="KEEP_SIMPLE_CLASSES_IN_ONE_LINE" value="true" />
|
|
<option name="IF_BRACE_FORCE" value="1" />
|
|
<option name="DOWHILE_BRACE_FORCE" value="1" />
|
|
<option name="WHILE_BRACE_FORCE" value="1" />
|
|
<option name="FOR_BRACE_FORCE" value="1" />
|
|
<option name="SPACE_WITHIN_ANNOTATION_PARENTHESES" value="true" />
|
|
<indentOptions>
|
|
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
|
</indentOptions>
|
|
</codeStyleSettings>
|
|
<codeStyleSettings language="JSON">
|
|
<option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
|
|
<option name="SPACE_WITHIN_BRACKETS" value="true" />
|
|
<option name="SPACE_WITHIN_BRACES" value="true" />
|
|
<indentOptions>
|
|
<option name="INDENT_SIZE" value="4" />
|
|
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
|
</indentOptions>
|
|
</codeStyleSettings>
|
|
</code_scheme>
|