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"
    }
}

Valid

switch (a) {
    case 1:
    case 4:
    default: trace("test");
}

Invalid

switch (a) {
    case 1:
    default: trace("test");
    case 4:
}