Open T1mL3arn opened 1 year ago
there's not much checkstyle can do here. vscode can gray out those imports because of languageserver - and diagnostics from Haxe compiler telling it to. checkstyle doesn't have that source of information. so it cannot make that connection.
your sample is also flawed, since you just assign a string to abc
and then use it to switch over fields of an unrelated enum abstract. if you wanted to profit from exhaustiveness checks you would need to declare var abc:MenuCommand
and then everything would be fine.
Example
gives
UnusedImport - Unused import "menu.BaseMenu.MenuCommand" detected
.If I change
case EXIT_GAME
tocase MenuCommand.EXIT_GAME
there is no detection, so I guesscheckstyle
does not knowEXIT_GAME
is fromMenuCommand
(though in vscode really unused imports are grayed-out).