Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

244 lines
14 KiB

  1. <?xml version="1.0"?>
  2. <!DOCTYPE module PUBLIC
  3. "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
  4. "https://checkstyle.org/dtds/configuration_1_3.dtd">
  5. <module name = "Checker">
  6. <property name="charset" value="UTF-8"/>
  7. <property name="severity" value="error"/>
  8. <property name="fileExtensions" value="java, properties, xml"/>
  9. <!-- Checks for whitespace -->
  10. <!-- See http://checkstyle.sf.net/config_whitespace.html -->
  11. <module name="FileTabCharacter">
  12. <property name="eachLine" value="true"/>
  13. </module>
  14. <module name="TreeWalker">
  15. <!-- <module name="OuterTypeFilename"/> -->
  16. <!-- <module name="IllegalTokenText"> -->
  17. <!-- <property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/> -->
  18. <!-- <property name="format" -->
  19. <!-- value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/> -->
  20. <!-- <property name="message" -->
  21. <!-- value="Consider using special escape sequence instead of octal value or Unicode escaped value."/> -->
  22. <!-- </module> -->
  23. <!-- <module name="AvoidEscapedUnicodeCharacters"> -->
  24. <!-- <property name="allowEscapesForControlCharacters" value="true"/> -->
  25. <!-- <property name="allowByTailComment" value="true"/> -->
  26. <!-- <property name="allowNonPrintableEscapes" value="true"/> -->
  27. <!-- </module> -->
  28. <!-- <module name="LineLength"> -->
  29. <!-- <property name="max" value="100"/> -->
  30. <!-- <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/> -->
  31. <!-- </module> -->
  32. <module name="AvoidStarImport"/>
  33. <module name="UnusedImports"/>
  34. <module name="OneTopLevelClass"/>
  35. <module name="NoLineWrap"/>
  36. <module name="EmptyBlock">
  37. <property name="option" value="TEXT"/>
  38. <property name="tokens"
  39. value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
  40. </module>
  41. <!-- <module name="NeedBraces"/> -->
  42. <!-- <module name="LeftCurly"/> -->
  43. <!-- <module name="RightCurly"> -->
  44. <!-- <property name="id" value="RightCurlySame"/> -->
  45. <!-- <property name="tokens" -->
  46. <!-- value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, -->
  47. <!-- LITERAL_DO"/> -->
  48. <!-- </module> -->
  49. <!-- <module name="RightCurly"> -->
  50. <!-- <property name="id" value="RightCurlyAlone"/> -->
  51. <!-- <property name="option" value="alone"/> -->
  52. <!-- <property name="tokens" -->
  53. <!-- value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT, -->
  54. <!-- INSTANCE_INIT"/> -->
  55. <!-- </module> -->
  56. <module name="WhitespaceAround">
  57. <property name="allowEmptyConstructors" value="true"/>
  58. <property name="allowEmptyMethods" value="true"/>
  59. <property name="allowEmptyTypes" value="true"/>
  60. <property name="allowEmptyLoops" value="true"/>
  61. <message key="ws.notFollowed"
  62. value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
  63. <message key="ws.notPreceded"
  64. value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
  65. </module>
  66. <!-- <module name="OneStatementPerLine"/> -->
  67. <!-- <module name="MultipleVariableDeclarations"/> -->
  68. <!-- <module name="ArrayTypeStyle"/> -->
  69. <!-- <module name="MissingSwitchDefault"/> -->
  70. <!-- <module name="FallThrough"/> -->
  71. <!-- <module name="UpperEll"/> -->
  72. <!-- <module name="ModifierOrder"/> -->
  73. <!-- <module name="EmptyLineSeparator"> -->
  74. <!-- <property name="allowNoEmptyLineBetweenFields" value="true"/> -->
  75. <!-- </module> -->
  76. <!-- <module name="SeparatorWrap"> -->
  77. <!-- <property name="id" value="SeparatorWrapDot"/> -->
  78. <!-- <property name="tokens" value="DOT"/> -->
  79. <!-- <property name="option" value="nl"/> -->
  80. <!-- </module> -->
  81. <!-- <module name="SeparatorWrap"> -->
  82. <!-- <property name="id" value="SeparatorWrapComma"/> -->
  83. <!-- <property name="tokens" value="COMMA"/> -->
  84. <!-- <property name="option" value="EOL"/> -->
  85. <!-- </module> -->
  86. <!-- <module name="SeparatorWrap"> -->
  87. <!-- <!-\- ELLIPSIS is EOL until https://github.com/google/styleguide/issues/258 -\-> -->
  88. <!-- <property name="id" value="SeparatorWrapEllipsis"/> -->
  89. <!-- <property name="tokens" value="ELLIPSIS"/> -->
  90. <!-- <property name="option" value="EOL"/> -->
  91. <!-- </module> -->
  92. <!-- <module name="SeparatorWrap"> -->
  93. <!-- <!-\- ARRAY_DECLARATOR is EOL until https://github.com/google/styleguide/issues/259 -\-> -->
  94. <!-- <property name="id" value="SeparatorWrapArrayDeclarator"/> -->
  95. <!-- <property name="tokens" value="ARRAY_DECLARATOR"/> -->
  96. <!-- <property name="option" value="EOL"/> -->
  97. <!-- </module> -->
  98. <!-- <module name="SeparatorWrap"> -->
  99. <!-- <property name="id" value="SeparatorWrapMethodRef"/> -->
  100. <!-- <property name="tokens" value="METHOD_REF"/> -->
  101. <!-- <property name="option" value="nl"/> -->
  102. <!-- </module> -->
  103. <!-- <module name="PackageName"> -->
  104. <!-- <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/> -->
  105. <!-- <message key="name.invalidPattern" -->
  106. <!-- value="Package name ''{0}'' must match pattern ''{1}''."/> -->
  107. <!-- </module> -->
  108. <!-- <module name="TypeName"> -->
  109. <!-- <message key="name.invalidPattern" -->
  110. <!-- value="Type name ''{0}'' must match pattern ''{1}''."/> -->
  111. <!-- </module> -->
  112. <!-- <module name="MemberName"> -->
  113. <!-- <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/> -->
  114. <!-- <message key="name.invalidPattern" -->
  115. <!-- value="Member name ''{0}'' must match pattern ''{1}''."/> -->
  116. <!-- </module> -->
  117. <!-- <module name="ParameterName"> -->
  118. <!-- <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/> -->
  119. <!-- <message key="name.invalidPattern" -->
  120. <!-- value="Parameter name ''{0}'' must match pattern ''{1}''."/> -->
  121. <!-- </module> -->
  122. <!-- <module name="LambdaParameterName"> -->
  123. <!-- <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/> -->
  124. <!-- <message key="name.invalidPattern" -->
  125. <!-- value="Lambda parameter name ''{0}'' must match pattern ''{1}''."/> -->
  126. <!-- </module> -->
  127. <!-- <module name="CatchParameterName"> -->
  128. <!-- <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/> -->
  129. <!-- <message key="name.invalidPattern" -->
  130. <!-- value="Catch parameter name ''{0}'' must match pattern ''{1}''."/> -->
  131. <!-- </module> -->
  132. <!-- <module name="LocalVariableName"> -->
  133. <!-- <property name="tokens" value="VARIABLE_DEF"/> -->
  134. <!-- <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/> -->
  135. <!-- <message key="name.invalidPattern" -->
  136. <!-- value="Local variable name ''{0}'' must match pattern ''{1}''."/> -->
  137. <!-- </module> -->
  138. <!-- <module name="ClassTypeParameterName"> -->
  139. <!-- <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/> -->
  140. <!-- <message key="name.invalidPattern" -->
  141. <!-- value="Class type name ''{0}'' must match pattern ''{1}''."/> -->
  142. <!-- </module> -->
  143. <!-- <module name="MethodTypeParameterName"> -->
  144. <!-- <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/> -->
  145. <!-- <message key="name.invalidPattern" -->
  146. <!-- value="Method type name ''{0}'' must match pattern ''{1}''."/> -->
  147. <!-- </module> -->
  148. <!-- <module name="InterfaceTypeParameterName"> -->
  149. <!-- <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/> -->
  150. <!-- <message key="name.invalidPattern" -->
  151. <!-- value="Interface type name ''{0}'' must match pattern ''{1}''."/> -->
  152. <!-- </module> -->
  153. <!-- <module name="NoFinalizer"/> -->
  154. <!-- <module name="GenericWhitespace"> -->
  155. <!-- <message key="ws.followed" -->
  156. <!-- value="GenericWhitespace ''{0}'' is followed by whitespace."/> -->
  157. <!-- <message key="ws.preceded" -->
  158. <!-- value="GenericWhitespace ''{0}'' is preceded with whitespace."/> -->
  159. <!-- <message key="ws.illegalFollow" -->
  160. <!-- value="GenericWhitespace ''{0}'' should followed by whitespace."/> -->
  161. <!-- <message key="ws.notPreceded" -->
  162. <!-- value="GenericWhitespace ''{0}'' is not preceded with whitespace."/> -->
  163. <!-- </module> -->
  164. <!-- <module name="Indentation"> -->
  165. <!-- <property name="basicOffset" value="2"/> -->
  166. <!-- <property name="braceAdjustment" value="0"/> -->
  167. <!-- <property name="caseIndent" value="2"/> -->
  168. <!-- <property name="throwsIndent" value="4"/> -->
  169. <!-- <property name="lineWrappingIndentation" value="4"/> -->
  170. <!-- <property name="arrayInitIndent" value="2"/> -->
  171. <!-- </module> -->
  172. <!-- <module name="AbbreviationAsWordInName"> -->
  173. <!-- <property name="ignoreFinal" value="false"/> -->
  174. <!-- <property name="allowedAbbreviationLength" value="1"/> -->
  175. <!-- </module> -->
  176. <!-- <module name="OverloadMethodsDeclarationOrder"/> -->
  177. <!-- <module name="VariableDeclarationUsageDistance"/> -->
  178. <!-- <module name="CustomImportOrder"> -->
  179. <!-- <property name="sortImportsInGroupAlphabetically" value="true"/> -->
  180. <!-- <property name="separateLineBetweenGroups" value="true"/> -->
  181. <!-- <property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/> -->
  182. <!-- </module> -->
  183. <!-- <module name="MethodParamPad"/> -->
  184. <!-- <module name="NoWhitespaceBefore"> -->
  185. <!-- <property name="tokens" -->
  186. <!-- value="COMMA, SEMI, POST_INC, POST_DEC, DOT, ELLIPSIS, METHOD_REF"/> -->
  187. <!-- <property name="allowLineBreaks" value="true"/> -->
  188. <!-- </module> -->
  189. <!-- <module name="ParenPad"/> -->
  190. <!-- <module name="OperatorWrap"> -->
  191. <!-- <property name="option" value="NL"/> -->
  192. <!-- <property name="tokens" -->
  193. <!-- value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, -->
  194. <!-- LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF "/> -->
  195. <!-- </module> -->
  196. <!-- <module name="AnnotationLocation"> -->
  197. <!-- <property name="id" value="AnnotationLocationMostCases"/> -->
  198. <!-- <property name="tokens" -->
  199. <!-- value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF"/> -->
  200. <!-- </module> -->
  201. <!-- <module name="AnnotationLocation"> -->
  202. <!-- <property name="id" value="AnnotationLocationVariables"/> -->
  203. <!-- <property name="tokens" value="VARIABLE_DEF"/> -->
  204. <!-- <property name="allowSamelineMultipleAnnotations" value="true"/> -->
  205. <!-- </module> -->
  206. <!-- <module name="NonEmptyAtclauseDescription"/> -->
  207. <!-- <module name="JavadocTagContinuationIndentation"/> -->
  208. <!-- <module name="SummaryJavadoc"> -->
  209. <!-- <property name="forbiddenSummaryFragments" -->
  210. <!-- value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/> -->
  211. <!-- </module> -->
  212. <!-- <module name="JavadocParagraph"/> -->
  213. <!-- <module name="AtclauseOrder"> -->
  214. <!-- <property name="tagOrder" value="@param, @return, @throws, @deprecated"/> -->
  215. <!-- <property name="target" -->
  216. <!-- value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/> -->
  217. <!-- </module> -->
  218. <!-- <module name="JavadocMethod"> -->
  219. <!-- <property name="scope" value="public"/> -->
  220. <!-- <property name="allowMissingParamTags" value="true"/> -->
  221. <!-- <property name="allowMissingThrowsTags" value="true"/> -->
  222. <!-- <property name="allowMissingReturnTag" value="true"/> -->
  223. <!-- <property name="minLineCount" value="2"/> -->
  224. <!-- <property name="allowedAnnotations" value="Override, Test"/> -->
  225. <!-- <property name="allowThrowsTagsForSubclasses" value="true"/> -->
  226. <!-- </module> -->
  227. <!-- <module name="MethodName"> -->
  228. <!-- <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/> -->
  229. <!-- <message key="name.invalidPattern" -->
  230. <!-- value="Method name ''{0}'' must match pattern ''{1}''."/> -->
  231. <!-- </module> -->
  232. <!-- <module name="SingleLineJavadoc"> -->
  233. <!-- <property name="ignoreInlineTags" value="false"/> -->
  234. <!-- </module> -->
  235. <!-- <module name="EmptyCatchBlock"> -->
  236. <!-- <property name="exceptionVariableName" value="expected"/> -->
  237. <!-- </module> -->
  238. <!-- <module name="CommentsIndentation"/> -->
  239. </module>
  240. </module>