Multiple Variable Declarations
Check that the default is after all the cases in a switch statement. Haxe allows default anywhere within the switch statement. But it is more readable if it comes after the last case.
Configuration
{
"type": "DefaultComesLast",
"props": {
"severity": "WARNING"
}
}
Invalid
switch(a) {
case 1:
default: trace("test");
case 4:
}
Valid
switch(a) {
case 1:
case 4:
default: trace("test");
}