You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I change case EXIT_GAME to case MenuCommand.EXIT_GAME there is no detection, so I guess checkstyle does not know EXIT_GAME is from MenuCommand (though in vscode really unused imports are grayed-out).
The text was updated successfully, but these errors were encountered:
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).The text was updated successfully, but these errors were encountered: