From 857973ec45a65c2c9ba3168a8804f1b5968cb000 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Mon, 3 Oct 2022 09:50:00 -0400 Subject: [PATCH] Fix sonarjs max-switch-cases --- .eslintrc.js | 1 - src/scripts/serverNotifications.js | 5 ----- 2 files changed, 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index a3594d87a8..560c417763 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -72,7 +72,6 @@ module.exports = { 'sonarjs/cognitive-complexity': ['warn'], // TODO: Enable the following rules and fix issues - 'sonarjs/max-switch-cases': ['off'], 'sonarjs/no-collapsible-if': ['off'], 'sonarjs/no-duplicate-string': ['off'], 'sonarjs/no-duplicated-branches': ['off'], diff --git a/src/scripts/serverNotifications.js b/src/scripts/serverNotifications.js index 73a10bcbde..d165593226 100644 --- a/src/scripts/serverNotifications.js +++ b/src/scripts/serverNotifications.js @@ -123,16 +123,11 @@ function processGeneralCommand(cmd, apiClient) { displayMessage(cmd); break; case 'ToggleOsd': - // todo - break; case 'ToggleContextMenu': - // todo - break; case 'SendKey': // todo break; case 'SendString': - // todo focusManager.sendText(cmd.Arguments.String); break; default: