mirror of
https://codeberg.org/gitnex/GitNex
synced 2024-12-23 00:48:57 +01:00
325560c08d
Run `gradle :app:spotlessApply` to apply formatting. # Changes from current code format This does not match with the old intellij based code format because I can't apply some rules there. - newlines after `else`, `catch` etc. (means there are `} else {` statements) - no spaces around `if` braces (there are statements like `if (true) {` instead of `if(true) {` Closes https://codeberg.org/gitnex/GitNex/issues/1187 Closes https://codeberg.org/gitnex/GitNex/issues/1202 Co-authored-by: qwerty287 <ndev@web.de> Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1208 Reviewed-by: 6543 <6543@obermui.de> Reviewed-by: M M Arif <mmarif@noreply.codeberg.org> Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org> Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
171 lines
7.9 KiB
XML
171 lines
7.9 KiB
XML
<component name="ProjectCodeStyleConfiguration">
|
|
<code_scheme name="Project" version="173">
|
|
<AndroidXmlCodeStyleSettings>
|
|
<option name="USE_CUSTOM_SETTINGS" value="true" />
|
|
</AndroidXmlCodeStyleSettings>
|
|
<JavaCodeStyleSettings>
|
|
<option name="IMPORT_LAYOUT_TABLE">
|
|
<value>
|
|
<package name="android" withSubpackages="true" static="false"/>
|
|
<package name="androidx" withSubpackages="true" static="false"/>
|
|
<package name="com" withSubpackages="true" static="false"/>
|
|
<package name="junit" withSubpackages="true" static="false"/>
|
|
<package name="net" withSubpackages="true" static="false"/>
|
|
<package name="org" withSubpackages="true" static="false"/>
|
|
<package name="java" withSubpackages="true" static="false"/>
|
|
<package name="javax" withSubpackages="true" static="false"/>
|
|
<package name="" withSubpackages="true" static="false"/>
|
|
<package name="" withSubpackages="true" static="true"/>
|
|
</value>
|
|
</option>
|
|
</JavaCodeStyleSettings>
|
|
<XML>
|
|
<option name="XML_KEEP_WHITESPACES" value="true" />
|
|
<option name="XML_ALIGN_ATTRIBUTES" value="false"/>
|
|
</XML>
|
|
<codeStyleSettings language="JAVA">
|
|
<option name="RIGHT_MARGIN" value="220"/>
|
|
<option name="KEEP_LINE_BREAKS" value="false"/>
|
|
<option name="KEEP_FIRST_COLUMN_COMMENT" value="false"/>
|
|
<option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false"/>
|
|
<option name="BLANK_LINES_AROUND_FIELD_IN_INTERFACE" value="1"/>
|
|
<option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1"/>
|
|
<option name="BLANK_LINES_BEFORE_CLASS_END" value="1"/>
|
|
<option name="ELSE_ON_NEW_LINE" value="false"/>
|
|
<option name="CATCH_ON_NEW_LINE" value="false"/>
|
|
<option name="FINALLY_ON_NEW_LINE" value="false"/>
|
|
<option name="ALIGN_MULTILINE_PARAMETERS" value="false"/>
|
|
<option name="SPACE_BEFORE_IF_PARENTHESES" value="true"/>
|
|
<option name="SPACE_BEFORE_WHILE_PARENTHESES" value="true"/>
|
|
<option name="SPACE_BEFORE_FOR_PARENTHESES" value="true"/>
|
|
<option name="SPACE_BEFORE_TRY_PARENTHESES" value="true"/>
|
|
<option name="SPACE_BEFORE_CATCH_PARENTHESES" value="true"/>
|
|
<option name="SPACE_BEFORE_SWITCH_PARENTHESES" value="true"/>
|
|
<option name="SPACE_BEFORE_SYNCHRONIZED_PARENTHESES" value="true"/>
|
|
<option name="CALL_PARAMETERS_WRAP" value="1"/>
|
|
<option name="METHOD_PARAMETERS_WRAP" value="1"/>
|
|
<option name="THROWS_LIST_WRAP" value="1"/>
|
|
<option name="METHOD_CALL_CHAIN_WRAP" value="1"/>
|
|
<option name="TERNARY_OPERATION_WRAP" value="1"/>
|
|
<option name="ARRAY_INITIALIZER_WRAP" value="1"/>
|
|
<option name="IF_BRACE_FORCE" value="3"/>
|
|
<indentOptions>
|
|
<option name="USE_TAB_CHARACTER" value="true"/>
|
|
<option name="SMART_TABS" value="true"/>
|
|
</indentOptions>
|
|
</codeStyleSettings>
|
|
<codeStyleSettings language="XML">
|
|
<indentOptions>
|
|
<option name="CONTINUATION_INDENT_SIZE" value="4"/>
|
|
</indentOptions>
|
|
<arrangement>
|
|
<rules>
|
|
<section>
|
|
<rule>
|
|
<match>
|
|
<AND>
|
|
<NAME>xmlns:android</NAME>
|
|
<XML_ATTRIBUTE/>
|
|
<XML_NAMESPACE>^$</XML_NAMESPACE>
|
|
</AND>
|
|
</match>
|
|
</rule>
|
|
</section>
|
|
<section>
|
|
<rule>
|
|
<match>
|
|
<AND>
|
|
<NAME>xmlns:.*</NAME>
|
|
<XML_ATTRIBUTE/>
|
|
<XML_NAMESPACE>^$</XML_NAMESPACE>
|
|
</AND>
|
|
</match>
|
|
<order>BY_NAME</order>
|
|
</rule>
|
|
</section>
|
|
<section>
|
|
<rule>
|
|
<match>
|
|
<AND>
|
|
<NAME>.*:id</NAME>
|
|
<XML_ATTRIBUTE/>
|
|
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
|
|
</AND>
|
|
</match>
|
|
</rule>
|
|
</section>
|
|
<section>
|
|
<rule>
|
|
<match>
|
|
<AND>
|
|
<NAME>.*:name</NAME>
|
|
<XML_ATTRIBUTE/>
|
|
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
|
|
</AND>
|
|
</match>
|
|
</rule>
|
|
</section>
|
|
<section>
|
|
<rule>
|
|
<match>
|
|
<AND>
|
|
<NAME>name</NAME>
|
|
<XML_ATTRIBUTE/>
|
|
<XML_NAMESPACE>^$</XML_NAMESPACE>
|
|
</AND>
|
|
</match>
|
|
</rule>
|
|
</section>
|
|
<section>
|
|
<rule>
|
|
<match>
|
|
<AND>
|
|
<NAME>style</NAME>
|
|
<XML_ATTRIBUTE/>
|
|
<XML_NAMESPACE>^$</XML_NAMESPACE>
|
|
</AND>
|
|
</match>
|
|
</rule>
|
|
</section>
|
|
<section>
|
|
<rule>
|
|
<match>
|
|
<AND>
|
|
<NAME>.*</NAME>
|
|
<XML_ATTRIBUTE/>
|
|
<XML_NAMESPACE>^$</XML_NAMESPACE>
|
|
</AND>
|
|
</match>
|
|
<order>BY_NAME</order>
|
|
</rule>
|
|
</section>
|
|
<section>
|
|
<rule>
|
|
<match>
|
|
<AND>
|
|
<NAME>.*</NAME>
|
|
<XML_ATTRIBUTE/>
|
|
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
|
|
</AND>
|
|
</match>
|
|
<order>ANDROID_ATTRIBUTE_ORDER</order>
|
|
</rule>
|
|
</section>
|
|
<section>
|
|
<rule>
|
|
<match>
|
|
<AND>
|
|
<NAME>.*</NAME>
|
|
<XML_ATTRIBUTE/>
|
|
<XML_NAMESPACE>.*</XML_NAMESPACE>
|
|
</AND>
|
|
</match>
|
|
<order>BY_NAME</order>
|
|
</rule>
|
|
</section>
|
|
</rules>
|
|
</arrangement>
|
|
</codeStyleSettings>
|
|
</code_scheme>
|
|
</component>
|