From 39591abc3424d1c94a1bc908043b61402a5d2309 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sat, 23 Dec 2023 10:52:08 -0500 Subject: [PATCH] Adjust diagnostic filters --- config/bsconfig.base.jsonc | 11 +++++++---- playlet-lib/src/components/MainScene.bs | 1 + .../InvidiousInstance/InvidiousInstanceControl.bs | 1 + .../InvidiousInstance/InvidiousInstanceSettings.bs | 1 + .../InvidiousInstanceTesting.bs | 1 + .../Web/PlayletWebServer/PlayletWebServer.bs | 1 + .../src/components/parts/AutoBind/OnNodeReadyNoOp.bs | 3 +++ 7 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 playlet-lib/src/components/parts/AutoBind/OnNodeReadyNoOp.bs diff --git a/config/bsconfig.base.jsonc b/config/bsconfig.base.jsonc index 3e5e643e..d9dec218 100644 --- a/config/bsconfig.base.jsonc +++ b/config/bsconfig.base.jsonc @@ -3,10 +3,13 @@ "createPackage": false, "diagnosticFilters": [ { - "src": "**/roku_modules/**/*.*" - }, - // This is to prevent errors where the onChange function is not found in the component scope - 1067 // Cannot find function with name '${name}' in component scope + "src": "**/*.part.xml", + "codes": [ + // 1067 - Cannot find function with name '${name}' in component scope + // This is to prevent errors where the onChange function is not found in the component scope + 1067 + ] + } ], "diagnosticLevel": "error", // The validation regex rules are validated using the validation-plugin.ts plugin diff --git a/playlet-lib/src/components/MainScene.bs b/playlet-lib/src/components/MainScene.bs index 83141e35..e1381794 100644 --- a/playlet-lib/src/components/MainScene.bs +++ b/playlet-lib/src/components/MainScene.bs @@ -1,5 +1,6 @@ import "pkg:/components/EcpArgs.bs" import "pkg:/components/parts/AutoBind/AutoBind.part.bs" +import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs" import "pkg:/source/utils/LoadingScreen.bs" function Init() diff --git a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceControl.bs b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceControl.bs index 1e9f002a..d1c7c031 100644 --- a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceControl.bs +++ b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceControl.bs @@ -1,3 +1,4 @@ +import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs" import "pkg:/source/utils/FocusManagement.bs" import "pkg:/source/utils/Types.bs" diff --git a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceSettings.bs b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceSettings.bs index e77e9638..caea2512 100644 --- a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceSettings.bs +++ b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceSettings.bs @@ -1,5 +1,6 @@ import "pkg:/components/Dialog/DialogPalette.bs" import "pkg:/components/Navigation/Navigation.bs" +import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs" import "pkg:/components/Services/Invidious/InvidiousService.bs" import "pkg:/source/utils/Types.bs" diff --git a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTesting.bs b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTesting.bs index d57c4923..f7e7bd3a 100644 --- a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTesting.bs +++ b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTesting.bs @@ -1,5 +1,6 @@ import "pkg:/components/Dialog/DialogUtils.bs" import "pkg:/components/Navigation/Navigation.bs" +import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs" import "pkg:/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTestingTask.bs" import "pkg:/source/asyncTask/asyncTask.bs" import "pkg:/source/utils/FocusManagement.bs" diff --git a/playlet-lib/src/components/Web/PlayletWebServer/PlayletWebServer.bs b/playlet-lib/src/components/Web/PlayletWebServer/PlayletWebServer.bs index d56dba15..7a6cddcd 100644 --- a/playlet-lib/src/components/Web/PlayletWebServer/PlayletWebServer.bs +++ b/playlet-lib/src/components/Web/PlayletWebServer/PlayletWebServer.bs @@ -1,3 +1,4 @@ +import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs" import "pkg:/components/Web/PlayletWebServer/Middleware/BookmarksRouter.bs" import "pkg:/components/Web/PlayletWebServer/Middleware/DashRouter.bs" import "pkg:/components/Web/PlayletWebServer/Middleware/InvidiousRouter.bs" diff --git a/playlet-lib/src/components/parts/AutoBind/OnNodeReadyNoOp.bs b/playlet-lib/src/components/parts/AutoBind/OnNodeReadyNoOp.bs new file mode 100644 index 00000000..74639663 --- /dev/null +++ b/playlet-lib/src/components/parts/AutoBind/OnNodeReadyNoOp.bs @@ -0,0 +1,3 @@ +' A no op function to silence BS1067 errors +function OnNodeReady() +end function