Mirror of retrofit, Type-safe HTTP client for Android and Java by Square, Inc.
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.

checkstyle.xml 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?xml version="1.0"?>
  2. <!DOCTYPE module PUBLIC
  3. "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
  4. "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
  5. <module name="Checker">
  6. <module name="NewlineAtEndOfFile">
  7. <property name="lineSeparator" value="lf" />
  8. </module>
  9. <module name="FileLength"/>
  10. <module name="FileTabCharacter"/>
  11. <!-- Trailing spaces -->
  12. <module name="RegexpSingleline">
  13. <property name="format" value="\s+$"/>
  14. <property name="message" value="Line has trailing spaces."/>
  15. </module>
  16. <module name="TreeWalker">
  17. <property name="cacheFile" value="${checkstyle.cache.file}"/>
  18. <!-- Checks for Javadoc comments. -->
  19. <!-- See http://checkstyle.sf.net/config_javadoc.html -->
  20. <!--module name="JavadocMethod"/-->
  21. <!--module name="JavadocType"/-->
  22. <!--module name="JavadocVariable"/-->
  23. <!--module name="JavadocStyle"/-->
  24. <!-- Checks for Naming Conventions. -->
  25. <!-- See http://checkstyle.sf.net/config_naming.html -->
  26. <module name="ConstantName"/>
  27. <module name="LocalFinalVariableName"/>
  28. <module name="LocalVariableName"/>
  29. <module name="MemberName"/>
  30. <module name="MethodName"/>
  31. <!--<module name="PackageName"/>-->
  32. <module name="ParameterName"/>
  33. <module name="StaticVariableName"/>
  34. <module name="TypeName"/>
  35. <!-- Checks for imports -->
  36. <!-- See http://checkstyle.sf.net/config_import.html -->
  37. <module name="AvoidStarImport"/>
  38. <module name="IllegalImport"/> <!-- defaults to sun.* packages -->
  39. <module name="RedundantImport"/>
  40. <module name="UnusedImports">
  41. <property name="processJavadoc" value="true"/>
  42. </module>
  43. <!-- Checks for Size Violations. -->
  44. <!-- See http://checkstyle.sf.net/config_sizes.html -->
  45. <module name="LineLength">
  46. <property name="max" value="100"/>
  47. </module>
  48. <!--<module name="MethodLength"/>-->
  49. <!--module name="ParameterNumber"/-->
  50. <!-- Checks for whitespace -->
  51. <!-- See http://checkstyle.sf.net/config_whitespace.html -->
  52. <module name="GenericWhitespace"/>
  53. <module name="EmptyForIteratorPad"/>
  54. <module name="MethodParamPad"/>
  55. <module name="NoWhitespaceAfter">
  56. <property name="tokens" value="BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS"/>
  57. </module>
  58. <module name="NoWhitespaceBefore"/>
  59. <module name="OperatorWrap"/>
  60. <module name="ParenPad"/>
  61. <module name="TypecastParenPad"/>
  62. <module name="WhitespaceAfter"/>
  63. <module name="WhitespaceAround"/>
  64. <!-- Modifier Checks -->
  65. <!-- See http://checkstyle.sf.net/config_modifiers.html -->
  66. <module name="ModifierOrder"/>
  67. <module name="RedundantModifier"/>
  68. <!-- Checks for blocks. You know, those {}'s -->
  69. <!-- See http://checkstyle.sf.net/config_blocks.html -->
  70. <!--module name="AvoidNestedBlocks"/-->
  71. <!--module name="EmptyBlock"/-->
  72. <module name="LeftCurly"/>
  73. <!--module name="NeedBraces"/-->
  74. <module name="RightCurly"/>
  75. <!-- Checks for common coding problems -->
  76. <!-- See http://checkstyle.sf.net/config_coding.html -->
  77. <!--module name="AvoidInlineConditionals"/-->
  78. <module name="CovariantEquals"/>
  79. <module name="EmptyStatement"/>
  80. <module name="EqualsAvoidNull"/>
  81. <module name="EqualsHashCode"/>
  82. <!--module name="HiddenField"/-->
  83. <module name="IllegalInstantiation"/>
  84. <!--module name="InnerAssignment"/-->
  85. <!--module name="MagicNumber"/-->
  86. <module name="MissingSwitchDefault"/>
  87. <module name="SimplifyBooleanExpression"/>
  88. <module name="SimplifyBooleanReturn"/>
  89. <!-- Checks for class design -->
  90. <!-- See http://checkstyle.sf.net/config_design.html -->
  91. <!--module name="DesignForExtension"/-->
  92. <!--module name="FinalClass"/-->
  93. <!--module name="HideUtilityClassConstructor"/-->
  94. <module name="InterfaceIsType"/>
  95. <!--module name="VisibilityModifier"/-->
  96. <!-- Miscellaneous other checks. -->
  97. <!-- See http://checkstyle.sf.net/config_misc.html -->
  98. <module name="ArrayTypeStyle"/>
  99. <!--module name="FinalParameters"/-->
  100. <!--module name="TodoComment"/-->
  101. <module name="UpperEll"/>
  102. <module name="Indentation">
  103. <property name="basicOffset" value="2"/>
  104. <property name="caseIndent" value="2"/>
  105. </module>
  106. </module>
  107. </module>