checkstyle.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. {
  2. "defaultSeverity": "INFO",
  3. "checks": [
  4. {
  5. "type": "CodeSimilarity"
  6. },
  7. {
  8. "type": "DefaultComesLast"
  9. },
  10. {
  11. "type": "DocCommentStyle"
  12. },
  13. {
  14. "type": "ERegLiteral"
  15. },
  16. {
  17. "props": {
  18. "tokens": [
  19. "CLASS_DEF",
  20. "ENUM_DEF",
  21. "ABSTRACT_DEF",
  22. "TYPEDEF_DEF",
  23. "INTERFACE_DEF",
  24. "OBJECT_DECL",
  25. "FUNCTION",
  26. "FOR",
  27. "IF",
  28. "WHILE",
  29. "SWITCH",
  30. "TRY",
  31. "CATCH"
  32. ],
  33. "option": "empty"
  34. },
  35. "type": "EmptyBlock"
  36. },
  37. {
  38. "props": {
  39. "max": 1
  40. },
  41. "type": "EmptyLines"
  42. },
  43. {
  44. "props": {
  45. "option": "lowerCase"
  46. },
  47. "type": "HexadecimalLiteral"
  48. },
  49. {
  50. "type": "InnerAssignment"
  51. },
  52. {
  53. "props": {
  54. "modifiers": [
  55. "MACRO",
  56. "OVERRIDE",
  57. "PUBLIC_PRIVATE",
  58. "STATIC",
  59. "INLINE",
  60. "DYNAMIC"
  61. ]
  62. },
  63. "type": "ModifierOrder"
  64. },
  65. {
  66. "type": "MultipleVariableDeclarations"
  67. },
  68. {
  69. "props": {
  70. "allowSingleLineStatement": true,
  71. "tokens": [
  72. "FOR",
  73. "IF",
  74. "ELSE_IF",
  75. "WHILE",
  76. "DO_WHILE"
  77. ]
  78. },
  79. "type": "NeedBraces"
  80. },
  81. {
  82. "props": {
  83. "assignOpPolicy": "around",
  84. "unaryOpPolicy": "none",
  85. "ternaryOpPolicy": "around",
  86. "arithmeticOpPolicy": "around",
  87. "compareOpPolicy": "around",
  88. "bitwiseOpPolicy": "around",
  89. "boolOpPolicy": "around",
  90. "intervalOpPolicy": "none",
  91. "arrowPolicy": "none",
  92. "oldFunctionTypePolicy": "none",
  93. "newFunctionTypePolicy": "none",
  94. "arrowFunctionPolicy": "around"
  95. },
  96. "type": "OperatorWhitespace"
  97. },
  98. {
  99. "props": {
  100. "tokens": [
  101. "=",
  102. "*",
  103. "/",
  104. "%",
  105. ">",
  106. "<",
  107. ">=",
  108. "<=",
  109. "==",
  110. "!=",
  111. "&",
  112. "|",
  113. "^",
  114. "<<",
  115. ">>",
  116. ">>>",
  117. "+=",
  118. "-=",
  119. "*=",
  120. "/=",
  121. "%=",
  122. "<<=",
  123. ">>=",
  124. ">>>=",
  125. "|=",
  126. "&=",
  127. "^=",
  128. "...",
  129. "=>",
  130. "++",
  131. "--",
  132. "+",
  133. "-",
  134. "&&",
  135. "||"
  136. ],
  137. "option": "eol"
  138. },
  139. "type": "OperatorWrap"
  140. },
  141. {
  142. "type": "RedundantModifier"
  143. },
  144. {
  145. "type": "RedundantAllowMeta"
  146. },
  147. {
  148. "type": "RedundantAccessMeta"
  149. },
  150. {
  151. "props": {
  152. "allowEmptyReturn": true,
  153. "enforceReturnType": false
  154. },
  155. "type": "Return"
  156. },
  157. {
  158. "props": {
  159. "dotPolicy": "none",
  160. "commaPolicy": "after",
  161. "semicolonPolicy": "after"
  162. },
  163. "type": "SeparatorWhitespace"
  164. },
  165. {
  166. "props": {
  167. "tokens": [
  168. ","
  169. ],
  170. "option": "eol"
  171. },
  172. "type": "SeparatorWrap"
  173. },
  174. {
  175. "props": {
  176. "spaceIfCondition": "should",
  177. "spaceAroundBinop": true,
  178. "spaceForLoop": "should",
  179. "ignoreRangeOperator": true,
  180. "spaceWhileLoop": "should",
  181. "spaceCatch": "should",
  182. "spaceSwitchCase": "should",
  183. "noSpaceAroundUnop": true
  184. },
  185. "type": "Spacing"
  186. },
  187. {
  188. "props": {
  189. "allowException": true,
  190. "policy": "doubleAndInterpolation"
  191. },
  192. "type": "StringLiteral"
  193. },
  194. {
  195. "type": "TrailingWhitespace"
  196. },
  197. {
  198. "type": "UnusedImport"
  199. },
  200. {
  201. "type": "UnusedLocalVar"
  202. },
  203. {
  204. "props": {
  205. "tokens": [
  206. ",",
  207. ";",
  208. ":"
  209. ]
  210. },
  211. "type": "WhitespaceAfter"
  212. },
  213. {
  214. "props": {
  215. "tokens": [
  216. "=",
  217. "+",
  218. "-",
  219. "*",
  220. "/",
  221. "%",
  222. ">",
  223. "<",
  224. ">=",
  225. "<=",
  226. "==",
  227. "!=",
  228. "&",
  229. "|",
  230. "^",
  231. "&&",
  232. "||",
  233. "<<",
  234. ">>",
  235. ">>>",
  236. "+=",
  237. "-=",
  238. "*=",
  239. "/=",
  240. "%=",
  241. "<<=",
  242. ">>=",
  243. ">>>=",
  244. "|=",
  245. "&=",
  246. "^=",
  247. "=>"
  248. ]
  249. },
  250. "type": "WhitespaceAround"
  251. }
  252. ]
  253. }