From 3bfadd54164f52b4b51edb6b92c9ea119911fe07 Mon Sep 17 00:00:00 2001 From: ryanfkeepers Date: Fri, 8 Dec 2023 12:51:44 -0700 Subject: [PATCH] fix nolints --- src/internal/m365/collection/groups/backup_test.go | 6 +++--- src/internal/m365/collection/groups/channel_handler.go | 4 ++-- src/internal/m365/collection/groups/collection_test.go | 4 ++-- src/internal/m365/collection/groups/conversation_handler.go | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/internal/m365/collection/groups/backup_test.go b/src/internal/m365/collection/groups/backup_test.go index d4fadd91a..3b61d4e12 100644 --- a/src/internal/m365/collection/groups/backup_test.go +++ b/src/internal/m365/collection/groups/backup_test.go @@ -39,7 +39,7 @@ import ( var _ backupHandler[models.Channelable, models.ChatMessageable] = &mockBackupHandler{} -//nolint:unused +//lint:ignore U1000 false linter issue due to generics type mockBackupHandler struct { channels []models.Channelable messageIDs []string @@ -51,7 +51,7 @@ type mockBackupHandler struct { doNotInclude bool } -//nolint:unused +//lint:ignore U1000 false linter issue due to generics func (bh mockBackupHandler) augmentItemInfo( *details.GroupsInfo, models.Channelable, @@ -125,7 +125,7 @@ func (bh mockBackupHandler) canonicalPath( false) } -//nolint:unused +//lint:ignore U1000 false linter issue due to generics func (bh mockBackupHandler) getItem( _ context.Context, _ string, diff --git a/src/internal/m365/collection/groups/channel_handler.go b/src/internal/m365/collection/groups/channel_handler.go index 804263081..59e97d2ee 100644 --- a/src/internal/m365/collection/groups/channel_handler.go +++ b/src/internal/m365/collection/groups/channel_handler.go @@ -95,7 +95,7 @@ func (bh channelsBackupHandler) PathPrefix(tenantID string) (path.Path, error) { false) } -//nolint:unused +//lint:ignore U1000 false linter issue due to generics func (bh channelsBackupHandler) getItem( ctx context.Context, groupID string, @@ -105,7 +105,7 @@ func (bh channelsBackupHandler) getItem( return bh.ac.GetChannelMessage(ctx, groupID, containerIDs[0], messageID) } -//nolint:unused +//lint:ignore U1000 false linter issue due to generics func (bh channelsBackupHandler) augmentItemInfo( dgi *details.GroupsInfo, c models.Channelable, diff --git a/src/internal/m365/collection/groups/collection_test.go b/src/internal/m365/collection/groups/collection_test.go index 34d2f2751..c84724916 100644 --- a/src/internal/m365/collection/groups/collection_test.go +++ b/src/internal/m365/collection/groups/collection_test.go @@ -144,7 +144,7 @@ type getAndAugmentChannelMessage struct { Err error } -//nolint:unused +//lint:ignore U1000 false linter issue due to generics func (m getAndAugmentChannelMessage) getItem( _ context.Context, _ string, @@ -157,7 +157,7 @@ func (m getAndAugmentChannelMessage) getItem( return msg, &details.GroupsInfo{}, m.Err } -//nolint:unused +//lint:ignore U1000 false linter issue due to generics func (getAndAugmentChannelMessage) augmentItemInfo(*details.GroupsInfo, models.Channelable) { // no-op } diff --git a/src/internal/m365/collection/groups/conversation_handler.go b/src/internal/m365/collection/groups/conversation_handler.go index 115a22f12..2fb02f09e 100644 --- a/src/internal/m365/collection/groups/conversation_handler.go +++ b/src/internal/m365/collection/groups/conversation_handler.go @@ -113,7 +113,7 @@ func (bh conversationsBackupHandler) PathPrefix(tenantID string) (path.Path, err false) } -//nolint:unused +//lint:ignore U1000 false linter issue due to generics func (bh conversationsBackupHandler) getItem( ctx context.Context, groupID string, @@ -129,7 +129,7 @@ func (bh conversationsBackupHandler) getItem( api.CallConfig{}) } -//nolint:unused +//lint:ignore U1000 false linter issue due to generics func (bh conversationsBackupHandler) augmentItemInfo( dgi *details.GroupsInfo, c models.Conversationable,