Skip to content

Commit c516420

Browse files
committed
updated readme
1 parent 5b8a438 commit c516420

File tree

1 file changed

+52
-28
lines changed

1 file changed

+52
-28
lines changed

README.md

Lines changed: 52 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,39 @@ More information in [wiki page](https://github.com/adireddy/haxe-checkstyle/wiki
3838
{
3939
"type": "BlockFormat",
4040
"props": {
41-
"severity": "ERROR"
41+
"severity": "ERROR",
42+
"emptyBlockCheck": false
4243
}
4344
},
4445
{
4546
"type": "ConstantName",
4647
"props": {
4748
"severity": "ERROR",
4849
"format": "^[A-Z][A-Z0-9]*(_[A-Z0-9_]+)*$",
49-
"tokens": [ "INLINE" ]
50+
"tokens": [
51+
"INLINE"
52+
]
5053
}
5154
},
5255
{
5356
"type": "ConstantName",
5457
"props": {
55-
"severity": "ERROR",
56-
"format": "^[a-z]+[a-zA-Z0-9_]*$",
57-
"tokens": [ "NOTINLINE" ]
58+
"severity": "ERROR"
59+
}
60+
},
61+
{
62+
"type": "CyclomaticComplexity",
63+
"props": {
64+
"thresholds": [
65+
{
66+
"severity": "WARNING",
67+
"complexity": 20
68+
},
69+
{
70+
"severity": "ERROR",
71+
"complexity": 30
72+
}
73+
]
5874
}
5975
},
6076
{
@@ -100,30 +116,41 @@ More information in [wiki page](https://github.com/adireddy/haxe-checkstyle/wiki
100116
"type": "LineLength",
101117
"props": {
102118
"severity": "ERROR",
103-
"maxCharacters": 80
119+
"maxCharacters": 200
104120
}
105121
},
106122
{
107123
"type": "ListenerName",
108124
"props": {
109125
"severity": "ERROR",
110-
"listeners": ["addEventListener", "addListener", "on", "once"]
126+
"listeners": [
127+
"addEventListener",
128+
"addListener",
129+
"on",
130+
"once"
131+
]
111132
}
112133
},
113134
{
114135
"type": "MemberName",
115136
"props": {
116137
"severity": "ERROR",
117138
"format": "^[A-Z]+[A-Z0-9_]*$",
118-
"tokens": [ "ENUM" ]
139+
"tokens": [
140+
"ENUM"
141+
]
119142
}
120143
},
121144
{
122145
"type": "MemberName",
123146
"props": {
124147
"severity": "ERROR",
125-
"format": "^[a-z]+[a-zA-Z0-9_]*$",
126-
"tokens": [ "PUBLIC", "PRIVATE", "TYPEDEF" ]
148+
"format": "^[a-z]+[a-zA-Z0-9]*$",
149+
"tokens": [
150+
"PUBLIC",
151+
"PRIVATE",
152+
"TYPEDEF"
153+
]
127154
}
128155
},
129156
{
@@ -137,17 +164,10 @@ More information in [wiki page](https://github.com/adireddy/haxe-checkstyle/wiki
137164
"type": "MethodName",
138165
"props": {
139166
"severity": "ERROR",
140-
"format": "^[a-z]+[a-zA-Z0-9_]*$",
167+
"format": "^[a-z]+[a-zA-Z0-9]*$",
141168
"tokens": []
142169
}
143170
},
144-
{
145-
"type": "Naming",
146-
"props": {
147-
"severity": "ERROR",
148-
"privateUnderscorePrefix": false
149-
}
150-
},
151171
{
152172
"type": "NestedForDepth",
153173
"props": {
@@ -179,7 +199,7 @@ More information in [wiki page](https://github.com/adireddy/haxe-checkstyle/wiki
179199
"type": "ParameterName",
180200
"props": {
181201
"severity": "ERROR",
182-
"format": "^[a-z]+[a-zA-Z0-9_]*$"
202+
"format": "^[a-z]+[a-zA-Z0-9]*$"
183203
}
184204
},
185205
{
@@ -193,16 +213,14 @@ More information in [wiki page](https://github.com/adireddy/haxe-checkstyle/wiki
193213
{
194214
"type": "PublicPrivate",
195215
"props": {
196-
"severity": "INFO",
197-
"enforcePublicPrivate": false
216+
"severity": "INFO"
198217
}
199218
},
200219
{
201220
"type": "Return",
202221
"props": {
203222
"severity": "INFO",
204-
"allowEmptyReturn": true,
205-
"enforceReturnType": false
223+
"allowEmptyReturn": true
206224
}
207225
},
208226
{
@@ -243,16 +261,22 @@ More information in [wiki page](https://github.com/adireddy/haxe-checkstyle/wiki
243261
"type": "TypeName",
244262
"props": {
245263
"severity": "ERROR",
246-
"format": "^I[A-Z]+[a-zA-Z0-9_]*$",
247-
"tokens": [ "INTERFACE" ]
264+
"format": "^I[A-Z]+[a-zA-Z0-9]*$",
265+
"tokens": [
266+
"INTERFACE"
267+
]
248268
}
249269
},
250270
{
251271
"type": "TypeName",
252272
"props": {
253273
"severity": "ERROR",
254-
"format": "^[A-Z]+[a-zA-Z0-9_]*$",
255-
"tokens": [ "CLASS", "ENUM", "TYPEDEF" ]
274+
"format": "^[A-Z]+[a-zA-Z0-9]*$",
275+
"tokens": [
276+
"CLASS",
277+
"ENUM",
278+
"TYPEDEF"
279+
]
256280
}
257281
},
258282
{
@@ -301,4 +325,4 @@ http://adireddy.github.io/haxe/haxe-access-modifiers-return-types/
301325

302326
###Issues
303327

304-
Found any bug? Please create a new [issue](https://github.com/adireddy/haxe-checkstyle/issues/new).
328+
Found any bug? Please create a new [issue](https://github.com/adireddy/haxe-checkstyle/issues/new).

0 commit comments

Comments
 (0)