From 898ef15277c68d3d24908dcf402d6327a4e2581d Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Thu, 23 Jan 2025 14:30:32 -0400 Subject: [PATCH 1/5] Apply and enforce file-level license headers Use `mattermost-govet` to ensure each file begins with the appropriate header, then fix all instances for built source code. ``` // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. ``` Note that this renames `LICENSE` to `LICENSE.txt` purely to align on the copyright messaging across repos. --- .github/workflows/ci.yml | 2 ++ LICENSE => LICENSE.txt | 0 Makefile | 2 ++ build/manifest/main.go | 3 +++ build/pluginctl/logs.go | 3 +++ build/pluginctl/logs_test.go | 3 +++ build/pluginctl/main.go | 3 +++ calendar/api/api.go | 2 +- calendar/api/autocomplete.go | 3 +++ calendar/api/autocomplete_test.go | 3 +++ calendar/api/connected_user.go | 3 +++ calendar/api/connected_user_test.go | 3 +++ calendar/api/events.go | 3 +++ calendar/api/events_test.go | 3 +++ calendar/api/get_authorized.go | 2 +- calendar/api/notifcation_test.go | 3 +++ calendar/api/notification.go | 2 +- calendar/api/post_action.go | 2 +- calendar/api/post_action_test.go | 3 +++ calendar/api/test_utils.go | 3 +++ calendar/command/availability.go | 2 +- calendar/command/command.go | 2 +- calendar/command/connect.go | 2 +- calendar/command/connect_test.go | 3 +++ calendar/command/daily_summary.go | 3 +++ calendar/command/daily_summary_test.go | 3 +++ calendar/command/disconnect.go | 2 +- calendar/command/disconnect_test.go | 3 +++ calendar/command/event.go | 2 +- calendar/command/get_calendars.go | 3 +++ calendar/command/help.go | 2 +- calendar/command/info.go | 2 +- calendar/command/settings.go | 2 +- calendar/command/subscribe.go | 2 +- calendar/command/unsubscribe.go | 2 +- calendar/command/view_calendar.go | 2 +- calendar/config/config.go | 3 +++ calendar/config/const.go | 2 +- calendar/engine/availability.go | 2 +- calendar/engine/availability_test.go | 2 +- calendar/engine/calendar.go | 2 +- calendar/engine/calendar_test.go | 3 +++ calendar/engine/client.go | 2 +- calendar/engine/daily_summary.go | 3 +++ calendar/engine/daily_summary_test.go | 3 +++ calendar/engine/event_responder.go | 2 +- calendar/engine/event_responder_test.go | 3 +++ calendar/engine/filters.go | 2 +- calendar/engine/mscalendar.go | 2 +- calendar/engine/mscalendar_test.go | 3 +++ calendar/engine/notification.go | 3 +++ calendar/engine/notification_format.go | 3 +++ calendar/engine/notification_test.go | 2 +- calendar/engine/oauth2.go | 2 +- calendar/engine/oauth2_test.go | 3 +++ calendar/engine/settings.go | 3 +++ calendar/engine/settings_daily_summary.go | 3 +++ calendar/engine/settings_notifications.go | 3 +++ calendar/engine/subscription.go | 2 +- calendar/engine/subscription_test.go | 3 +++ calendar/engine/test_utils.go | 3 +++ calendar/engine/user.go | 2 +- calendar/engine/user_test.go | 3 +++ calendar/engine/views/calendar.go | 3 +++ calendar/engine/views/calendar_test.go | 3 +++ calendar/engine/views/status_change_notification.go | 3 +++ calendar/engine/welcome_flow.go | 3 +++ calendar/engine/welcomer.go | 3 +++ calendar/jobs/daily_summary_job.go | 2 +- calendar/jobs/job_manager.go | 2 +- calendar/jobs/renew_job.go | 2 +- calendar/jobs/status_sync_job.go | 2 +- calendar/plugin/plugin.go | 2 +- calendar/remote/calendar.go | 2 +- calendar/remote/client.go | 2 +- calendar/remote/date_time.go | 2 +- calendar/remote/date_time_test.go | 2 +- calendar/remote/event.go | 2 +- calendar/remote/meeting.go | 2 +- calendar/remote/notification.go | 2 +- calendar/remote/remote.go | 2 +- calendar/remote/schedule.go | 2 +- calendar/remote/subscription.go | 2 +- calendar/remote/user.go | 2 +- calendar/store/event_store.go | 3 +++ calendar/store/flow_store.go | 3 +++ calendar/store/oauth2_store.go | 3 +++ calendar/store/setting_store.go | 3 +++ calendar/store/store.go | 3 +++ calendar/store/subscription_store.go | 3 +++ calendar/store/test_util.go | 3 +++ calendar/store/user_store.go | 3 +++ calendar/store/user_store_test.go | 3 +++ calendar/store/welcome_store.go | 3 +++ calendar/store/welcome_store_test.go | 3 +++ calendar/telemetry/logger.go | 2 +- calendar/telemetry/rudder.go | 3 +++ calendar/telemetry/tracker.go | 3 +++ calendar/testutil/mock_setup.go | 3 +++ calendar/tracker/tracker.go | 3 +++ calendar/utils/bot/admin.go | 2 +- calendar/utils/bot/bot.go | 2 +- calendar/utils/bot/bot_config.go | 2 +- calendar/utils/bot/flow_controller.go | 3 +++ calendar/utils/bot/logger.go | 2 +- calendar/utils/bot/poster.go | 2 +- calendar/utils/byte_size.go | 2 +- calendar/utils/byte_size_test.go | 2 +- calendar/utils/fields/fields.go | 3 +++ calendar/utils/fields/value.go | 3 +++ calendar/utils/flow/empty_step.go | 3 +++ calendar/utils/flow/flow.go | 3 +++ calendar/utils/flow/handler.go | 2 +- calendar/utils/httputils/handler.go | 2 +- calendar/utils/httputils/limited_readcloser.go | 2 +- calendar/utils/httputils/limited_readcloser_test.go | 2 +- calendar/utils/httputils/utils.go | 2 +- calendar/utils/httputils/utils_test.go | 2 +- calendar/utils/kvstore/crypt.go | 3 +++ calendar/utils/kvstore/crypt_test.go | 3 +++ calendar/utils/kvstore/hashed_key.go | 3 +++ calendar/utils/kvstore/hashed_key_test.go | 3 +++ calendar/utils/kvstore/keys.go | 3 +++ calendar/utils/kvstore/kvstore.go | 3 +++ calendar/utils/kvstore/ots.go | 3 +++ calendar/utils/kvstore/plugin_store.go | 3 +++ calendar/utils/kvstore/plugin_store_test.go | 3 +++ calendar/utils/map.go | 2 +- calendar/utils/markdown.go | 2 +- calendar/utils/oauth2connect/oauth2.go | 2 +- calendar/utils/oauth2connect/oauth2_complete.go | 2 +- calendar/utils/oauth2connect/oauth2_connect.go | 2 +- calendar/utils/pluginapi/api.go | 2 +- calendar/utils/settingspanel/bool_setting.go | 3 +++ calendar/utils/settingspanel/empty_setting.go | 3 +++ calendar/utils/settingspanel/handler.go | 3 +++ calendar/utils/settingspanel/option_setting.go | 3 +++ calendar/utils/settingspanel/read_only_setting.go | 3 +++ calendar/utils/settingspanel/settings.go | 3 +++ calendar/utils/settingspanel/utils.go | 3 +++ calendar/utils/slack_attachments.go | 3 +++ calendar/utils/test/gomock.go | 3 +++ calendar/utils/tz/conversion.go | 3 +++ calendar/utils/tz/data.go | 3 +++ calendar/utils/tz/tz_test.go | 3 +++ calendar/utils/url.go | 3 +++ msgraph/batch_request.go | 2 +- msgraph/call.go | 2 +- msgraph/client.go | 2 +- msgraph/create_calendar.go | 2 +- msgraph/create_event.go | 2 +- msgraph/delete_calendar.go | 2 +- msgraph/event.go | 2 +- msgraph/find_meeting_times.go | 2 +- msgraph/get_calendars.go | 2 +- msgraph/get_default_calendar_view.go | 2 +- msgraph/get_mailbox_settings.go | 2 +- msgraph/get_me.go | 2 +- msgraph/get_notification_data.go | 2 +- msgraph/get_schedule_batched.go | 3 +++ msgraph/get_schedule_batched_test.go | 2 +- msgraph/get_super_user_token.go | 2 +- msgraph/handle_webhook.go | 2 +- msgraph/msgraph.go | 3 +++ msgraph/remote.go | 2 +- msgraph/subscription.go | 2 +- server/main.go | 3 +++ 167 files changed, 334 insertions(+), 81 deletions(-) rename LICENSE => LICENSE.txt (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c05ae63..05e7f4d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,3 +16,5 @@ jobs: plugin-ci: uses: mattermost/actions-workflows/.github/workflows/plugin-ci.yml@main secrets: inherit + with: + golang-version: "1.22" diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/Makefile b/Makefile index b81dd381..15bf0aff 100644 --- a/Makefile +++ b/Makefile @@ -167,6 +167,7 @@ install-go-tools: @echo Installing go tools $(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.0 $(GO) install gotest.tools/gotestsum@v1.7.0 + $(GO) install github.com/mattermost/mattermost-govet/v2@3f08281c344327ac09364f196b15f9a81c7eff08 ## Runs golangci-lint and eslint. .PHONY: check-style @@ -185,6 +186,7 @@ ifneq ($(HAS_SERVER),) @echo Running golangci-lint $(GO) vet ./... $(GOBIN)/golangci-lint run ./... + $(GO) vet -vettool=$(GOBIN)/mattermost-govet -license -license.year=2019 ./... endif ## Builds the server, if it exists, for all supported architectures, unless MM_SERVICESETTINGS_ENABLEDEVELOPER is set. diff --git a/build/manifest/main.go b/build/manifest/main.go index c56e5183..d5a74d27 100644 --- a/build/manifest/main.go +++ b/build/manifest/main.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/build/pluginctl/logs.go b/build/pluginctl/logs.go index f20e8bba..61c25705 100644 --- a/build/pluginctl/logs.go +++ b/build/pluginctl/logs.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/build/pluginctl/logs_test.go b/build/pluginctl/logs_test.go index 2917a271..7e4c900f 100644 --- a/build/pluginctl/logs_test.go +++ b/build/pluginctl/logs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/build/pluginctl/main.go b/build/pluginctl/main.go index 2f80af5b..9b691aec 100644 --- a/build/pluginctl/main.go +++ b/build/pluginctl/main.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + // main handles deployment of the plugin to a development server using the Client4 API. package main diff --git a/calendar/api/api.go b/calendar/api/api.go index 803422a5..5edc6585 100644 --- a/calendar/api/api.go +++ b/calendar/api/api.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package api diff --git a/calendar/api/autocomplete.go b/calendar/api/autocomplete.go index 37558c88..ac7d2ca6 100644 --- a/calendar/api/autocomplete.go +++ b/calendar/api/autocomplete.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/calendar/api/autocomplete_test.go b/calendar/api/autocomplete_test.go index b692a378..c7896916 100644 --- a/calendar/api/autocomplete_test.go +++ b/calendar/api/autocomplete_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/calendar/api/connected_user.go b/calendar/api/connected_user.go index 6f92086e..746442a2 100644 --- a/calendar/api/connected_user.go +++ b/calendar/api/connected_user.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/calendar/api/connected_user_test.go b/calendar/api/connected_user_test.go index 50e140f5..7af27914 100644 --- a/calendar/api/connected_user_test.go +++ b/calendar/api/connected_user_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/calendar/api/events.go b/calendar/api/events.go index 56c1a7f9..63e2ac93 100644 --- a/calendar/api/events.go +++ b/calendar/api/events.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/calendar/api/events_test.go b/calendar/api/events_test.go index a08c38bd..f21dc5a9 100644 --- a/calendar/api/events_test.go +++ b/calendar/api/events_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/calendar/api/get_authorized.go b/calendar/api/get_authorized.go index 9c98f203..683c2005 100644 --- a/calendar/api/get_authorized.go +++ b/calendar/api/get_authorized.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package api diff --git a/calendar/api/notifcation_test.go b/calendar/api/notifcation_test.go index 225e4765..558c443e 100644 --- a/calendar/api/notifcation_test.go +++ b/calendar/api/notifcation_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/calendar/api/notification.go b/calendar/api/notification.go index fa336f65..168ca154 100644 --- a/calendar/api/notification.go +++ b/calendar/api/notification.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package api diff --git a/calendar/api/post_action.go b/calendar/api/post_action.go index ce326f0e..08aafbdc 100644 --- a/calendar/api/post_action.go +++ b/calendar/api/post_action.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package api diff --git a/calendar/api/post_action_test.go b/calendar/api/post_action_test.go index 79802c20..51367f98 100644 --- a/calendar/api/post_action_test.go +++ b/calendar/api/post_action_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/calendar/api/test_utils.go b/calendar/api/test_utils.go index c218498e..c70ea38c 100644 --- a/calendar/api/test_utils.go +++ b/calendar/api/test_utils.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/calendar/command/availability.go b/calendar/command/availability.go index f8a2a0ae..12c4f428 100644 --- a/calendar/command/availability.go +++ b/calendar/command/availability.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package command diff --git a/calendar/command/command.go b/calendar/command/command.go index e5722c3f..a0d6bad0 100644 --- a/calendar/command/command.go +++ b/calendar/command/command.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package command diff --git a/calendar/command/connect.go b/calendar/command/connect.go index c633368f..fdfd79f9 100644 --- a/calendar/command/connect.go +++ b/calendar/command/connect.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package command diff --git a/calendar/command/connect_test.go b/calendar/command/connect_test.go index 0c702262..1ba97289 100644 --- a/calendar/command/connect_test.go +++ b/calendar/command/connect_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package command import ( diff --git a/calendar/command/daily_summary.go b/calendar/command/daily_summary.go index fe0a9afc..19fe3e3e 100644 --- a/calendar/command/daily_summary.go +++ b/calendar/command/daily_summary.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package command import ( diff --git a/calendar/command/daily_summary_test.go b/calendar/command/daily_summary_test.go index 30ab22e8..793973e5 100644 --- a/calendar/command/daily_summary_test.go +++ b/calendar/command/daily_summary_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package command import ( diff --git a/calendar/command/disconnect.go b/calendar/command/disconnect.go index a25cf912..702542ed 100644 --- a/calendar/command/disconnect.go +++ b/calendar/command/disconnect.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package command diff --git a/calendar/command/disconnect_test.go b/calendar/command/disconnect_test.go index 914c912e..a545dd5e 100644 --- a/calendar/command/disconnect_test.go +++ b/calendar/command/disconnect_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package command import ( diff --git a/calendar/command/event.go b/calendar/command/event.go index f7083b67..0e296703 100644 --- a/calendar/command/event.go +++ b/calendar/command/event.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package command diff --git a/calendar/command/get_calendars.go b/calendar/command/get_calendars.go index 39b35465..e7fb8e05 100644 --- a/calendar/command/get_calendars.go +++ b/calendar/command/get_calendars.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package command import ( diff --git a/calendar/command/help.go b/calendar/command/help.go index efaee10b..efeaf6ce 100644 --- a/calendar/command/help.go +++ b/calendar/command/help.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package command diff --git a/calendar/command/info.go b/calendar/command/info.go index 5d1a86b9..98682da8 100644 --- a/calendar/command/info.go +++ b/calendar/command/info.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package command diff --git a/calendar/command/settings.go b/calendar/command/settings.go index 29250122..ff202343 100644 --- a/calendar/command/settings.go +++ b/calendar/command/settings.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package command diff --git a/calendar/command/subscribe.go b/calendar/command/subscribe.go index 7b09ca45..1d89df10 100644 --- a/calendar/command/subscribe.go +++ b/calendar/command/subscribe.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package command diff --git a/calendar/command/unsubscribe.go b/calendar/command/unsubscribe.go index d2b6fd8f..90261bd8 100644 --- a/calendar/command/unsubscribe.go +++ b/calendar/command/unsubscribe.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package command diff --git a/calendar/command/view_calendar.go b/calendar/command/view_calendar.go index f9a9ee04..1c5cbcc1 100644 --- a/calendar/command/view_calendar.go +++ b/calendar/command/view_calendar.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package command diff --git a/calendar/config/config.go b/calendar/config/config.go index 903c3436..3563df26 100644 --- a/calendar/config/config.go +++ b/calendar/config/config.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package config import "github.com/mattermost/mattermost-plugin-mscalendar/calendar/utils/bot" diff --git a/calendar/config/const.go b/calendar/config/const.go index 61444dd5..04654e6a 100644 --- a/calendar/config/const.go +++ b/calendar/config/const.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package config diff --git a/calendar/engine/availability.go b/calendar/engine/availability.go index 38bd2bb7..8a92f7b4 100644 --- a/calendar/engine/availability.go +++ b/calendar/engine/availability.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package engine diff --git a/calendar/engine/availability_test.go b/calendar/engine/availability_test.go index fae2bc61..579b8b78 100644 --- a/calendar/engine/availability_test.go +++ b/calendar/engine/availability_test.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package engine diff --git a/calendar/engine/calendar.go b/calendar/engine/calendar.go index ba097633..fd5afd90 100644 --- a/calendar/engine/calendar.go +++ b/calendar/engine/calendar.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package engine diff --git a/calendar/engine/calendar_test.go b/calendar/engine/calendar_test.go index 4e3abab5..d405f001 100644 --- a/calendar/engine/calendar_test.go +++ b/calendar/engine/calendar_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package engine import ( diff --git a/calendar/engine/client.go b/calendar/engine/client.go index e86f06c4..8824a777 100644 --- a/calendar/engine/client.go +++ b/calendar/engine/client.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package engine diff --git a/calendar/engine/daily_summary.go b/calendar/engine/daily_summary.go index a08d9768..3dc23fd8 100644 --- a/calendar/engine/daily_summary.go +++ b/calendar/engine/daily_summary.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License for license information. diff --git a/calendar/engine/daily_summary_test.go b/calendar/engine/daily_summary_test.go index 6561124f..c7d5a4f1 100644 --- a/calendar/engine/daily_summary_test.go +++ b/calendar/engine/daily_summary_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package engine import ( diff --git a/calendar/engine/event_responder.go b/calendar/engine/event_responder.go index 8fc4aaf3..6ad80481 100644 --- a/calendar/engine/event_responder.go +++ b/calendar/engine/event_responder.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package engine diff --git a/calendar/engine/event_responder_test.go b/calendar/engine/event_responder_test.go index 43048969..bd50436d 100644 --- a/calendar/engine/event_responder_test.go +++ b/calendar/engine/event_responder_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package engine import ( diff --git a/calendar/engine/filters.go b/calendar/engine/filters.go index fa96ddd3..14547d4d 100644 --- a/calendar/engine/filters.go +++ b/calendar/engine/filters.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package engine diff --git a/calendar/engine/mscalendar.go b/calendar/engine/mscalendar.go index fc1d83b6..58779d18 100644 --- a/calendar/engine/mscalendar.go +++ b/calendar/engine/mscalendar.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package engine diff --git a/calendar/engine/mscalendar_test.go b/calendar/engine/mscalendar_test.go index 94965aaa..b0bc5cc8 100644 --- a/calendar/engine/mscalendar_test.go +++ b/calendar/engine/mscalendar_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package engine import ( diff --git a/calendar/engine/notification.go b/calendar/engine/notification.go index 9a8d7a86..dec22df4 100644 --- a/calendar/engine/notification.go +++ b/calendar/engine/notification.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License for license information. diff --git a/calendar/engine/notification_format.go b/calendar/engine/notification_format.go index d9f5ec8e..edd22be3 100644 --- a/calendar/engine/notification_format.go +++ b/calendar/engine/notification_format.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package engine import ( diff --git a/calendar/engine/notification_test.go b/calendar/engine/notification_test.go index 6030697e..358f4bb5 100644 --- a/calendar/engine/notification_test.go +++ b/calendar/engine/notification_test.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package engine diff --git a/calendar/engine/oauth2.go b/calendar/engine/oauth2.go index deaf9a08..3b4ae2ea 100644 --- a/calendar/engine/oauth2.go +++ b/calendar/engine/oauth2.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package engine diff --git a/calendar/engine/oauth2_test.go b/calendar/engine/oauth2_test.go index fcdaaa10..5bdaef43 100644 --- a/calendar/engine/oauth2_test.go +++ b/calendar/engine/oauth2_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package engine import ( diff --git a/calendar/engine/settings.go b/calendar/engine/settings.go index 04366fcb..369e8a5f 100644 --- a/calendar/engine/settings.go +++ b/calendar/engine/settings.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package engine import ( diff --git a/calendar/engine/settings_daily_summary.go b/calendar/engine/settings_daily_summary.go index caa9d27c..4d2047ec 100644 --- a/calendar/engine/settings_daily_summary.go +++ b/calendar/engine/settings_daily_summary.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package engine import ( diff --git a/calendar/engine/settings_notifications.go b/calendar/engine/settings_notifications.go index 8374f46e..1d181508 100644 --- a/calendar/engine/settings_notifications.go +++ b/calendar/engine/settings_notifications.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package engine import ( diff --git a/calendar/engine/subscription.go b/calendar/engine/subscription.go index 94bd4f1e..40825dc5 100644 --- a/calendar/engine/subscription.go +++ b/calendar/engine/subscription.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package engine diff --git a/calendar/engine/subscription_test.go b/calendar/engine/subscription_test.go index 32090ebc..50afd7ff 100644 --- a/calendar/engine/subscription_test.go +++ b/calendar/engine/subscription_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package engine import ( diff --git a/calendar/engine/test_utils.go b/calendar/engine/test_utils.go index 73eaf3cf..c70e68bb 100644 --- a/calendar/engine/test_utils.go +++ b/calendar/engine/test_utils.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package engine import ( diff --git a/calendar/engine/user.go b/calendar/engine/user.go index fd01ea69..2fddf693 100644 --- a/calendar/engine/user.go +++ b/calendar/engine/user.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package engine diff --git a/calendar/engine/user_test.go b/calendar/engine/user_test.go index a2eeb99c..bf1e918f 100644 --- a/calendar/engine/user_test.go +++ b/calendar/engine/user_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package engine import ( diff --git a/calendar/engine/views/calendar.go b/calendar/engine/views/calendar.go index 23d0e535..469b2c7f 100644 --- a/calendar/engine/views/calendar.go +++ b/calendar/engine/views/calendar.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package views import ( diff --git a/calendar/engine/views/calendar_test.go b/calendar/engine/views/calendar_test.go index 11f6cc35..f07b6ab1 100644 --- a/calendar/engine/views/calendar_test.go +++ b/calendar/engine/views/calendar_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package views import ( diff --git a/calendar/engine/views/status_change_notification.go b/calendar/engine/views/status_change_notification.go index d4034d77..8c8904a2 100644 --- a/calendar/engine/views/status_change_notification.go +++ b/calendar/engine/views/status_change_notification.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package views import ( diff --git a/calendar/engine/welcome_flow.go b/calendar/engine/welcome_flow.go index fcd033f1..1eaf99c4 100644 --- a/calendar/engine/welcome_flow.go +++ b/calendar/engine/welcome_flow.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package engine import ( diff --git a/calendar/engine/welcomer.go b/calendar/engine/welcomer.go index 1f40516d..433fe36d 100644 --- a/calendar/engine/welcomer.go +++ b/calendar/engine/welcomer.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package engine import ( diff --git a/calendar/jobs/daily_summary_job.go b/calendar/jobs/daily_summary_job.go index f4366532..3d977dce 100644 --- a/calendar/jobs/daily_summary_job.go +++ b/calendar/jobs/daily_summary_job.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package jobs diff --git a/calendar/jobs/job_manager.go b/calendar/jobs/job_manager.go index fcc30818..50687efb 100644 --- a/calendar/jobs/job_manager.go +++ b/calendar/jobs/job_manager.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package jobs diff --git a/calendar/jobs/renew_job.go b/calendar/jobs/renew_job.go index 42e2e31c..a9ddb02a 100644 --- a/calendar/jobs/renew_job.go +++ b/calendar/jobs/renew_job.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package jobs diff --git a/calendar/jobs/status_sync_job.go b/calendar/jobs/status_sync_job.go index f64ab966..81e385bb 100644 --- a/calendar/jobs/status_sync_job.go +++ b/calendar/jobs/status_sync_job.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package jobs diff --git a/calendar/plugin/plugin.go b/calendar/plugin/plugin.go index 8b659d0b..e6cef3e8 100644 --- a/calendar/plugin/plugin.go +++ b/calendar/plugin/plugin.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package plugin diff --git a/calendar/remote/calendar.go b/calendar/remote/calendar.go index 0d3ea0b9..0e713b43 100644 --- a/calendar/remote/calendar.go +++ b/calendar/remote/calendar.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package remote diff --git a/calendar/remote/client.go b/calendar/remote/client.go index d2db0bb9..17fd0eeb 100644 --- a/calendar/remote/client.go +++ b/calendar/remote/client.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package remote diff --git a/calendar/remote/date_time.go b/calendar/remote/date_time.go index 00cf0c8a..f8c8054e 100644 --- a/calendar/remote/date_time.go +++ b/calendar/remote/date_time.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package remote diff --git a/calendar/remote/date_time_test.go b/calendar/remote/date_time_test.go index 76f90031..980b404d 100644 --- a/calendar/remote/date_time_test.go +++ b/calendar/remote/date_time_test.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package remote diff --git a/calendar/remote/event.go b/calendar/remote/event.go index fe524726..b0cb420d 100644 --- a/calendar/remote/event.go +++ b/calendar/remote/event.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package remote diff --git a/calendar/remote/meeting.go b/calendar/remote/meeting.go index baaf4c82..a7d9cbb5 100644 --- a/calendar/remote/meeting.go +++ b/calendar/remote/meeting.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package remote diff --git a/calendar/remote/notification.go b/calendar/remote/notification.go index 83980864..ea8f47b4 100644 --- a/calendar/remote/notification.go +++ b/calendar/remote/notification.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package remote diff --git a/calendar/remote/remote.go b/calendar/remote/remote.go index 345be73d..05819403 100644 --- a/calendar/remote/remote.go +++ b/calendar/remote/remote.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package remote diff --git a/calendar/remote/schedule.go b/calendar/remote/schedule.go index 144125b6..04aa37ce 100644 --- a/calendar/remote/schedule.go +++ b/calendar/remote/schedule.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package remote diff --git a/calendar/remote/subscription.go b/calendar/remote/subscription.go index c88d037c..5113a4d1 100644 --- a/calendar/remote/subscription.go +++ b/calendar/remote/subscription.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package remote diff --git a/calendar/remote/user.go b/calendar/remote/user.go index aea777d4..402dd363 100644 --- a/calendar/remote/user.go +++ b/calendar/remote/user.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package remote diff --git a/calendar/store/event_store.go b/calendar/store/event_store.go index fb975811..c682f846 100644 --- a/calendar/store/event_store.go +++ b/calendar/store/event_store.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License for license information. diff --git a/calendar/store/flow_store.go b/calendar/store/flow_store.go index b40aee5c..8799763d 100644 --- a/calendar/store/flow_store.go +++ b/calendar/store/flow_store.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package store import "fmt" diff --git a/calendar/store/oauth2_store.go b/calendar/store/oauth2_store.go index 87509dea..a4125bd5 100644 --- a/calendar/store/oauth2_store.go +++ b/calendar/store/oauth2_store.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License for license information. diff --git a/calendar/store/setting_store.go b/calendar/store/setting_store.go index 0983fd31..db46ceaf 100644 --- a/calendar/store/setting_store.go +++ b/calendar/store/setting_store.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package store import ( diff --git a/calendar/store/store.go b/calendar/store/store.go index 5428467a..7f543d9a 100644 --- a/calendar/store/store.go +++ b/calendar/store/store.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License for license information. diff --git a/calendar/store/subscription_store.go b/calendar/store/subscription_store.go index d85f5ec9..2d727872 100644 --- a/calendar/store/subscription_store.go +++ b/calendar/store/subscription_store.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License for license information. diff --git a/calendar/store/test_util.go b/calendar/store/test_util.go index b794e091..5fe27a64 100644 --- a/calendar/store/test_util.go +++ b/calendar/store/test_util.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package store import ( diff --git a/calendar/store/user_store.go b/calendar/store/user_store.go index b61f3040..f5a9a04b 100644 --- a/calendar/store/user_store.go +++ b/calendar/store/user_store.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License for license information. diff --git a/calendar/store/user_store_test.go b/calendar/store/user_store_test.go index 5bcdbbf4..0d4671ba 100644 --- a/calendar/store/user_store_test.go +++ b/calendar/store/user_store_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package store import ( diff --git a/calendar/store/welcome_store.go b/calendar/store/welcome_store.go index 9ea735df..6eda4e21 100644 --- a/calendar/store/welcome_store.go +++ b/calendar/store/welcome_store.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package store import "github.com/mattermost/mattermost-plugin-mscalendar/calendar/utils/kvstore" diff --git a/calendar/store/welcome_store_test.go b/calendar/store/welcome_store_test.go index 33b61113..70243713 100644 --- a/calendar/store/welcome_store_test.go +++ b/calendar/store/welcome_store_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package store import ( diff --git a/calendar/telemetry/logger.go b/calendar/telemetry/logger.go index 0fc6b46a..60f53af3 100644 --- a/calendar/telemetry/logger.go +++ b/calendar/telemetry/logger.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. // Copied from pluginapi/experimental/bot/logger to avoid upgrading min_server_version // remove this file once pluginapi can be updated to 0.1.3+ ( min_server_version is diff --git a/calendar/telemetry/rudder.go b/calendar/telemetry/rudder.go index c3c3b2f8..18327c02 100644 --- a/calendar/telemetry/rudder.go +++ b/calendar/telemetry/rudder.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package telemetry import ( diff --git a/calendar/telemetry/tracker.go b/calendar/telemetry/tracker.go index 810d5efc..ddb5e322 100644 --- a/calendar/telemetry/tracker.go +++ b/calendar/telemetry/tracker.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package telemetry import ( diff --git a/calendar/testutil/mock_setup.go b/calendar/testutil/mock_setup.go index d10f8cd3..132226bc 100644 --- a/calendar/testutil/mock_setup.go +++ b/calendar/testutil/mock_setup.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package testutil import ( diff --git a/calendar/tracker/tracker.go b/calendar/tracker/tracker.go index e24146db..2031de3e 100644 --- a/calendar/tracker/tracker.go +++ b/calendar/tracker/tracker.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package tracker import ( diff --git a/calendar/utils/bot/admin.go b/calendar/utils/bot/admin.go index 7eb19539..a688c2be 100644 --- a/calendar/utils/bot/admin.go +++ b/calendar/utils/bot/admin.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package bot diff --git a/calendar/utils/bot/bot.go b/calendar/utils/bot/bot.go index bba8afe7..85f1f025 100644 --- a/calendar/utils/bot/bot.go +++ b/calendar/utils/bot/bot.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package bot diff --git a/calendar/utils/bot/bot_config.go b/calendar/utils/bot/bot_config.go index d3602689..097cffd5 100644 --- a/calendar/utils/bot/bot_config.go +++ b/calendar/utils/bot/bot_config.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package bot diff --git a/calendar/utils/bot/flow_controller.go b/calendar/utils/bot/flow_controller.go index 9761f450..8f0742fe 100644 --- a/calendar/utils/bot/flow_controller.go +++ b/calendar/utils/bot/flow_controller.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package bot import "github.com/mattermost/mattermost-plugin-mscalendar/calendar/utils/flow" diff --git a/calendar/utils/bot/logger.go b/calendar/utils/bot/logger.go index 721aa1ce..6faa42ca 100644 --- a/calendar/utils/bot/logger.go +++ b/calendar/utils/bot/logger.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package bot diff --git a/calendar/utils/bot/poster.go b/calendar/utils/bot/poster.go index 7319149c..2bcf78f9 100644 --- a/calendar/utils/bot/poster.go +++ b/calendar/utils/bot/poster.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package bot diff --git a/calendar/utils/byte_size.go b/calendar/utils/byte_size.go index 2362eb05..2eb7615c 100644 --- a/calendar/utils/byte_size.go +++ b/calendar/utils/byte_size.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package utils diff --git a/calendar/utils/byte_size_test.go b/calendar/utils/byte_size_test.go index c08c8765..eef54907 100644 --- a/calendar/utils/byte_size_test.go +++ b/calendar/utils/byte_size_test.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package utils diff --git a/calendar/utils/fields/fields.go b/calendar/utils/fields/fields.go index 2012f8a7..2c6e992f 100644 --- a/calendar/utils/fields/fields.go +++ b/calendar/utils/fields/fields.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package fields type Fields map[string]Value diff --git a/calendar/utils/fields/value.go b/calendar/utils/fields/value.go index e8782583..381c9e5e 100644 --- a/calendar/utils/fields/value.go +++ b/calendar/utils/fields/value.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package fields import "time" diff --git a/calendar/utils/flow/empty_step.go b/calendar/utils/flow/empty_step.go index f10bd19d..718d4beb 100644 --- a/calendar/utils/flow/empty_step.go +++ b/calendar/utils/flow/empty_step.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package flow import ( diff --git a/calendar/utils/flow/flow.go b/calendar/utils/flow/flow.go index 04986b11..b54a2e51 100644 --- a/calendar/utils/flow/flow.go +++ b/calendar/utils/flow/flow.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package flow import ( diff --git a/calendar/utils/flow/handler.go b/calendar/utils/flow/handler.go index a1b7f07c..dfb29afc 100644 --- a/calendar/utils/flow/handler.go +++ b/calendar/utils/flow/handler.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package flow diff --git a/calendar/utils/httputils/handler.go b/calendar/utils/httputils/handler.go index 028ca7cf..817557a5 100644 --- a/calendar/utils/httputils/handler.go +++ b/calendar/utils/httputils/handler.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package httputils diff --git a/calendar/utils/httputils/limited_readcloser.go b/calendar/utils/httputils/limited_readcloser.go index 542c44d2..be9b98bf 100644 --- a/calendar/utils/httputils/limited_readcloser.go +++ b/calendar/utils/httputils/limited_readcloser.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package httputils diff --git a/calendar/utils/httputils/limited_readcloser_test.go b/calendar/utils/httputils/limited_readcloser_test.go index c2590e5d..f7aa99b6 100644 --- a/calendar/utils/httputils/limited_readcloser_test.go +++ b/calendar/utils/httputils/limited_readcloser_test.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package httputils diff --git a/calendar/utils/httputils/utils.go b/calendar/utils/httputils/utils.go index ce9682e6..856bb2d7 100644 --- a/calendar/utils/httputils/utils.go +++ b/calendar/utils/httputils/utils.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package httputils diff --git a/calendar/utils/httputils/utils_test.go b/calendar/utils/httputils/utils_test.go index 1b338f85..7be1d292 100644 --- a/calendar/utils/httputils/utils_test.go +++ b/calendar/utils/httputils/utils_test.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package httputils diff --git a/calendar/utils/kvstore/crypt.go b/calendar/utils/kvstore/crypt.go index 4725cd9e..7c194e21 100644 --- a/calendar/utils/kvstore/crypt.go +++ b/calendar/utils/kvstore/crypt.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package kvstore import ( diff --git a/calendar/utils/kvstore/crypt_test.go b/calendar/utils/kvstore/crypt_test.go index fb8e26bc..303eb36c 100644 --- a/calendar/utils/kvstore/crypt_test.go +++ b/calendar/utils/kvstore/crypt_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package kvstore import ( diff --git a/calendar/utils/kvstore/hashed_key.go b/calendar/utils/kvstore/hashed_key.go index 8ab73adf..a91fa1fa 100644 --- a/calendar/utils/kvstore/hashed_key.go +++ b/calendar/utils/kvstore/hashed_key.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License for license information. diff --git a/calendar/utils/kvstore/hashed_key_test.go b/calendar/utils/kvstore/hashed_key_test.go index 2429e952..b64da2ba 100644 --- a/calendar/utils/kvstore/hashed_key_test.go +++ b/calendar/utils/kvstore/hashed_key_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License for license information. diff --git a/calendar/utils/kvstore/keys.go b/calendar/utils/kvstore/keys.go index d17e64ae..e00b2edd 100644 --- a/calendar/utils/kvstore/keys.go +++ b/calendar/utils/kvstore/keys.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package kvstore // TODO find a better way of documenting all DB keys in one place. diff --git a/calendar/utils/kvstore/kvstore.go b/calendar/utils/kvstore/kvstore.go index dc59b0a8..fe38b625 100644 --- a/calendar/utils/kvstore/kvstore.go +++ b/calendar/utils/kvstore/kvstore.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License for license information. diff --git a/calendar/utils/kvstore/ots.go b/calendar/utils/kvstore/ots.go index f04f4490..346616a6 100644 --- a/calendar/utils/kvstore/ots.go +++ b/calendar/utils/kvstore/ots.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License for license information. diff --git a/calendar/utils/kvstore/plugin_store.go b/calendar/utils/kvstore/plugin_store.go index 1a5dde8d..6d14c621 100644 --- a/calendar/utils/kvstore/plugin_store.go +++ b/calendar/utils/kvstore/plugin_store.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License for license information. diff --git a/calendar/utils/kvstore/plugin_store_test.go b/calendar/utils/kvstore/plugin_store_test.go index 53429834..46ee3b35 100644 --- a/calendar/utils/kvstore/plugin_store_test.go +++ b/calendar/utils/kvstore/plugin_store_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package kvstore import ( diff --git a/calendar/utils/map.go b/calendar/utils/map.go index fa234cb9..71c12650 100644 --- a/calendar/utils/map.go +++ b/calendar/utils/map.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package utils diff --git a/calendar/utils/markdown.go b/calendar/utils/markdown.go index ef4b0621..d26d59dd 100644 --- a/calendar/utils/markdown.go +++ b/calendar/utils/markdown.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package utils diff --git a/calendar/utils/oauth2connect/oauth2.go b/calendar/utils/oauth2connect/oauth2.go index 08904277..1317a5c8 100644 --- a/calendar/utils/oauth2connect/oauth2.go +++ b/calendar/utils/oauth2connect/oauth2.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package oauth2connect diff --git a/calendar/utils/oauth2connect/oauth2_complete.go b/calendar/utils/oauth2connect/oauth2_complete.go index c7b04724..6f181945 100644 --- a/calendar/utils/oauth2connect/oauth2_complete.go +++ b/calendar/utils/oauth2connect/oauth2_complete.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package oauth2connect diff --git a/calendar/utils/oauth2connect/oauth2_connect.go b/calendar/utils/oauth2connect/oauth2_connect.go index 80e91593..c0b9bf40 100644 --- a/calendar/utils/oauth2connect/oauth2_connect.go +++ b/calendar/utils/oauth2connect/oauth2_connect.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package oauth2connect diff --git a/calendar/utils/pluginapi/api.go b/calendar/utils/pluginapi/api.go index fe5003dc..d157a520 100644 --- a/calendar/utils/pluginapi/api.go +++ b/calendar/utils/pluginapi/api.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package pluginapi diff --git a/calendar/utils/settingspanel/bool_setting.go b/calendar/utils/settingspanel/bool_setting.go index b4600d8b..80295eb8 100644 --- a/calendar/utils/settingspanel/bool_setting.go +++ b/calendar/utils/settingspanel/bool_setting.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package settingspanel import ( diff --git a/calendar/utils/settingspanel/empty_setting.go b/calendar/utils/settingspanel/empty_setting.go index 4b8fa79f..10e754db 100644 --- a/calendar/utils/settingspanel/empty_setting.go +++ b/calendar/utils/settingspanel/empty_setting.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package settingspanel import ( diff --git a/calendar/utils/settingspanel/handler.go b/calendar/utils/settingspanel/handler.go index 56174ef0..695485fd 100644 --- a/calendar/utils/settingspanel/handler.go +++ b/calendar/utils/settingspanel/handler.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package settingspanel import ( diff --git a/calendar/utils/settingspanel/option_setting.go b/calendar/utils/settingspanel/option_setting.go index 8251f1cb..7fb7b2e7 100644 --- a/calendar/utils/settingspanel/option_setting.go +++ b/calendar/utils/settingspanel/option_setting.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package settingspanel import ( diff --git a/calendar/utils/settingspanel/read_only_setting.go b/calendar/utils/settingspanel/read_only_setting.go index 1e515528..f4b1167b 100644 --- a/calendar/utils/settingspanel/read_only_setting.go +++ b/calendar/utils/settingspanel/read_only_setting.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package settingspanel import ( diff --git a/calendar/utils/settingspanel/settings.go b/calendar/utils/settingspanel/settings.go index a20399cb..9e563905 100644 --- a/calendar/utils/settingspanel/settings.go +++ b/calendar/utils/settingspanel/settings.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package settingspanel import ( diff --git a/calendar/utils/settingspanel/utils.go b/calendar/utils/settingspanel/utils.go index 2f7c5889..2679d08d 100644 --- a/calendar/utils/settingspanel/utils.go +++ b/calendar/utils/settingspanel/utils.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package settingspanel import "github.com/mattermost/mattermost/server/public/model" diff --git a/calendar/utils/slack_attachments.go b/calendar/utils/slack_attachments.go index 1a014096..30814d31 100644 --- a/calendar/utils/slack_attachments.go +++ b/calendar/utils/slack_attachments.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package utils import ( diff --git a/calendar/utils/test/gomock.go b/calendar/utils/test/gomock.go index e439ec80..a8ac3cbf 100644 --- a/calendar/utils/test/gomock.go +++ b/calendar/utils/test/gomock.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package test import ( diff --git a/calendar/utils/tz/conversion.go b/calendar/utils/tz/conversion.go index 6cefdc85..893e9767 100644 --- a/calendar/utils/tz/conversion.go +++ b/calendar/utils/tz/conversion.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package tz import ( diff --git a/calendar/utils/tz/data.go b/calendar/utils/tz/data.go index b82ed821..3cf7cd3f 100644 --- a/calendar/utils/tz/data.go +++ b/calendar/utils/tz/data.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package tz // Source:https://golang.org/src/time/zoneinfo_abbrs_windows.go diff --git a/calendar/utils/tz/tz_test.go b/calendar/utils/tz/tz_test.go index cdd55908..9c8e83e8 100644 --- a/calendar/utils/tz/tz_test.go +++ b/calendar/utils/tz/tz_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package tz import ( diff --git a/calendar/utils/url.go b/calendar/utils/url.go index d1bd5b2b..e26ad1a1 100644 --- a/calendar/utils/url.go +++ b/calendar/utils/url.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package utils import "net/url" diff --git a/msgraph/batch_request.go b/msgraph/batch_request.go index 288c6743..149140cb 100644 --- a/msgraph/batch_request.go +++ b/msgraph/batch_request.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/call.go b/msgraph/call.go index 8177f9d5..b32e021c 100644 --- a/msgraph/call.go +++ b/msgraph/call.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/client.go b/msgraph/client.go index b56230de..c8ccc28d 100644 --- a/msgraph/client.go +++ b/msgraph/client.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/create_calendar.go b/msgraph/create_calendar.go index 2145604a..5da80925 100644 --- a/msgraph/create_calendar.go +++ b/msgraph/create_calendar.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/create_event.go b/msgraph/create_event.go index 93d8a5c3..fb0a78f8 100644 --- a/msgraph/create_event.go +++ b/msgraph/create_event.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/delete_calendar.go b/msgraph/delete_calendar.go index cafd133f..2b19f884 100644 --- a/msgraph/delete_calendar.go +++ b/msgraph/delete_calendar.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/event.go b/msgraph/event.go index 5071c11a..88b8cca3 100644 --- a/msgraph/event.go +++ b/msgraph/event.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/find_meeting_times.go b/msgraph/find_meeting_times.go index c3e8c908..699478ae 100644 --- a/msgraph/find_meeting_times.go +++ b/msgraph/find_meeting_times.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/get_calendars.go b/msgraph/get_calendars.go index f9ef33e4..499683d6 100644 --- a/msgraph/get_calendars.go +++ b/msgraph/get_calendars.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/get_default_calendar_view.go b/msgraph/get_default_calendar_view.go index d5a55148..e7532c3f 100644 --- a/msgraph/get_default_calendar_view.go +++ b/msgraph/get_default_calendar_view.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/get_mailbox_settings.go b/msgraph/get_mailbox_settings.go index 35363619..ca6805e9 100644 --- a/msgraph/get_mailbox_settings.go +++ b/msgraph/get_mailbox_settings.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/get_me.go b/msgraph/get_me.go index aa447e82..8ec45072 100644 --- a/msgraph/get_me.go +++ b/msgraph/get_me.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/get_notification_data.go b/msgraph/get_notification_data.go index 7bb81bed..78a264d0 100644 --- a/msgraph/get_notification_data.go +++ b/msgraph/get_notification_data.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/get_schedule_batched.go b/msgraph/get_schedule_batched.go index 6be678e9..c70deef0 100644 --- a/msgraph/get_schedule_batched.go +++ b/msgraph/get_schedule_batched.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package msgraph import ( diff --git a/msgraph/get_schedule_batched_test.go b/msgraph/get_schedule_batched_test.go index c9bb9579..40477588 100644 --- a/msgraph/get_schedule_batched_test.go +++ b/msgraph/get_schedule_batched_test.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/get_super_user_token.go b/msgraph/get_super_user_token.go index a47d3bb0..8563b0f4 100644 --- a/msgraph/get_super_user_token.go +++ b/msgraph/get_super_user_token.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/handle_webhook.go b/msgraph/handle_webhook.go index 32429fe9..4e41d73d 100644 --- a/msgraph/handle_webhook.go +++ b/msgraph/handle_webhook.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/msgraph.go b/msgraph/msgraph.go index 343f6f18..b45318ef 100644 --- a/msgraph/msgraph.go +++ b/msgraph/msgraph.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package msgraph import ( diff --git a/msgraph/remote.go b/msgraph/remote.go index 1ac0084c..16a0977e 100644 --- a/msgraph/remote.go +++ b/msgraph/remote.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/msgraph/subscription.go b/msgraph/subscription.go index e4b682c2..ec842b9e 100644 --- a/msgraph/subscription.go +++ b/msgraph/subscription.go @@ -1,5 +1,5 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// See LICENSE.txt for license information. package msgraph diff --git a/server/main.go b/server/main.go index 655aa140..e54335cf 100644 --- a/server/main.go +++ b/server/main.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( From 6c72240f0a3160eefdfa652b5c8472015641d81d Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Thu, 23 Jan 2025 17:37:50 -0400 Subject: [PATCH 2/5] bundle LICENSE.txt and NOTICE.txt if they exist --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 15bf0aff..85c4dec9 100644 --- a/Makefile +++ b/Makefile @@ -275,6 +275,12 @@ bundle: rm -rf dist/ mkdir -p dist/$(PLUGIN_ID) ./build/bin/manifest dist +ifneq ($(wildcard LICENSE.txt),) + cp -r LICENSE.txt dist/$(PLUGIN_ID)/ +endif +ifneq ($(wildcard NOTICE.txt),) + cp -r NOTICE.txt dist/$(PLUGIN_ID)/ +endif ifneq ($(wildcard $(ASSETS_DIR)/.),) cp -r $(ASSETS_DIR) dist/$(PLUGIN_ID)/ endif From f13d253d805130af8169232fe29c10bab72be477 Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Mon, 27 Jan 2025 14:44:20 -0400 Subject: [PATCH 3/5] updated NOTICE.txt and configuration --- .config/notice-file/README.md | 28 ++++++++++++++++++++++++++++ .config/notice-file/config.yaml | 9 +++++++++ .gitignore | 3 +++ 3 files changed, 40 insertions(+) create mode 100644 .config/notice-file/README.md create mode 100644 .config/notice-file/config.yaml diff --git a/.config/notice-file/README.md b/.config/notice-file/README.md new file mode 100644 index 00000000..9d93b96f --- /dev/null +++ b/.config/notice-file/README.md @@ -0,0 +1,28 @@ +# Notice.txt File Configuration + +We are automatically generating Notice.txt by using first-level dependencies of the project. The related pipeline uses `config.yaml` stored in this folder. + + +## Configuration + +Sample: + +``` +title: "Mattermost Playbooks" +copyright: "©2015-present Mattermost, Inc. All Rights Reserved. See LICENSE for license information." +description: "This document includes a list of open source components used in Mattermost Playbooks, including those that have been modified." +search: + - "go.mod" + - "client/go.mod" +dependencies: [] +devDependencies: [] +``` + +| Field | Type | Purpose | +| :-- | :-- | :-- | +| title | string | Field content will be used as a title of the application. See first line of `NOTICE.txt` file. | +| copyright | string | Field content will be used as a copyright message. See second line of `NOTICE.txt` file. | +| description | string | Field content will be used as notice file description. See third line of `NOTICE.txt` file. | +| dependencies | array | If any dependency name mentioned, it will be automatically added even if it is not a first-level dependency. | +| devDependencies | array | If any dependency name mentioned, it will be added when it is referenced in devDependency section. | +| search | array | Pipeline will search for package.json/go.mod files mentioned here. Globstar format is supported ie. `x/**/go.mod`. | diff --git a/.config/notice-file/config.yaml b/.config/notice-file/config.yaml new file mode 100644 index 00000000..157f8791 --- /dev/null +++ b/.config/notice-file/config.yaml @@ -0,0 +1,9 @@ +--- +title: "Mattermost Microsoft Calendar Plugin" +copyright: "©2019-present Mattermost, Inc. All Rights Reserved. See LICENSE.txt for license information." +description: "This document includes a list of open source components used in the plugin, including those that have been modified." +search: + - "go.mod" + - "webapp/package.json" +dependencies: [] +devDependencies: [] diff --git a/.gitignore b/.gitignore index 332976d2..a0c036c9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ server/manifest.go .DS_Store .npminstall .idea + +# notice +.notice-work From ef522368c8dbf3bf5e5b0a68c784c0971de7ebbf Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Wed, 29 Jan 2025 09:51:24 -0400 Subject: [PATCH 4/5] rm duplicate Copyrights --- calendar/engine/daily_summary.go | 3 --- calendar/engine/notification.go | 3 --- calendar/store/event_store.go | 3 --- calendar/store/oauth2_store.go | 3 --- calendar/store/store.go | 3 --- calendar/store/subscription_store.go | 3 --- calendar/store/user_store.go | 3 --- calendar/utils/kvstore/hashed_key.go | 3 --- calendar/utils/kvstore/hashed_key_test.go | 3 --- calendar/utils/kvstore/kvstore.go | 3 --- calendar/utils/kvstore/ots.go | 3 --- calendar/utils/kvstore/plugin_store.go | 3 --- 12 files changed, 36 deletions(-) diff --git a/calendar/engine/daily_summary.go b/calendar/engine/daily_summary.go index 3dc23fd8..d78d27bd 100644 --- a/calendar/engine/daily_summary.go +++ b/calendar/engine/daily_summary.go @@ -1,9 +1,6 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. - package engine import ( diff --git a/calendar/engine/notification.go b/calendar/engine/notification.go index dec22df4..f4c7b084 100644 --- a/calendar/engine/notification.go +++ b/calendar/engine/notification.go @@ -1,9 +1,6 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. - package engine import ( diff --git a/calendar/store/event_store.go b/calendar/store/event_store.go index c682f846..7c583372 100644 --- a/calendar/store/event_store.go +++ b/calendar/store/event_store.go @@ -1,9 +1,6 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. - package store import ( diff --git a/calendar/store/oauth2_store.go b/calendar/store/oauth2_store.go index a4125bd5..cf7df64b 100644 --- a/calendar/store/oauth2_store.go +++ b/calendar/store/oauth2_store.go @@ -1,9 +1,6 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. - package store import ( diff --git a/calendar/store/store.go b/calendar/store/store.go index 7f543d9a..ae10b530 100644 --- a/calendar/store/store.go +++ b/calendar/store/store.go @@ -1,9 +1,6 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. - package store import ( diff --git a/calendar/store/subscription_store.go b/calendar/store/subscription_store.go index 2d727872..bcbcc4b1 100644 --- a/calendar/store/subscription_store.go +++ b/calendar/store/subscription_store.go @@ -1,9 +1,6 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. - package store import ( diff --git a/calendar/store/user_store.go b/calendar/store/user_store.go index f5a9a04b..53dab8a3 100644 --- a/calendar/store/user_store.go +++ b/calendar/store/user_store.go @@ -1,9 +1,6 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. - package store import ( diff --git a/calendar/utils/kvstore/hashed_key.go b/calendar/utils/kvstore/hashed_key.go index a91fa1fa..03681d15 100644 --- a/calendar/utils/kvstore/hashed_key.go +++ b/calendar/utils/kvstore/hashed_key.go @@ -1,9 +1,6 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. - package kvstore import ( diff --git a/calendar/utils/kvstore/hashed_key_test.go b/calendar/utils/kvstore/hashed_key_test.go index b64da2ba..4c8b9c39 100644 --- a/calendar/utils/kvstore/hashed_key_test.go +++ b/calendar/utils/kvstore/hashed_key_test.go @@ -1,9 +1,6 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. - package kvstore import ( diff --git a/calendar/utils/kvstore/kvstore.go b/calendar/utils/kvstore/kvstore.go index fe38b625..4d517950 100644 --- a/calendar/utils/kvstore/kvstore.go +++ b/calendar/utils/kvstore/kvstore.go @@ -1,9 +1,6 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. - package kvstore import ( diff --git a/calendar/utils/kvstore/ots.go b/calendar/utils/kvstore/ots.go index 346616a6..dad5174a 100644 --- a/calendar/utils/kvstore/ots.go +++ b/calendar/utils/kvstore/ots.go @@ -1,9 +1,6 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. - package kvstore import ( diff --git a/calendar/utils/kvstore/plugin_store.go b/calendar/utils/kvstore/plugin_store.go index 6d14c621..d4a160ff 100644 --- a/calendar/utils/kvstore/plugin_store.go +++ b/calendar/utils/kvstore/plugin_store.go @@ -1,9 +1,6 @@ // Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. - package kvstore import ( From 59e70a33a4d3c410dc08d15863a5d14dc3e25216 Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Thu, 30 Jan 2025 14:50:28 -0400 Subject: [PATCH 5/5] updated files --- calendar/store/subscription_store_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/calendar/store/subscription_store_test.go b/calendar/store/subscription_store_test.go index abd8f9f2..3afb5a08 100644 --- a/calendar/store/subscription_store_test.go +++ b/calendar/store/subscription_store_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package store import (