Checks that the order of modifiers conforms to the standards.
Configuration
{
"type": "ModifierOrder",
"props": {
"severity": "WARNING",
"modifiers": [
"MACRO",
"OVERRIDE",
"PUBLIC_PRIVATE",
"STATIC",
"INLINE",
"DYNAMIC",
"FINAL"
]
}
}
Valid
public static inline var COUNT:Int = 1;
override public function close() {}
Invalid
inline public static var COUNT:Int = 1;
modifier order for field "COUNT" is "inline public static" but should be "public static inline"
public override function close() {}
modifier order for field "close" is "public override" but should be "override public"