ktlintCodeStyle.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <code_scheme name="Project" version="173">
  2. <JetCodeStyleSettings>
  3. <option name="PACKAGES_TO_USE_STAR_IMPORTS">
  4. <value>
  5. <package name="kotlinx.android.synthetic" withSubpackages="true" static="false" />
  6. </value>
  7. </option>
  8. <option name="NAME_COUNT_TO_USE_STAR_IMPORT" value="2147483647" />
  9. <option name="NAME_COUNT_TO_USE_STAR_IMPORT_FOR_MEMBERS" value="2147483647" />
  10. <option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
  11. </JetCodeStyleSettings>
  12. <codeStyleSettings language="XML">
  13. <indentOptions>
  14. <option name="CONTINUATION_INDENT_SIZE" value="4" />
  15. </indentOptions>
  16. <arrangement>
  17. <rules>
  18. <section>
  19. <rule>
  20. <match>
  21. <AND>
  22. <NAME>xmlns:android</NAME>
  23. <XML_ATTRIBUTE />
  24. <XML_NAMESPACE>^$</XML_NAMESPACE>
  25. </AND>
  26. </match>
  27. </rule>
  28. </section>
  29. <section>
  30. <rule>
  31. <match>
  32. <AND>
  33. <NAME>xmlns:.*</NAME>
  34. <XML_ATTRIBUTE />
  35. <XML_NAMESPACE>^$</XML_NAMESPACE>
  36. </AND>
  37. </match>
  38. <order>BY_NAME</order>
  39. </rule>
  40. </section>
  41. <section>
  42. <rule>
  43. <match>
  44. <AND>
  45. <NAME>.*:id</NAME>
  46. <XML_ATTRIBUTE />
  47. <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
  48. </AND>
  49. </match>
  50. </rule>
  51. </section>
  52. <section>
  53. <rule>
  54. <match>
  55. <AND>
  56. <NAME>.*:name</NAME>
  57. <XML_ATTRIBUTE />
  58. <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
  59. </AND>
  60. </match>
  61. </rule>
  62. </section>
  63. <section>
  64. <rule>
  65. <match>
  66. <AND>
  67. <NAME>name</NAME>
  68. <XML_ATTRIBUTE />
  69. <XML_NAMESPACE>^$</XML_NAMESPACE>
  70. </AND>
  71. </match>
  72. </rule>
  73. </section>
  74. <section>
  75. <rule>
  76. <match>
  77. <AND>
  78. <NAME>style</NAME>
  79. <XML_ATTRIBUTE />
  80. <XML_NAMESPACE>^$</XML_NAMESPACE>
  81. </AND>
  82. </match>
  83. </rule>
  84. </section>
  85. <section>
  86. <rule>
  87. <match>
  88. <AND>
  89. <NAME>.*</NAME>
  90. <XML_ATTRIBUTE />
  91. <XML_NAMESPACE>^$</XML_NAMESPACE>
  92. </AND>
  93. </match>
  94. <order>BY_NAME</order>
  95. </rule>
  96. </section>
  97. <section>
  98. <rule>
  99. <match>
  100. <AND>
  101. <NAME>.*</NAME>
  102. <XML_ATTRIBUTE />
  103. <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
  104. </AND>
  105. </match>
  106. <order>ANDROID_ATTRIBUTE_ORDER</order>
  107. </rule>
  108. </section>
  109. <section>
  110. <rule>
  111. <match>
  112. <AND>
  113. <NAME>.*</NAME>
  114. <XML_ATTRIBUTE />
  115. <XML_NAMESPACE>.*</XML_NAMESPACE>
  116. </AND>
  117. </match>
  118. <order>BY_NAME</order>
  119. </rule>
  120. </section>
  121. </rules>
  122. </arrangement>
  123. </codeStyleSettings>
  124. <codeStyleSettings language="kotlin">
  125. <option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
  126. <option name="LINE_COMMENT_AT_FIRST_COLUMN" value="false" />
  127. <option name="LINE_COMMENT_ADD_SPACE" value="true" />
  128. <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1" />
  129. <option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
  130. <option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="0" />
  131. <option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
  132. <indentOptions>
  133. <option name="CONTINUATION_INDENT_SIZE" value="4" />
  134. </indentOptions>
  135. </codeStyleSettings>
  136. </code_scheme>