Skip to content

Commit d40fa9c

Browse files
committed
formatting
1 parent ccecdeb commit d40fa9c

File tree

5 files changed

+23
-25
lines changed

5 files changed

+23
-25
lines changed

haxe-checkstyle/defaultcomeslast.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Check that the `default` is after all the cases in a `switch` statement. Haxe al
1919

2020
### Valid
2121

22-
```
22+
```java
2323
switch(a) {
2424
case 1:
2525
case 4:
@@ -29,12 +29,12 @@ switch(a) {
2929

3030
### Invalid
3131

32-
```
32+
```java
3333
switch(a) {
3434
case 1:
3535
default: trace("test");
3636
case 4:
3737
}
3838
```
3939

40-
` **Default should be last label in the switch`
40+
{{site.data.alerts.error}} Default should be last label in the switch {{site.data.alerts.end}}

haxe-checkstyle/innerassignment.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ Checks for assignments in subexpressions, such as in `if ((a=b) > 0) return;`.
1919

2020
### Valid
2121

22-
```
22+
```java
2323
if (a == b) a = c;
2424
while ((a=b) > 0) b=c;
2525
```
2626

2727
### Invalid
2828

29-
```
29+
```java
3030
if (a = b) a = c;
3131
switch a=b {
3232
case 0: return true;
3333
default: return false;
3434
}
3535
```
3636

37-
`Inner assignment detected`
37+
{{site.data.alerts.error}} Inner assignment detected {{site.data.alerts.end}}

haxe-checkstyle/multiplevariabledeclarations.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ Checks that each variable declaration is in its own statement and on its own lin
1919

2020
### Invalid
2121

22-
```
22+
```java
2323
var d,e,f;
2424

2525
var d; var e;
2626
```
2727

28-
`Each variable declaration must be in its own statement`
28+
{{site.data.alerts.error}} Each variable declaration must be in its own statement {{site.data.alerts.end}}
2929

30-
`Only one variable definition per line allowed`
30+
{{site.data.alerts.error}} Only one variable definition per line allowed {{site.data.alerts.end}}

haxe-checkstyle/whitespaceafter.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@ Checks for whitespace after a token.
2020

2121
### Valid
2222

23-
```
24-
var test = [0, 1, 2,
23+
```java
24+
var test = [0, 1, 2,
2525
3, 5, 6];
2626
```
2727

2828
### Invalid
2929

30+
```java
31+
var test = [0,1,2,3,5,6];test.push(7);
3032
```
31-
var test = [0,1,2,3,5,6];test.push(7);
32-
```
33-
34-
`Warning No whitespace after ,`
3533

34+
{{site.data.alerts.error}} Warning No whitespace after , {{site.data.alerts.end}}
3635

37-
`Warning No whitespace after ;`
36+
{{site.data.alerts.error}} Warning No whitespace after ; {{site.data.alerts.end}}

haxe-checkstyle/whitespacearound.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,18 @@ Checks for whitespace around a token.
2020

2121
### Valid
2222

23-
```
24-
var test = [];
25-
test2 = 1 + 2;
23+
```java
24+
var test = [];
25+
test2 = 1 + 2;
2626
```
2727

2828
### Invalid
2929

30+
```java
31+
var test =[];
32+
test2 = 1+ 2;
3033
```
31-
var test =[];
32-
test2 = 1+ 2;
33-
```
34-
35-
`Warning No whitespace around`
3634

35+
{{site.data.alerts.error}} Warning No whitespace around {{site.data.alerts.end}}
3736

38-
`Warning No whitespace around +`
37+
{{site.data.alerts.error}} Warning No whitespace around + {{site.data.alerts.end}}

0 commit comments

Comments
 (0)