From dece9283f95852e525ef4bf7dc52e0a67dcd452f Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 27 Mar 2025 12:42:36 -0400 Subject: [PATCH] Add ignore comments for non-issues --- src/components/filterdialog/filterdialog.js | 1 + src/components/imageUploader/imageUploader.js | 1 + src/components/mediaLibraryEditor/mediaLibraryEditor.js | 1 + src/plugins/syncPlay/core/PlaybackCore.js | 1 + 4 files changed, 4 insertions(+) diff --git a/src/components/filterdialog/filterdialog.js b/src/components/filterdialog/filterdialog.js index 3eacd7db82..408ef06de6 100644 --- a/src/components/filterdialog/filterdialog.js +++ b/src/components/filterdialog/filterdialog.js @@ -14,6 +14,7 @@ function merge(resultItems, queryItems, delimiter) { if (!queryItems) { return resultItems; } + // eslint-disable-next-line sonarjs/no-alphabetical-sort return union(resultItems, queryItems.split(delimiter)).sort(); } diff --git a/src/components/imageUploader/imageUploader.js b/src/components/imageUploader/imageUploader.js index ff07de1553..cc211fde9b 100644 --- a/src/components/imageUploader/imageUploader.js +++ b/src/components/imageUploader/imageUploader.js @@ -77,6 +77,7 @@ function setFiles(page, files) { reader.readAsDataURL(file); } +// eslint-disable-next-line sonarjs/no-invariant-returns function onSubmit(e) { const file = currentFile; diff --git a/src/components/mediaLibraryEditor/mediaLibraryEditor.js b/src/components/mediaLibraryEditor/mediaLibraryEditor.js index ec19807a02..7acf94a819 100644 --- a/src/components/mediaLibraryEditor/mediaLibraryEditor.js +++ b/src/components/mediaLibraryEditor/mediaLibraryEditor.js @@ -23,6 +23,7 @@ import toast from '../toast/toast'; import confirm from '../confirm/confirm'; import template from './mediaLibraryEditor.template.html'; +// eslint-disable-next-line sonarjs/no-invariant-returns function onEditLibrary() { if (isCreating) { return false; diff --git a/src/plugins/syncPlay/core/PlaybackCore.js b/src/plugins/syncPlay/core/PlaybackCore.js index 73ab977eb6..c148d30b29 100644 --- a/src/plugins/syncPlay/core/PlaybackCore.js +++ b/src/plugins/syncPlay/core/PlaybackCore.js @@ -221,6 +221,7 @@ class PlaybackCore { // Account for player imperfections, we got half a second of tollerance we can play with // (the server tollerates a range of values when client reports that is ready). const rangeWidth = 100; // In milliseconds. + // eslint-disable-next-line sonarjs/pseudo-random const randomOffsetTicks = Math.round((Math.random() - 0.5) * rangeWidth) * Helper.TicksPerMillisecond; this.scheduleSeek(command.When, command.PositionTicks + randomOffsetTicks); console.debug('SyncPlay applyCommand: adding random offset to force seek:', randomOffsetTicks, command);