diff --git a/.github/actions/generate-specs/split-tests.go b/.github/actions/generate-specs/split-tests.go index 7b669b9a03..5619bc9391 100644 --- a/.github/actions/generate-specs/split-tests.go +++ b/.github/actions/generate-specs/split-tests.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/Makefile b/Makefile index a3e08aa7e9..77864d4f49 100644 --- a/Makefile +++ b/Makefile @@ -168,6 +168,7 @@ install-go-tools: $(GO) install github.com/golang/mock/mockgen@v1.6.0 $(GO) install gotest.tools/gotestsum@v1.7.0 $(GO) install github.com/cortesi/modd/cmd/modd@latest + $(GO) install github.com/mattermost/mattermost-govet/v2@b5c9b881a8d2557945be5ce8ea365b70d280bde6 ## Runs eslint and golangci-lint .PHONY: check-style @@ -188,6 +189,7 @@ ifneq ($(HAS_SERVER),) @echo Running golangci-lint $(GO) vet ./... $(GOBIN)/golangci-lint run ./... + $(GO) vet -vettool=$(GOBIN)/mattermost-govet -license -license.ignore=server/manifest.go ./... endif ## Fix JS file ESLint issues diff --git a/NOTICE.txt b/NOTICE.txt index 22d2bd0b6e..9b4c260896 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -1,6 +1,6 @@ Mattermost Playbooks -©2015-present Mattermost, Inc. All Rights Reserved. See LICENSE for license information. +©2015-present Mattermost, Inc. All Rights Reserved. See LICENSE.txt for license information. NOTICES: -------- diff --git a/build/manifest/main.go b/build/manifest/main.go index 9adec45805..0f72cebe26 100644 --- a/build/manifest/main.go +++ b/build/manifest/main.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-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 f20e8bbacb..69c7361dee 100644 --- a/build/pluginctl/logs.go +++ b/build/pluginctl/logs.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-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 2917a27133..ca54982fcb 100644 --- a/build/pluginctl/logs_test.go +++ b/build/pluginctl/logs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-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 2f80af5b0a..5e6ed9833f 100644 --- a/build/pluginctl/main.go +++ b/build/pluginctl/main.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-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/client/action.go b/client/action.go index a0a698a152..c66ae5a1a5 100644 --- a/client/action.go +++ b/client/action.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package client type GenericChannelActionWithoutPayload struct { diff --git a/client/client_test.go b/client/client_test.go index a24550282a..39dff88f5b 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package client_test import ( diff --git a/client/doc_test.go b/client/doc_test.go index 1fa4703fbe..9acd1be887 100644 --- a/client/doc_test.go +++ b/client/doc_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package client_test import ( diff --git a/client/error_response.go b/client/error_response.go index 1d16f70ae1..50306d7afa 100644 --- a/client/error_response.go +++ b/client/error_response.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package client import ( diff --git a/client/playbook.go b/client/playbook.go index a6420f95f5..43163e40f6 100644 --- a/client/playbook.go +++ b/client/playbook.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package client import ( diff --git a/client/playbook_run.go b/client/playbook_run.go index 786eeb88da..6e3bb7d881 100644 --- a/client/playbook_run.go +++ b/client/playbook_run.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package client import ( diff --git a/client/playbook_runs_test.go b/client/playbook_runs_test.go index c97828e479..41f1b3c77d 100644 --- a/client/playbook_runs_test.go +++ b/client/playbook_runs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package client_test import ( diff --git a/client/playbooks_test.go b/client/playbooks_test.go index 265e955690..52e5227a61 100644 --- a/client/playbooks_test.go +++ b/client/playbooks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package client_test import ( diff --git a/client/reminder.go b/client/reminder.go index 2e0460a837..56a1167b30 100644 --- a/client/reminder.go +++ b/client/reminder.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package client type ReminderResetPayload struct { diff --git a/client/reminders.go b/client/reminders.go index b83547f70d..bf889a070c 100644 --- a/client/reminders.go +++ b/client/reminders.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package client import ( diff --git a/client/stats.go b/client/stats.go index 15cd6452ca..4769f45bfa 100644 --- a/client/stats.go +++ b/client/stats.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package client import ( diff --git a/client/tabapp.go b/client/tabapp.go index 8e44ef8e8c..bc247dbf98 100644 --- a/client/tabapp.go +++ b/client/tabapp.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package client import ( diff --git a/client/telemetry.go b/client/telemetry.go index 5caef1ce34..73ca21e5d0 100644 --- a/client/telemetry.go +++ b/client/telemetry.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package client import ( diff --git a/client/unexport_test.go b/client/unexport_test.go index 99e46b1705..76c252283e 100644 --- a/client/unexport_test.go +++ b/client/unexport_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package client var BuildAPIURL = buildAPIURL diff --git a/server/api/actions.go b/server/api/actions.go index 4a01925735..0a84f629f4 100644 --- a/server/api/actions.go +++ b/server/api/actions.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/api.go b/server/api/api.go index 9fef0caf7d..1170cedace 100644 --- a/server/api/api.go +++ b/server/api/api.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/bot.go b/server/api/bot.go index fd84714309..57df5af3df 100644 --- a/server/api/bot.go +++ b/server/api/bot.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/categories.go b/server/api/categories.go index b2d7248fc9..241b0a2dbd 100644 --- a/server/api/categories.go +++ b/server/api/categories.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/context.go b/server/api/context.go index 8131073481..f6f782b089 100644 --- a/server/api/context.go +++ b/server/api/context.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/graph_dataloader.go b/server/api/graph_dataloader.go index 74fabbaca1..bc08d88598 100644 --- a/server/api/graph_dataloader.go +++ b/server/api/graph_dataloader.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/graphql.go b/server/api/graphql.go index c8ea5461ad..a3c87b4165 100644 --- a/server/api/graphql.go +++ b/server/api/graphql.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/graphql_loader_favorite.go b/server/api/graphql_loader_favorite.go index 78672d23ef..466e8cbb50 100644 --- a/server/api/graphql_loader_favorite.go +++ b/server/api/graphql_loader_favorite.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/graphql_loader_playbook.go b/server/api/graphql_loader_playbook.go index e21c3b1004..59c7d45ea9 100644 --- a/server/api/graphql_loader_playbook.go +++ b/server/api/graphql_loader_playbook.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/graphql_loader_run.go b/server/api/graphql_loader_run.go index 73a040967d..523defca22 100644 --- a/server/api/graphql_loader_run.go +++ b/server/api/graphql_loader_run.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/graphql_playbook.go b/server/api/graphql_playbook.go index 02e3f6b7d8..e0c36b36e7 100644 --- a/server/api/graphql_playbook.go +++ b/server/api/graphql_playbook.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/graphql_root.go b/server/api/graphql_root.go index 3ad06c0af4..d5dd8cbd56 100644 --- a/server/api/graphql_root.go +++ b/server/api/graphql_root.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/graphql_root_playbook.go b/server/api/graphql_root_playbook.go index 8679d9c38a..2208d399bb 100644 --- a/server/api/graphql_root_playbook.go +++ b/server/api/graphql_root_playbook.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/graphql_root_run.go b/server/api/graphql_root_run.go index 940c2dab6a..92c88e32ec 100644 --- a/server/api/graphql_root_run.go +++ b/server/api/graphql_root_run.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/graphql_run.go b/server/api/graphql_run.go index c2b6b0d539..3c2673a012 100644 --- a/server/api/graphql_run.go +++ b/server/api/graphql_run.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/logger.go b/server/api/logger.go index 8d8c2fbc6a..263fe66d5b 100644 --- a/server/api/logger.go +++ b/server/api/logger.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/permutation_test.go b/server/api/permutation_test.go index bf8ed46c1c..61b93eee78 100644 --- a/server/api/permutation_test.go +++ b/server/api/permutation_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/playbook_runs.go b/server/api/playbook_runs.go index f55228dcee..48be7fb883 100644 --- a/server/api/playbook_runs.go +++ b/server/api/playbook_runs.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/playbooks.go b/server/api/playbooks.go index 8b245a70d4..989ed7ceaf 100644 --- a/server/api/playbooks.go +++ b/server/api/playbooks.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/settings.go b/server/api/settings.go index f2f7e8f821..42599fece9 100644 --- a/server/api/settings.go +++ b/server/api/settings.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/signal.go b/server/api/signal.go index c84705dbb0..e0c7e00d30 100644 --- a/server/api/signal.go +++ b/server/api/signal.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/stats.go b/server/api/stats.go index 42e86674c3..87e29e8ed7 100644 --- a/server/api/stats.go +++ b/server/api/stats.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/tabapp.go b/server/api/tabapp.go index 046c61262d..da4ae172d1 100644 --- a/server/api/tabapp.go +++ b/server/api/tabapp.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/tabapp_test.go b/server/api/tabapp_test.go index 58e78aa50d..4065a599d3 100644 --- a/server/api/tabapp_test.go +++ b/server/api/tabapp_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/telemetry.go b/server/api/telemetry.go index 8ffcbeaf61..ec90c748f4 100644 --- a/server/api/telemetry.go +++ b/server/api/telemetry.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api/urls.go b/server/api/urls.go index 145dd02c2a..b1c85950fa 100644 --- a/server/api/urls.go +++ b/server/api/urls.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package api import ( diff --git a/server/api_actions_test.go b/server/api_actions_test.go index 6ec0649561..7ac540e0d6 100644 --- a/server/api_actions_test.go +++ b/server/api_actions_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/api_bot_test.go b/server/api_bot_test.go index e77f7f7dc9..841154dc72 100644 --- a/server/api_bot_test.go +++ b/server/api_bot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/api_general_test.go b/server/api_general_test.go index 62b6e6164c..8e2c88d024 100644 --- a/server/api_general_test.go +++ b/server/api_general_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/api_graphql_playbooks_test.go b/server/api_graphql_playbooks_test.go index 481b069f89..26846263b2 100644 --- a/server/api_graphql_playbooks_test.go +++ b/server/api_graphql_playbooks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/api_graphql_runs_test.go b/server/api_graphql_runs_test.go index 9ebb7b8356..0e493cf08f 100644 --- a/server/api_graphql_runs_test.go +++ b/server/api_graphql_runs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/api_playbooks_test.go b/server/api_playbooks_test.go index 304b60a7aa..36ab5fb4f8 100644 --- a/server/api_playbooks_test.go +++ b/server/api_playbooks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/api_runs_test.go b/server/api_runs_test.go index a798121c2d..889350939d 100644 --- a/server/api_runs_test.go +++ b/server/api_runs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/api_settings_test.go b/server/api_settings_test.go index 7776031a6c..86e3950cbd 100644 --- a/server/api_settings_test.go +++ b/server/api_settings_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/api_stats_test.go b/server/api_stats_test.go index 30975424fd..2273d385d5 100644 --- a/server/api_stats_test.go +++ b/server/api_stats_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/api_tabapp_test.go b/server/api_tabapp_test.go index d60fc0b4ae..f42a7d5ab1 100644 --- a/server/api_tabapp_test.go +++ b/server/api_tabapp_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/app/action.go b/server/app/action.go index 952a79c9dd..692cbb949d 100644 --- a/server/app/action.go +++ b/server/app/action.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import "github.com/mattermost/mattermost/server/public/model" diff --git a/server/app/actions_service.go b/server/app/actions_service.go index 641d8f1674..27135992c7 100644 --- a/server/app/actions_service.go +++ b/server/app/actions_service.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/category.go b/server/app/category.go index 1582adc021..c64e8fc639 100644 --- a/server/app/category.go +++ b/server/app/category.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/category_service.go b/server/app/category_service.go index 066c56c42a..6fbe890776 100644 --- a/server/app/category_service.go +++ b/server/app/category_service.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/errors.go b/server/app/errors.go index d40c39f25e..7605b3fd29 100644 --- a/server/app/errors.go +++ b/server/app/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import "github.com/pkg/errors" diff --git a/server/app/export.go b/server/app/export.go index 94c6aa91a3..8f27d01310 100644 --- a/server/app/export.go +++ b/server/app/export.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/export_test.go b/server/app/export_test.go index 137d7517c1..961ef347a6 100644 --- a/server/app/export_test.go +++ b/server/app/export_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/keywords_ignore.go b/server/app/keywords_ignore.go index 29214c98d8..d13affb177 100644 --- a/server/app/keywords_ignore.go +++ b/server/app/keywords_ignore.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import "sync" diff --git a/server/app/permissions_service.go b/server/app/permissions_service.go index f27f487cbf..d4ea8a6cb8 100644 --- a/server/app/permissions_service.go +++ b/server/app/permissions_service.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/playbook.go b/server/app/playbook.go index 3e4b5d556e..ff61ce9442 100644 --- a/server/app/playbook.go +++ b/server/app/playbook.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/playbook_run.go b/server/app/playbook_run.go index 8ba58faa17..9d5cbfd57a 100644 --- a/server/app/playbook_run.go +++ b/server/app/playbook_run.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/playbook_run_service.go b/server/app/playbook_run_service.go index 385cc183f6..86775e15bd 100644 --- a/server/app/playbook_run_service.go +++ b/server/app/playbook_run_service.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/playbook_run_test.go b/server/app/playbook_run_test.go index 526673d3a1..dae6c33f95 100644 --- a/server/app/playbook_run_test.go +++ b/server/app/playbook_run_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/playbook_service.go b/server/app/playbook_service.go index 2b2a917689..7fbe9da3fd 100644 --- a/server/app/playbook_service.go +++ b/server/app/playbook_service.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/playbook_test.go b/server/app/playbook_test.go index ca9a1b3856..c8d79650fe 100644 --- a/server/app/playbook_test.go +++ b/server/app/playbook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/plugin_api_tools.go b/server/app/plugin_api_tools.go index bdd2decf64..28e16f6520 100644 --- a/server/app/plugin_api_tools.go +++ b/server/app/plugin_api_tools.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/regular_digest_service.go b/server/app/regular_digest_service.go index 422fdd4f9d..db0a51a4ff 100644 --- a/server/app/regular_digest_service.go +++ b/server/app/regular_digest_service.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/regular_digest_service_test.go b/server/app/regular_digest_service_test.go index f5dbf1bd3d..fe9ae4a996 100644 --- a/server/app/regular_digest_service_test.go +++ b/server/app/regular_digest_service_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/sort.go b/server/app/sort.go index e07707df57..208a38f3b6 100644 --- a/server/app/sort.go +++ b/server/app/sort.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app // SortField enumerates the available fields we can sort on. diff --git a/server/app/task_actions.go b/server/app/task_actions.go index 7d706663c1..19da813377 100644 --- a/server/app/task_actions.go +++ b/server/app/task_actions.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/task_actions_test.go b/server/app/task_actions_test.go index 58644c35fb..07d571e3a6 100644 --- a/server/app/task_actions_test.go +++ b/server/app/task_actions_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/urls.go b/server/app/urls.go index dd79228b05..22dedaa0d0 100644 --- a/server/app/urls.go +++ b/server/app/urls.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import "fmt" diff --git a/server/app/urls_test.go b/server/app/urls_test.go index 21e901c5c1..d79c420c64 100644 --- a/server/app/urls_test.go +++ b/server/app/urls_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/variables.go b/server/app/variables.go index 4dbd0b090e..f0827b2448 100644 --- a/server/app/variables.go +++ b/server/app/variables.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/app/variables_test.go b/server/app/variables_test.go index c4eb6d8496..048218b10f 100644 --- a/server/app/variables_test.go +++ b/server/app/variables_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package app import ( diff --git a/server/bot/bot.go b/server/bot/bot.go index 49ae62d10a..6cedb45651 100644 --- a/server/bot/bot.go +++ b/server/bot/bot.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package bot import ( diff --git a/server/bot/poster.go b/server/bot/poster.go index 6e4cae64c0..ea578f51e0 100644 --- a/server/bot/poster.go +++ b/server/bot/poster.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package bot import ( diff --git a/server/command/command.go b/server/command/command.go index 99bd15e7d7..2879daf102 100644 --- a/server/command/command.go +++ b/server/command/command.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package command import ( diff --git a/server/config/config.go b/server/config/config.go index 6c0b3dcd14..636ba444dd 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package config import "github.com/mattermost/mattermost/server/public/model" diff --git a/server/config/configuration.go b/server/config/configuration.go index e55f80873b..ecb42fd3de 100644 --- a/server/config/configuration.go +++ b/server/config/configuration.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package config // Configuration captures the plugin's external configuration as exposed in the Mattermost server diff --git a/server/config/service.go b/server/config/service.go index a0d40ebf34..ec1e126d66 100644 --- a/server/config/service.go +++ b/server/config/service.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package config import ( diff --git a/server/enterprise/license.go b/server/enterprise/license.go index 124b63e05d..723461676d 100644 --- a/server/enterprise/license.go +++ b/server/enterprise/license.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package enterprise import ( diff --git a/server/httptools/client.go b/server/httptools/client.go index 69ab2e2b01..9d90fa3d41 100644 --- a/server/httptools/client.go +++ b/server/httptools/client.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package httptools import ( diff --git a/server/main.go b/server/main.go index f8b7ef327e..6cb2fe0a9e 100644 --- a/server/main.go +++ b/server/main.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/main_test.go b/server/main_test.go index 15ba100b08..43dfc11ad8 100644 --- a/server/main_test.go +++ b/server/main_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/metrics/metrics.go b/server/metrics/metrics.go index 71895784bc..f983afcd6a 100644 --- a/server/metrics/metrics.go +++ b/server/metrics/metrics.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package metrics import ( diff --git a/server/metrics/service.go b/server/metrics/service.go index 95eae9b93d..31b3ea3abf 100644 --- a/server/metrics/service.go +++ b/server/metrics/service.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package metrics import ( diff --git a/server/plugin.go b/server/plugin.go index 9b4cb61cb7..621b86dc22 100644 --- a/server/plugin.go +++ b/server/plugin.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/safemapstructure/safemapstructure.go b/server/safemapstructure/safemapstructure.go index 708475ac40..4d00a909c6 100644 --- a/server/safemapstructure/safemapstructure.go +++ b/server/safemapstructure/safemapstructure.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package safemapstructure import ( diff --git a/server/safemapstructure/safemapstructure_test.go b/server/safemapstructure/safemapstructure_test.go index 360f675158..4768e64d96 100644 --- a/server/safemapstructure/safemapstructure_test.go +++ b/server/safemapstructure/safemapstructure_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package safemapstructure import ( diff --git a/server/sqlstore/actions.go b/server/sqlstore/actions.go index 33560f1e74..2a5c82a4f5 100644 --- a/server/sqlstore/actions.go +++ b/server/sqlstore/actions.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/actions_test.go b/server/sqlstore/actions_test.go index 23881603bc..2c7fd78e3e 100644 --- a/server/sqlstore/actions_test.go +++ b/server/sqlstore/actions_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/category.go b/server/sqlstore/category.go index 2ce8ad2edd..99eae79417 100644 --- a/server/sqlstore/category.go +++ b/server/sqlstore/category.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/category_test.go b/server/sqlstore/category_test.go index 4dbde032b8..b2e889da97 100644 --- a/server/sqlstore/category_test.go +++ b/server/sqlstore/category_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/migrate.go b/server/sqlstore/migrate.go index ffb2c18d22..5d797af93d 100644 --- a/server/sqlstore/migrate.go +++ b/server/sqlstore/migrate.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/migrations.go b/server/sqlstore/migrations.go index 8f647f048a..ff06e50276 100644 --- a/server/sqlstore/migrations.go +++ b/server/sqlstore/migrations.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/migrations_test.go b/server/sqlstore/migrations_test.go index 89e2d91e28..c13289e8c6 100644 --- a/server/sqlstore/migrations_test.go +++ b/server/sqlstore/migrations_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/migrations_tests_utils.go b/server/sqlstore/migrations_tests_utils.go index e234be2303..c592dfd678 100644 --- a/server/sqlstore/migrations_tests_utils.go +++ b/server/sqlstore/migrations_tests_utils.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import sq "github.com/Masterminds/squirrel" diff --git a/server/sqlstore/migrations_utils.go b/server/sqlstore/migrations_utils.go index 715f487246..0e9f13232f 100644 --- a/server/sqlstore/migrations_utils.go +++ b/server/sqlstore/migrations_utils.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/playbook.go b/server/sqlstore/playbook.go index 63a9f57fc2..d05f63dfc7 100644 --- a/server/sqlstore/playbook.go +++ b/server/sqlstore/playbook.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/playbook_run.go b/server/sqlstore/playbook_run.go index e5e9b85fde..6fc78e6ddc 100644 --- a/server/sqlstore/playbook_run.go +++ b/server/sqlstore/playbook_run.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/playbook_run_test.go b/server/sqlstore/playbook_run_test.go index 0c9b29fb06..b3ca7a804f 100644 --- a/server/sqlstore/playbook_run_test.go +++ b/server/sqlstore/playbook_run_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/playbook_test.go b/server/sqlstore/playbook_test.go index a12b475e87..5728575571 100644 --- a/server/sqlstore/playbook_test.go +++ b/server/sqlstore/playbook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/pluginapi_client.go b/server/sqlstore/pluginapi_client.go index 3766205f52..d95276cefb 100644 --- a/server/sqlstore/pluginapi_client.go +++ b/server/sqlstore/pluginapi_client.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/stats.go b/server/sqlstore/stats.go index 9966bd3c9d..d5a52ce065 100644 --- a/server/sqlstore/stats.go +++ b/server/sqlstore/stats.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/stats_test.go b/server/sqlstore/stats_test.go index 92b917b9e6..9782403bbe 100644 --- a/server/sqlstore/stats_test.go +++ b/server/sqlstore/stats_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/store.go b/server/sqlstore/store.go index 1e29bbb9af..55112b39c0 100644 --- a/server/sqlstore/store.go +++ b/server/sqlstore/store.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/store_test.go b/server/sqlstore/store_test.go index 16e6df8966..a904729d8b 100644 --- a/server/sqlstore/store_test.go +++ b/server/sqlstore/store_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/support_for_test.go b/server/sqlstore/support_for_test.go index 9a93a597e0..20716eea4d 100644 --- a/server/sqlstore/support_for_test.go +++ b/server/sqlstore/support_for_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/system.go b/server/sqlstore/system.go index 53778629ce..c7771b6578 100644 --- a/server/sqlstore/system.go +++ b/server/sqlstore/system.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/sqlstore/versions.go b/server/sqlstore/versions.go index af64e2499d..84eab544e0 100644 --- a/server/sqlstore/versions.go +++ b/server/sqlstore/versions.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package sqlstore import ( diff --git a/server/support_packet.go b/server/support_packet.go index 59e0ca7331..719f4fd6da 100644 --- a/server/support_packet.go +++ b/server/support_packet.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/support_packet_test.go b/server/support_packet_test.go index b163c4fc52..f4c4b9dd16 100644 --- a/server/support_packet_test.go +++ b/server/support_packet_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/tabapp.go b/server/tabapp.go index 52f2d1eb8c..efef95bb67 100644 --- a/server/tabapp.go +++ b/server/tabapp.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package main import ( diff --git a/server/telemetry/noop.go b/server/telemetry/noop.go index 5182464e8e..d701ebee11 100644 --- a/server/telemetry/noop.go +++ b/server/telemetry/noop.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package telemetry import ( diff --git a/server/telemetry/rudder.go b/server/telemetry/rudder.go index 619cdc39f4..e326c28c6f 100644 --- a/server/telemetry/rudder.go +++ b/server/telemetry/rudder.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package telemetry import ( diff --git a/server/telemetry/rudder_test.go b/server/telemetry/rudder_test.go index 1fefaace8f..7bffbc2dca 100644 --- a/server/telemetry/rudder_test.go +++ b/server/telemetry/rudder_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package telemetry import ( diff --git a/server/timeutils/timeutils.go b/server/timeutils/timeutils.go index 8899264019..6acb1a2fe9 100644 --- a/server/timeutils/timeutils.go +++ b/server/timeutils/timeutils.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package timeutils import ( diff --git a/server/timeutils/timeutils_test.go b/server/timeutils/timeutils_test.go index 86c2c84326..cafd586add 100644 --- a/server/timeutils/timeutils_test.go +++ b/server/timeutils/timeutils_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + package timeutils import ( diff --git a/webapp/.eslintrc.json b/webapp/.eslintrc.json index 4ddac0c3e6..6eefdabd99 100644 --- a/webapp/.eslintrc.json +++ b/webapp/.eslintrc.json @@ -1,8 +1,7 @@ { "extends": [ - "eslint:recommended", - "plugin:react-hooks/recommended" - + "eslint:recommended", + "plugin:react-hooks/recommended" ], "parser": "@typescript-eslint/parser", "plugins": [ @@ -12,7 +11,8 @@ "@typescript-eslint", "unused-imports", "no-relative-import-paths", - "import-newlines" + "import-newlines", + "header" ], "env": { "browser": true, @@ -33,9 +33,12 @@ "settings": { "import/resolver": "webpack", "react": { - "version": "detect" + "version": "detect" } }, + "ignorePatterns": [ + "src/manifest.ts" + ], "rules": { "array-bracket-spacing": [ 2, @@ -128,6 +131,12 @@ ], "global-require": 2, "guard-for-in": 2, + "header/header": [ + 2, + "line", + " Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n See LICENSE.txt for license information.", + 2 + ], "id-blacklist": 0, "import/no-unresolved": 0, // ts handles this better "import/order": [ @@ -147,8 +156,8 @@ } ], "import-newlines/enforce": [ - 2, - 3 + 2, + 3 ], "indent": 0, // ts handles this "jsx-quotes": [ @@ -538,7 +547,7 @@ "location", "history", "component", - "className" + "className" ] } ], @@ -548,15 +557,15 @@ "react/self-closing-comp": 2, "react/sort-comp": 0, "react/style-prop-object": [ - 2, - { - "allow": [ - "FormattedNumber", - "FormattedDuration", - "FormattedRelativeTime", - "Timestamp" - ] - } + 2, + { + "allow": [ + "FormattedNumber", + "FormattedDuration", + "FormattedRelativeTime", + "Timestamp" + ] + } ], "require-yield": 2, "rest-spread-spacing": [ @@ -638,12 +647,17 @@ "unused-imports/no-unused-imports": 2, "no-relative-import-paths/no-relative-import-paths": [ "error", - { "allowSameFolder": true } + { + "allowSameFolder": true + } ] }, "overrides": [ { - "files": ["**/*.tsx", "**/*.ts"], + "files": [ + "**/*.tsx", + "**/*.ts" + ], "extends": "plugin:@typescript-eslint/recommended", "rules": { "@typescript-eslint/ban-ts-ignore": 0, @@ -679,7 +693,10 @@ "react/jsx-filename-extension": [ 1, { - "extensions": [".jsx", ".tsx"] + "extensions": [ + ".jsx", + ".tsx" + ] } ] } diff --git a/webapp/graphql_gen.ts b/webapp/graphql_gen.ts index 9165a1ff39..50997bd336 100644 --- a/webapp/graphql_gen.ts +++ b/webapp/graphql_gen.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {CodegenConfig} from '@graphql-codegen/cli'; const config: CodegenConfig = { diff --git a/webapp/package-lock.json b/webapp/package-lock.json index 6f935f380e..d3a6253c34 100644 --- a/webapp/package-lock.json +++ b/webapp/package-lock.json @@ -88,6 +88,7 @@ "eslint": "8.37.0", "eslint-import-resolver-webpack": "0.13.2", "eslint-plugin-formatjs": "4.0.2", + "eslint-plugin-header": "3.1.1", "eslint-plugin-import": "2.25.4", "eslint-plugin-import-newlines": "1.3.0", "eslint-plugin-no-relative-import-paths": "1.5.0", @@ -9595,6 +9596,15 @@ "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", "dev": true }, + "node_modules/eslint-plugin-header": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-header/-/eslint-plugin-header-3.1.1.tgz", + "integrity": "sha512-9vlKxuJ4qf793CmeeSrZUvVClw6amtpghq3CuWcB5cUNnWHQhgcqy5eF8oVKFk1G3Y/CbchGfEaw3wiIJaNmVg==", + "dev": true, + "peerDependencies": { + "eslint": ">=7.7.0" + } + }, "node_modules/eslint-plugin-import": { "version": "2.25.4", "integrity": "sha512-/KJBASVFxpu0xg1kIBn9AUa8hQVnszpwgE7Ld0lKAlx7Ie87yzEzCgSkekt+le/YVhiaosO4Y14GDAOc41nfxA==", @@ -27467,6 +27477,12 @@ } } }, + "eslint-plugin-header": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-header/-/eslint-plugin-header-3.1.1.tgz", + "integrity": "sha512-9vlKxuJ4qf793CmeeSrZUvVClw6amtpghq3CuWcB5cUNnWHQhgcqy5eF8oVKFk1G3Y/CbchGfEaw3wiIJaNmVg==", + "dev": true + }, "eslint-plugin-import": { "version": "2.25.4", "integrity": "sha512-/KJBASVFxpu0xg1kIBn9AUa8hQVnszpwgE7Ld0lKAlx7Ie87yzEzCgSkekt+le/YVhiaosO4Y14GDAOc41nfxA==", diff --git a/webapp/package.json b/webapp/package.json index cf0a2a63d6..9f87ecea52 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -88,6 +88,7 @@ "eslint": "8.37.0", "eslint-import-resolver-webpack": "0.13.2", "eslint-plugin-formatjs": "4.0.2", + "eslint-plugin-header": "3.1.1", "eslint-plugin-import": "2.25.4", "eslint-plugin-import-newlines": "1.3.0", "eslint-plugin-no-relative-import-paths": "1.5.0", diff --git a/webapp/rudder_transform.js b/webapp/rudder_transform.js index 34d2885ed2..ce4ceb3a72 100644 --- a/webapp/rudder_transform.js +++ b/webapp/rudder_transform.js @@ -1,4 +1,3 @@ -/* eslint-disable no-unused-vars */ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. @@ -8,6 +7,7 @@ // old event data into the new event data. // ts-prune-ignore-next +// eslint-disable-next-line no-unused-vars export function transformEvent(event, metadata) { const action = event.properties.Action; diff --git a/webapp/skip_integrity_check.js b/webapp/skip_integrity_check.js index 86ec53ce32..4dbb91acc5 100644 --- a/webapp/skip_integrity_check.js +++ b/webapp/skip_integrity_check.js @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + const fs = require('fs'); const content = JSON.parse(fs.readFileSync('package-lock.json', 'utf-8')); diff --git a/webapp/src/actions.ts b/webapp/src/actions.ts index df0f4ef139..1d830d58f7 100644 --- a/webapp/src/actions.ts +++ b/webapp/src/actions.ts @@ -1,5 +1,6 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. + import {AnyAction, Dispatch} from 'redux'; import {generateId} from 'mattermost-redux/utils/helpers'; diff --git a/webapp/src/components/assets/buttons.tsx b/webapp/src/components/assets/buttons.tsx index 05b62eade8..3038ead633 100644 --- a/webapp/src/components/assets/buttons.tsx +++ b/webapp/src/components/assets/buttons.tsx @@ -1,5 +1,5 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/assets/icons/clear_icon.tsx b/webapp/src/components/assets/icons/clear_icon.tsx index c97e42b097..27ad63e77a 100644 --- a/webapp/src/components/assets/icons/clear_icon.tsx +++ b/webapp/src/components/assets/icons/clear_icon.tsx @@ -1,5 +1,5 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import styled from 'styled-components'; diff --git a/webapp/src/components/assets/icons/clock.tsx b/webapp/src/components/assets/icons/clock.tsx index a6babd5bbb..8a3d0b9167 100644 --- a/webapp/src/components/assets/icons/clock.tsx +++ b/webapp/src/components/assets/icons/clock.tsx @@ -1,5 +1,5 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/assets/icons/exclamation.tsx b/webapp/src/components/assets/icons/exclamation.tsx index 1bb97e02ea..098196e33a 100644 --- a/webapp/src/components/assets/icons/exclamation.tsx +++ b/webapp/src/components/assets/icons/exclamation.tsx @@ -1,5 +1,5 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/assets/icons/external_link.tsx b/webapp/src/components/assets/icons/external_link.tsx index e56cb5d754..709cf12ad4 100644 --- a/webapp/src/components/assets/icons/external_link.tsx +++ b/webapp/src/components/assets/icons/external_link.tsx @@ -1,5 +1,5 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/assets/icons/playbooks_product_icon.tsx b/webapp/src/components/assets/icons/playbooks_product_icon.tsx index c5866d61d6..ee19b3c9a3 100644 --- a/webapp/src/components/assets/icons/playbooks_product_icon.tsx +++ b/webapp/src/components/assets/icons/playbooks_product_icon.tsx @@ -1,5 +1,5 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/assets/icons/post_menu_icon.tsx b/webapp/src/components/assets/icons/post_menu_icon.tsx index 2f0f3ac3bb..169c959acf 100644 --- a/webapp/src/components/assets/icons/post_menu_icon.tsx +++ b/webapp/src/components/assets/icons/post_menu_icon.tsx @@ -1,5 +1,5 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import React from 'react'; diff --git a/webapp/src/components/assets/inputs.tsx b/webapp/src/components/assets/inputs.tsx index 44b4267ca1..3352c6f81e 100644 --- a/webapp/src/components/assets/inputs.tsx +++ b/webapp/src/components/assets/inputs.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import styled from 'styled-components'; export const BaseInput = styled.input<{invalid?: boolean}>` diff --git a/webapp/src/components/assets/loading_spinner.tsx b/webapp/src/components/assets/loading_spinner.tsx index 422e2643b2..7d5881c51d 100644 --- a/webapp/src/components/assets/loading_spinner.tsx +++ b/webapp/src/components/assets/loading_spinner.tsx @@ -1,4 +1,3 @@ - // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. diff --git a/webapp/src/components/assets/no_content_playbook_runs_svg.tsx b/webapp/src/components/assets/no_content_playbook_runs_svg.tsx index dcf99ae3b7..ffd13f18c1 100644 --- a/webapp/src/components/assets/no_content_playbook_runs_svg.tsx +++ b/webapp/src/components/assets/no_content_playbook_runs_svg.tsx @@ -1,5 +1,5 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import React from 'react'; diff --git a/webapp/src/components/assets/page_run_collaboration_svg.tsx b/webapp/src/components/assets/page_run_collaboration_svg.tsx index 35b8ed1544..044f42b0c0 100644 --- a/webapp/src/components/assets/page_run_collaboration_svg.tsx +++ b/webapp/src/components/assets/page_run_collaboration_svg.tsx @@ -1,5 +1,5 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/assets/upgrade_error_illustration_svg.tsx b/webapp/src/components/assets/upgrade_error_illustration_svg.tsx index 745ffa18ef..78f155f9b8 100644 --- a/webapp/src/components/assets/upgrade_error_illustration_svg.tsx +++ b/webapp/src/components/assets/upgrade_error_illustration_svg.tsx @@ -1,5 +1,5 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import React from 'react'; diff --git a/webapp/src/components/assets/upgrade_illustration_svg.tsx b/webapp/src/components/assets/upgrade_illustration_svg.tsx index 22bf4d939c..40616a5d6f 100644 --- a/webapp/src/components/assets/upgrade_illustration_svg.tsx +++ b/webapp/src/components/assets/upgrade_illustration_svg.tsx @@ -1,5 +1,5 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/assets/upgrade_success_illustration_svg.tsx b/webapp/src/components/assets/upgrade_success_illustration_svg.tsx index 34c083810c..b027877a50 100644 --- a/webapp/src/components/assets/upgrade_success_illustration_svg.tsx +++ b/webapp/src/components/assets/upgrade_success_illustration_svg.tsx @@ -1,5 +1,5 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import React from 'react'; diff --git a/webapp/src/components/backstage/archive_playbook_modal.tsx b/webapp/src/components/backstage/archive_playbook_modal.tsx index 68df51eeac..6c053261bf 100644 --- a/webapp/src/components/backstage/archive_playbook_modal.tsx +++ b/webapp/src/components/backstage/archive_playbook_modal.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useState} from 'react'; import {FormattedMessage, useIntl} from 'react-intl'; diff --git a/webapp/src/components/backstage/backstage_list_header.tsx b/webapp/src/components/backstage/backstage_list_header.tsx index 001b2e851e..0d70aba21c 100644 --- a/webapp/src/components/backstage/backstage_list_header.tsx +++ b/webapp/src/components/backstage/backstage_list_header.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import styled, {css} from 'styled-components'; const BackstageListHeader = styled.div<{$edgeless?: boolean}>` diff --git a/webapp/src/components/backstage/category_selector.tsx b/webapp/src/components/backstage/category_selector.tsx index c40a5bb7c9..7bac16a48f 100644 --- a/webapp/src/components/backstage/category_selector.tsx +++ b/webapp/src/components/backstage/category_selector.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import {SelectComponentsConfig, components as defaultComponents} from 'react-select'; import {useSelector} from 'react-redux'; diff --git a/webapp/src/components/backstage/channel_selector.tsx b/webapp/src/components/backstage/channel_selector.tsx index fc3c1b3203..07a286328b 100644 --- a/webapp/src/components/backstage/channel_selector.tsx +++ b/webapp/src/components/backstage/channel_selector.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useEffect} from 'react'; import {SelectComponentsConfig, components as defaultComponents} from 'react-select'; import {useDispatch, useSelector} from 'react-redux'; diff --git a/webapp/src/components/backstage/convert_enterprise_notice.tsx b/webapp/src/components/backstage/convert_enterprise_notice.tsx index f112daeec4..9bb1e7131a 100644 --- a/webapp/src/components/backstage/convert_enterprise_notice.tsx +++ b/webapp/src/components/backstage/convert_enterprise_notice.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import {FormattedMessage} from 'react-intl'; diff --git a/webapp/src/components/backstage/convert_private_playbook_modal.tsx b/webapp/src/components/backstage/convert_private_playbook_modal.tsx index 46f132fbcc..b9a2722aa8 100644 --- a/webapp/src/components/backstage/convert_private_playbook_modal.tsx +++ b/webapp/src/components/backstage/convert_private_playbook_modal.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useState} from 'react'; import {useIntl} from 'react-intl'; diff --git a/webapp/src/components/backstage/css_utils.tsx b/webapp/src/components/backstage/css_utils.tsx index ca26a45af5..66f2425397 100644 --- a/webapp/src/components/backstage/css_utils.tsx +++ b/webapp/src/components/backstage/css_utils.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {changeOpacity} from 'mattermost-redux/utils/theme_utils'; import cssVars from 'css-vars-ponyfill'; diff --git a/webapp/src/components/backstage/lhs_navigation.tsx b/webapp/src/components/backstage/lhs_navigation.tsx index e7fec43230..611b2c7989 100644 --- a/webapp/src/components/backstage/lhs_navigation.tsx +++ b/webapp/src/components/backstage/lhs_navigation.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {useApolloClient} from '@apollo/client'; import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/backstage/main_body.tsx b/webapp/src/components/backstage/main_body.tsx index eb67012dbb..9178d47482 100644 --- a/webapp/src/components/backstage/main_body.tsx +++ b/webapp/src/components/backstage/main_body.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import { Redirect, diff --git a/webapp/src/components/backstage/playbook_access_modal.tsx b/webapp/src/components/backstage/playbook_access_modal.tsx index 27382043a6..da42db5c92 100644 --- a/webapp/src/components/backstage/playbook_access_modal.tsx +++ b/webapp/src/components/backstage/playbook_access_modal.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {getTeam} from 'mattermost-redux/selectors/entities/teams'; import {getProfilesInTeam, searchProfiles} from 'mattermost-webapp/packages/mattermost-redux/src/actions/users'; import {GlobalState} from '@mattermost/types/store'; diff --git a/webapp/src/components/backstage/playbook_edit/automation/assign_owner_selector.tsx b/webapp/src/components/backstage/playbook_edit/automation/assign_owner_selector.tsx index 38644630f8..0a0f31fa2a 100644 --- a/webapp/src/components/backstage/playbook_edit/automation/assign_owner_selector.tsx +++ b/webapp/src/components/backstage/playbook_edit/automation/assign_owner_selector.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useEffect, useState} from 'react'; import {useSelector} from 'react-redux'; diff --git a/webapp/src/components/backstage/playbook_edit/automation/clear_indicator.tsx b/webapp/src/components/backstage/playbook_edit/automation/clear_indicator.tsx index 74dddec411..64ab41bcfa 100644 --- a/webapp/src/components/backstage/playbook_edit/automation/clear_indicator.tsx +++ b/webapp/src/components/backstage/playbook_edit/automation/clear_indicator.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import ClearIcon from 'src/components/assets/icons/clear_icon'; diff --git a/webapp/src/components/backstage/playbook_edit/automation/invite_users_selector.tsx b/webapp/src/components/backstage/playbook_edit/automation/invite_users_selector.tsx index ae2fbb9932..00c797c7fc 100644 --- a/webapp/src/components/backstage/playbook_edit/automation/invite_users_selector.tsx +++ b/webapp/src/components/backstage/playbook_edit/automation/invite_users_selector.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useEffect, useState} from 'react'; import {useSelector} from 'react-redux'; import ReactSelect, {ControlProps, GroupType, OptionsType} from 'react-select'; diff --git a/webapp/src/components/backstage/playbook_edit/automation/menu_list.tsx b/webapp/src/components/backstage/playbook_edit/automation/menu_list.tsx index ca9e3bc55c..8f2798c68e 100644 --- a/webapp/src/components/backstage/playbook_edit/automation/menu_list.tsx +++ b/webapp/src/components/backstage/playbook_edit/automation/menu_list.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useCallback} from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/backstage/playbook_editor/outline/inputs/broadcast_channels_selector.tsx b/webapp/src/components/backstage/playbook_editor/outline/inputs/broadcast_channels_selector.tsx index 213126772d..dd46e97eff 100644 --- a/webapp/src/components/backstage/playbook_editor/outline/inputs/broadcast_channels_selector.tsx +++ b/webapp/src/components/backstage/playbook_editor/outline/inputs/broadcast_channels_selector.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {ReactNode} from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/backstage/playbook_runs/playbook_run/retrospective.tsx b/webapp/src/components/backstage/playbook_runs/playbook_run/retrospective.tsx index 564265fbb6..b59403474a 100644 --- a/webapp/src/components/backstage/playbook_runs/playbook_run/retrospective.tsx +++ b/webapp/src/components/backstage/playbook_runs/playbook_run/retrospective.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useMemo, useRef, useState} from 'react'; import styled from 'styled-components'; import {useIntl} from 'react-intl'; diff --git a/webapp/src/components/backstage/profile_autocomplete.tsx b/webapp/src/components/backstage/profile_autocomplete.tsx index 2c0750be79..ecc609818b 100644 --- a/webapp/src/components/backstage/profile_autocomplete.tsx +++ b/webapp/src/components/backstage/profile_autocomplete.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useMemo} from 'react'; import {useIntl} from 'react-intl'; import {debounce} from 'debounce'; diff --git a/webapp/src/components/backstage/public_private_selector.tsx b/webapp/src/components/backstage/public_private_selector.tsx index eb34ee8fa9..458816e16f 100644 --- a/webapp/src/components/backstage/public_private_selector.tsx +++ b/webapp/src/components/backstage/public_private_selector.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import {useIntl} from 'react-intl'; diff --git a/webapp/src/components/backstage/restore_playbook_modal.tsx b/webapp/src/components/backstage/restore_playbook_modal.tsx index 54cc1fe055..e5690a0180 100644 --- a/webapp/src/components/backstage/restore_playbook_modal.tsx +++ b/webapp/src/components/backstage/restore_playbook_modal.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useRef, useState} from 'react'; import {FormattedMessage, useIntl} from 'react-intl'; diff --git a/webapp/src/components/backstage/rhs/task_inbox/task.tsx b/webapp/src/components/backstage/rhs/task_inbox/task.tsx index 5faecadb19..8c7e36336f 100644 --- a/webapp/src/components/backstage/rhs/task_inbox/task.tsx +++ b/webapp/src/components/backstage/rhs/task_inbox/task.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useState} from 'react'; import {NavLink} from 'react-router-dom'; import styled from 'styled-components'; diff --git a/webapp/src/components/backstage/rhs/task_inbox/task_inbox.tsx b/webapp/src/components/backstage/rhs/task_inbox/task_inbox.tsx index 9f8e80b47f..2185fea679 100644 --- a/webapp/src/components/backstage/rhs/task_inbox/task_inbox.tsx +++ b/webapp/src/components/backstage/rhs/task_inbox/task_inbox.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useEffect, useState} from 'react'; import {useDispatch, useSelector} from 'react-redux'; import {FormattedMessage, useIntl} from 'react-intl'; diff --git a/webapp/src/components/backstage/select_users_below.tsx b/webapp/src/components/backstage/select_users_below.tsx index e571d0c7fd..6e2527b06f 100644 --- a/webapp/src/components/backstage/select_users_below.tsx +++ b/webapp/src/components/backstage/select_users_below.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import {ActionFunc} from 'mattermost-redux/types/actions'; import {FormattedMessage} from 'react-intl'; diff --git a/webapp/src/components/backstage/start_trial_notice.tsx b/webapp/src/components/backstage/start_trial_notice.tsx index 3b0e7aff2a..8f699fbf10 100644 --- a/webapp/src/components/backstage/start_trial_notice.tsx +++ b/webapp/src/components/backstage/start_trial_notice.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import {FormattedMessage} from 'react-intl'; import styled from 'styled-components'; diff --git a/webapp/src/components/backstage/status_badge.tsx b/webapp/src/components/backstage/status_badge.tsx index 2e0dedc8e3..2a81393fdb 100644 --- a/webapp/src/components/backstage/status_badge.tsx +++ b/webapp/src/components/backstage/status_badge.tsx @@ -1,5 +1,6 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. + import React from 'react'; import styled, {css} from 'styled-components'; diff --git a/webapp/src/components/backstage/toast.tsx b/webapp/src/components/backstage/toast.tsx index a3f4955e6d..0fa3cd39e2 100644 --- a/webapp/src/components/backstage/toast.tsx +++ b/webapp/src/components/backstage/toast.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/backstage/toast_banner.tsx b/webapp/src/components/backstage/toast_banner.tsx index c0f7e704d9..8fed165f48 100644 --- a/webapp/src/components/backstage/toast_banner.tsx +++ b/webapp/src/components/backstage/toast_banner.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useState} from 'react'; import styled from 'styled-components'; import {CSSTransition, TransitionGroup} from 'react-transition-group'; diff --git a/webapp/src/components/backstage/upgrade_modal.tsx b/webapp/src/components/backstage/upgrade_modal.tsx index 60ec9ef631..5cbab8eb96 100644 --- a/webapp/src/components/backstage/upgrade_modal.tsx +++ b/webapp/src/components/backstage/upgrade_modal.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useState} from 'react'; import {useSelector} from 'react-redux'; diff --git a/webapp/src/components/backstage/upgrade_modal_data.tsx b/webapp/src/components/backstage/upgrade_modal_data.tsx index 45ae7b15cf..0468ee31b2 100644 --- a/webapp/src/components/backstage/upgrade_modal_data.tsx +++ b/webapp/src/components/backstage/upgrade_modal_data.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import {DateTime} from 'luxon'; diff --git a/webapp/src/components/backstage/upgrade_modal_footer.tsx b/webapp/src/components/backstage/upgrade_modal_footer.tsx index f830602144..3618add666 100644 --- a/webapp/src/components/backstage/upgrade_modal_footer.tsx +++ b/webapp/src/components/backstage/upgrade_modal_footer.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/backstage/upgrade_modal_header.tsx b/webapp/src/components/backstage/upgrade_modal_header.tsx index b25bceb6a3..0372e84471 100644 --- a/webapp/src/components/backstage/upgrade_modal_header.tsx +++ b/webapp/src/components/backstage/upgrade_modal_header.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/backstage/upgrade_modal_illustration.tsx b/webapp/src/components/backstage/upgrade_modal_illustration.tsx index bd46bdae8d..7af1a3a491 100644 --- a/webapp/src/components/backstage/upgrade_modal_illustration.tsx +++ b/webapp/src/components/backstage/upgrade_modal_illustration.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/channel_header.tsx b/webapp/src/components/channel_header.tsx index 98779f1a17..49f34008cf 100644 --- a/webapp/src/components/channel_header.tsx +++ b/webapp/src/components/channel_header.tsx @@ -1,5 +1,5 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License for license information. +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import React, {ElementRef, useRef} from 'react'; import {FormattedMessage} from 'react-intl'; diff --git a/webapp/src/components/checklist_item/assign_to.tsx b/webapp/src/components/checklist_item/assign_to.tsx index f2843b76e6..061b973e2c 100644 --- a/webapp/src/components/checklist_item/assign_to.tsx +++ b/webapp/src/components/checklist_item/assign_to.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useState} from 'react'; import styled, {css} from 'styled-components'; import {FormattedMessage, useIntl} from 'react-intl'; diff --git a/webapp/src/components/checklist_item/command.tsx b/webapp/src/components/checklist_item/command.tsx index 248619dda4..47246ceb85 100644 --- a/webapp/src/components/checklist_item/command.tsx +++ b/webapp/src/components/checklist_item/command.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useRef, useState} from 'react'; import {useIntl} from 'react-intl'; import {useDispatch} from 'react-redux'; diff --git a/webapp/src/components/checklist_item/duedate.tsx b/webapp/src/components/checklist_item/duedate.tsx index 1b21573073..005acf86ea 100644 --- a/webapp/src/components/checklist_item/duedate.tsx +++ b/webapp/src/components/checklist_item/duedate.tsx @@ -1,4 +1,3 @@ - // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. diff --git a/webapp/src/components/checklist_item/hover_menu.tsx b/webapp/src/components/checklist_item/hover_menu.tsx index aa9d4499a5..48314e5d0b 100644 --- a/webapp/src/components/checklist_item/hover_menu.tsx +++ b/webapp/src/components/checklist_item/hover_menu.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import styled from 'styled-components'; import {useIntl} from 'react-intl'; diff --git a/webapp/src/components/checklist_item/inputs.tsx b/webapp/src/components/checklist_item/inputs.tsx index 3935bd5ee3..4ce8b8b22c 100644 --- a/webapp/src/components/checklist_item/inputs.tsx +++ b/webapp/src/components/checklist_item/inputs.tsx @@ -1,3 +1,5 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import React, {useRef, useState} from 'react'; import {useUpdateEffect} from 'react-use'; diff --git a/webapp/src/components/checklist_item/task_actions.tsx b/webapp/src/components/checklist_item/task_actions.tsx index 3ecf97815e..c4478e5c77 100644 --- a/webapp/src/components/checklist_item/task_actions.tsx +++ b/webapp/src/components/checklist_item/task_actions.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import {FormattedMessage, useIntl} from 'react-intl'; import {useDispatch} from 'react-redux'; diff --git a/webapp/src/components/checklist_item/task_actions_modal.tsx b/webapp/src/components/checklist_item/task_actions_modal.tsx index df3ce66a02..05b8acfa1b 100644 --- a/webapp/src/components/checklist_item/task_actions_modal.tsx +++ b/webapp/src/components/checklist_item/task_actions_modal.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {ComponentProps, useState} from 'react'; import {useIntl} from 'react-intl'; import {useDispatch, useSelector} from 'react-redux'; diff --git a/webapp/src/components/cloud_upgrade_post.tsx b/webapp/src/components/cloud_upgrade_post.tsx index 78adaca467..018d86ecb0 100644 --- a/webapp/src/components/cloud_upgrade_post.tsx +++ b/webapp/src/components/cloud_upgrade_post.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import {useSelector} from 'react-redux'; diff --git a/webapp/src/components/command_input.tsx b/webapp/src/components/command_input.tsx index 3f1a74a885..734822ec7e 100644 --- a/webapp/src/components/command_input.tsx +++ b/webapp/src/components/command_input.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useRef, useState} from 'react'; import {useIntl} from 'react-intl'; diff --git a/webapp/src/components/create_playbook_modal.tsx b/webapp/src/components/create_playbook_modal.tsx index f63fce1fb4..7b2a001fe6 100644 --- a/webapp/src/components/create_playbook_modal.tsx +++ b/webapp/src/components/create_playbook_modal.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {ComponentProps, useState} from 'react'; import {useIntl} from 'react-intl'; diff --git a/webapp/src/components/custom_post_styles.tsx b/webapp/src/components/custom_post_styles.tsx index cb9316c1d6..a70ec1c80d 100644 --- a/webapp/src/components/custom_post_styles.tsx +++ b/webapp/src/components/custom_post_styles.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import styled from 'styled-components'; export const CustomPostContainer = styled.div` diff --git a/webapp/src/components/datetime_parsing.test.ts b/webapp/src/components/datetime_parsing.test.ts index 5917e15877..3e7c3afbee 100644 --- a/webapp/src/components/datetime_parsing.test.ts +++ b/webapp/src/components/datetime_parsing.test.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {Duration, DurationObjectUnits, Settings} from 'luxon'; import range from 'lodash/range'; diff --git a/webapp/src/components/error_page.tsx b/webapp/src/components/error_page.tsx index 1428e3e6ef..7ec8ab3707 100644 --- a/webapp/src/components/error_page.tsx +++ b/webapp/src/components/error_page.tsx @@ -1,4 +1,3 @@ - // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. diff --git a/webapp/src/components/formatted_duration.test.tsx b/webapp/src/components/formatted_duration.test.tsx index ef0d757932..ec41816cb3 100644 --- a/webapp/src/components/formatted_duration.test.tsx +++ b/webapp/src/components/formatted_duration.test.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {DateTime, Duration, DurationObjectUnits} from 'luxon'; import React from 'react'; diff --git a/webapp/src/components/login_hook.tsx b/webapp/src/components/login_hook.tsx index 475bece030..3dece77012 100644 --- a/webapp/src/components/login_hook.tsx +++ b/webapp/src/components/login_hook.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {useEffect} from 'react'; import {useDispatch, useSelector} from 'react-redux'; import {GlobalState} from '@mattermost/types/store'; diff --git a/webapp/src/components/markdown_edit.tsx b/webapp/src/components/markdown_edit.tsx index c7e7de04dc..b8d38875ca 100644 --- a/webapp/src/components/markdown_edit.tsx +++ b/webapp/src/components/markdown_edit.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useState} from 'react'; import styled, {css} from 'styled-components'; import {useIntl} from 'react-intl'; diff --git a/webapp/src/components/modals/run_playbook_modal.tsx b/webapp/src/components/modals/run_playbook_modal.tsx index 33b61e587d..1b790a3084 100644 --- a/webapp/src/components/modals/run_playbook_modal.tsx +++ b/webapp/src/components/modals/run_playbook_modal.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {ComponentProps, useEffect, useState} from 'react'; import {FormattedMessage, useIntl} from 'react-intl'; diff --git a/webapp/src/components/playbooks_selector.tsx b/webapp/src/components/playbooks_selector.tsx index e11eb0f01f..82e281fbd9 100644 --- a/webapp/src/components/playbooks_selector.tsx +++ b/webapp/src/components/playbooks_selector.tsx @@ -1,4 +1,3 @@ - // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. diff --git a/webapp/src/components/retrospective_post.tsx b/webapp/src/components/retrospective_post.tsx index 9b9f1710fe..35af562806 100644 --- a/webapp/src/components/retrospective_post.tsx +++ b/webapp/src/components/retrospective_post.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/retrospective_reminder_posts.tsx b/webapp/src/components/retrospective_reminder_posts.tsx index f9c7f5fc5a..c0ae9585bc 100644 --- a/webapp/src/components/retrospective_reminder_posts.tsx +++ b/webapp/src/components/retrospective_reminder_posts.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import {FormattedMessage, useIntl} from 'react-intl'; import {useSelector} from 'react-redux'; diff --git a/webapp/src/components/rhs/rhs_run_participants_title.tsx b/webapp/src/components/rhs/rhs_run_participants_title.tsx index 046cbf9f31..487304e610 100644 --- a/webapp/src/components/rhs/rhs_run_participants_title.tsx +++ b/webapp/src/components/rhs/rhs_run_participants_title.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import {OverlayTrigger, Tooltip} from 'react-bootstrap'; import {useIntl} from 'react-intl'; diff --git a/webapp/src/components/rhs/rhs_title_common.tsx b/webapp/src/components/rhs/rhs_title_common.tsx index 178390c20c..bd60e9c480 100644 --- a/webapp/src/components/rhs/rhs_title_common.tsx +++ b/webapp/src/components/rhs/rhs_title_common.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {Link} from 'react-router-dom'; import styled from 'styled-components'; diff --git a/webapp/src/components/sidebar/create_playbook_dropdown.tsx b/webapp/src/components/sidebar/create_playbook_dropdown.tsx index 261626c627..2e9208b4cb 100644 --- a/webapp/src/components/sidebar/create_playbook_dropdown.tsx +++ b/webapp/src/components/sidebar/create_playbook_dropdown.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import styled from 'styled-components'; import {useDispatch, useSelector} from 'react-redux'; diff --git a/webapp/src/components/sidebar/group.tsx b/webapp/src/components/sidebar/group.tsx index fb85fff757..c766241583 100644 --- a/webapp/src/components/sidebar/group.tsx +++ b/webapp/src/components/sidebar/group.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useState} from 'react'; import styled, {css} from 'styled-components'; diff --git a/webapp/src/components/sidebar/item.tsx b/webapp/src/components/sidebar/item.tsx index 68fc831221..3f80351f7c 100644 --- a/webapp/src/components/sidebar/item.tsx +++ b/webapp/src/components/sidebar/item.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import {NavLink} from 'react-router-dom'; import classNames from 'classnames'; diff --git a/webapp/src/components/sidebar/playbooks_sidebar.tsx b/webapp/src/components/sidebar/playbooks_sidebar.tsx index 76d4609aaf..513b98ad31 100644 --- a/webapp/src/components/sidebar/playbooks_sidebar.tsx +++ b/webapp/src/components/sidebar/playbooks_sidebar.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useEffect} from 'react'; import styled from 'styled-components'; import {useSelector} from 'react-redux'; diff --git a/webapp/src/components/sidebar/sidebar.tsx b/webapp/src/components/sidebar/sidebar.tsx index 852652049b..a63303ab72 100644 --- a/webapp/src/components/sidebar/sidebar.tsx +++ b/webapp/src/components/sidebar/sidebar.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {ReactNode} from 'react'; import styled from 'styled-components'; import {getTeam} from 'mattermost-redux/selectors/entities/teams'; diff --git a/webapp/src/components/templates/template_data.test.ts b/webapp/src/components/templates/template_data.test.ts index d93019629f..37d0f49e7f 100644 --- a/webapp/src/components/templates/template_data.test.ts +++ b/webapp/src/components/templates/template_data.test.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import TemplateData from './template_data'; describe('TemplateData', () => { diff --git a/webapp/src/components/text_edit.tsx b/webapp/src/components/text_edit.tsx index 6b06b3bda5..79f19b3434 100644 --- a/webapp/src/components/text_edit.tsx +++ b/webapp/src/components/text_edit.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useState} from 'react'; import styled, {css} from 'styled-components'; import {useIntl} from 'react-intl'; diff --git a/webapp/src/components/time_spec.tsx b/webapp/src/components/time_spec.tsx index 8d36fcb14b..daf5918d24 100644 --- a/webapp/src/components/time_spec.tsx +++ b/webapp/src/components/time_spec.tsx @@ -1,3 +1,5 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import React from 'react'; diff --git a/webapp/src/components/tutorial/tutorial_tour_tip/backdrop.tsx b/webapp/src/components/tutorial/tutorial_tour_tip/backdrop.tsx index 898a24eb2e..4097919fc8 100644 --- a/webapp/src/components/tutorial/tutorial_tour_tip/backdrop.tsx +++ b/webapp/src/components/tutorial/tutorial_tour_tip/backdrop.tsx @@ -1,5 +1,6 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. + import React from 'react'; export type Coords = { diff --git a/webapp/src/components/tutorial/tutorial_tour_tip/dot.tsx b/webapp/src/components/tutorial/tutorial_tour_tip/dot.tsx index 0bd7a09bdc..3fa3df6598 100644 --- a/webapp/src/components/tutorial/tutorial_tour_tip/dot.tsx +++ b/webapp/src/components/tutorial/tutorial_tour_tip/dot.tsx @@ -1,5 +1,6 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. + import React from 'react'; import {Coords} from 'src/components/tutorial/tutorial_tour_tip/backdrop'; diff --git a/webapp/src/components/tutorial/tutorial_tour_tip/hooks.ts b/webapp/src/components/tutorial/tutorial_tour_tip/hooks.ts index e2b5834009..dc5e16a79d 100644 --- a/webapp/src/components/tutorial/tutorial_tour_tip/hooks.ts +++ b/webapp/src/components/tutorial/tutorial_tour_tip/hooks.ts @@ -1,5 +1,6 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. + import { useEffect, useLayoutEffect, diff --git a/webapp/src/components/update_post.tsx b/webapp/src/components/update_post.tsx index d42462c3ec..d43ebdf292 100644 --- a/webapp/src/components/update_post.tsx +++ b/webapp/src/components/update_post.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import {useIntl} from 'react-intl'; import {useSelector} from 'react-redux'; diff --git a/webapp/src/components/widgets/menu/menu.tsx b/webapp/src/components/widgets/menu/menu.tsx index f487fa5735..90b09c40ef 100644 --- a/webapp/src/components/widgets/menu/menu.tsx +++ b/webapp/src/components/widgets/menu/menu.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, {useRef} from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/widgets/menu/menu_group.tsx b/webapp/src/components/widgets/menu/menu_group.tsx index f91395148c..91258717fa 100644 --- a/webapp/src/components/widgets/menu/menu_group.tsx +++ b/webapp/src/components/widgets/menu/menu_group.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/widgets/menu/menu_item.tsx b/webapp/src/components/widgets/menu/menu_item.tsx index 11a2501371..a3f7582143 100644 --- a/webapp/src/components/widgets/menu/menu_item.tsx +++ b/webapp/src/components/widgets/menu/menu_item.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React from 'react'; import styled from 'styled-components'; diff --git a/webapp/src/components/widgets/menu/menu_wrapper.tsx b/webapp/src/components/widgets/menu/menu_wrapper.tsx index bffd28c3d9..6dff03d093 100644 --- a/webapp/src/components/widgets/menu/menu_wrapper.tsx +++ b/webapp/src/components/widgets/menu/menu_wrapper.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, { useCallback, useEffect, diff --git a/webapp/src/components/widgets/text_with_tooltip.tsx b/webapp/src/components/widgets/text_with_tooltip.tsx index a9ca03109d..1e3ec03a8c 100644 --- a/webapp/src/components/widgets/text_with_tooltip.tsx +++ b/webapp/src/components/widgets/text_with_tooltip.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import React, { ComponentProps, useCallback, diff --git a/webapp/src/components/widgets/unsaved_changes_modal.tsx b/webapp/src/components/widgets/unsaved_changes_modal.tsx index 9f83a9964f..8fc9b3ac80 100644 --- a/webapp/src/components/widgets/unsaved_changes_modal.tsx +++ b/webapp/src/components/widgets/unsaved_changes_modal.tsx @@ -1,5 +1,6 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. + import React from 'react'; import {useIntl} from 'react-intl'; diff --git a/webapp/src/graphql/hooks.ts b/webapp/src/graphql/hooks.ts index aa7ac46866..45f081939a 100644 --- a/webapp/src/graphql/hooks.ts +++ b/webapp/src/graphql/hooks.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {useCallback} from 'react'; import {QueryResult, useMutation, useQuery} from '@apollo/client'; diff --git a/webapp/src/graphql_client.ts b/webapp/src/graphql_client.ts index f448d045b1..035ea72176 100644 --- a/webapp/src/graphql_client.ts +++ b/webapp/src/graphql_client.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {ApolloClient, NormalizedCacheObject} from '@apollo/client'; // Global for use in gloablly mounted modals that won't work with react context. diff --git a/webapp/src/hooks/crud.ts b/webapp/src/hooks/crud.ts index 08f612dfbb..3bf2ffc4eb 100644 --- a/webapp/src/hooks/crud.ts +++ b/webapp/src/hooks/crud.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {useEffect, useMemo, useState} from 'react'; import debounce from 'debounce'; import {useIntl} from 'react-intl'; diff --git a/webapp/src/hooks/general.test.ts b/webapp/src/hooks/general.test.ts index 313dc7e61f..0ebb7aeb60 100644 --- a/webapp/src/hooks/general.test.ts +++ b/webapp/src/hooks/general.test.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {renderHook} from '@testing-library/react-hooks'; import * as redux from 'react-redux'; import {getProfilesByIds, getProfilesInTeam} from 'mattermost-redux/actions/users'; diff --git a/webapp/src/hooks/general.ts b/webapp/src/hooks/general.ts index 281b1eb619..ffb9555dd5 100644 --- a/webapp/src/hooks/general.ts +++ b/webapp/src/hooks/general.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import { DependencyList, MutableRefObject, diff --git a/webapp/src/hooks/index.ts b/webapp/src/hooks/index.ts index a2d964b5e5..85d9344aad 100644 --- a/webapp/src/hooks/index.ts +++ b/webapp/src/hooks/index.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + export * from './general'; export * from './crud'; export * from './routing'; diff --git a/webapp/src/hooks/license.ts b/webapp/src/hooks/license.ts index a8083fd5d9..c31db11f83 100644 --- a/webapp/src/hooks/license.ts +++ b/webapp/src/hooks/license.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {useSelector} from 'react-redux'; import {isE10LicensedOrDevelopment, isE20LicensedOrDevelopment} from 'src/license'; diff --git a/webapp/src/hooks/permissions.ts b/webapp/src/hooks/permissions.ts index 4db018ef90..2a62e08e42 100644 --- a/webapp/src/hooks/permissions.ts +++ b/webapp/src/hooks/permissions.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import { getRoles, haveIChannelPermission, diff --git a/webapp/src/hooks/routing.ts b/webapp/src/hooks/routing.ts index cd9f934b4a..8864496309 100644 --- a/webapp/src/hooks/routing.ts +++ b/webapp/src/hooks/routing.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {useEffect, useMemo} from 'react'; import {useSelector} from 'react-redux'; diff --git a/webapp/src/hooks/telemetry.ts b/webapp/src/hooks/telemetry.ts index 772e5abc25..085c073cba 100644 --- a/webapp/src/hooks/telemetry.ts +++ b/webapp/src/hooks/telemetry.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {useEffect} from 'react'; import {telemetryEventForPlaybook, telemetryEventForPlaybookRun, telemetryView} from 'src/client'; diff --git a/webapp/src/license.test.ts b/webapp/src/license.test.ts index b8cf5a51be..ccc35411b6 100644 --- a/webapp/src/license.test.ts +++ b/webapp/src/license.test.ts @@ -1,3 +1,5 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. import {checkE10Licensed, checkE20Licensed} from 'src/license'; diff --git a/webapp/src/license.ts b/webapp/src/license.ts index 52503a8ffb..20423d0817 100644 --- a/webapp/src/license.ts +++ b/webapp/src/license.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {GlobalState} from '@mattermost/types/store'; import {getConfig, getLicense} from 'mattermost-redux/selectors/entities/general'; diff --git a/webapp/src/manifest.test.tsx b/webapp/src/manifest.test.tsx index d71f2d41e1..77beea68f8 100644 --- a/webapp/src/manifest.test.tsx +++ b/webapp/src/manifest.test.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import manifest from './manifest'; test('Plugin manifest, id and version are defined', () => { diff --git a/webapp/src/mobile.ts b/webapp/src/mobile.ts index e0e20e6675..fb2a27589d 100644 --- a/webapp/src/mobile.ts +++ b/webapp/src/mobile.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + const MOBILE_SCREEN_WIDTH = 768; export const isMobile = () => { diff --git a/webapp/src/reducer.test.ts b/webapp/src/reducer.test.ts index 1cb337b4ae..c4b7990f00 100644 --- a/webapp/src/reducer.test.ts +++ b/webapp/src/reducer.test.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {REMOVED_FROM_CHANNEL} from 'src/types/actions'; import reducer from 'src/reducer'; diff --git a/webapp/src/slash_command.test.ts b/webapp/src/slash_command.test.ts index 020228f161..a00aa860e3 100644 --- a/webapp/src/slash_command.test.ts +++ b/webapp/src/slash_command.test.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {GlobalState} from '@mattermost/types/store'; import configureStore, {MockStoreEnhanced} from 'redux-mock-store'; import {DispatchFunc} from 'mattermost-redux/types/actions'; diff --git a/webapp/src/styles/headings.tsx b/webapp/src/styles/headings.tsx index 52b943bdb6..2680b8d3be 100644 --- a/webapp/src/styles/headings.tsx +++ b/webapp/src/styles/headings.tsx @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {css} from 'styled-components'; export const RegularHeading = css` diff --git a/webapp/src/types/backstage_rhs.ts b/webapp/src/types/backstage_rhs.ts index 8693c09195..e39e8dd7c4 100644 --- a/webapp/src/types/backstage_rhs.ts +++ b/webapp/src/types/backstage_rhs.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + export enum BackstageRHSSection { TaskInbox = 'task-inbox', } diff --git a/webapp/src/types/insights.ts b/webapp/src/types/insights.ts index b22f5d6d57..1ebfdee614 100644 --- a/webapp/src/types/insights.ts +++ b/webapp/src/types/insights.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + export interface Insights { playbook_id: string; num_runs: number; diff --git a/webapp/src/types/js-trim-multiline-string.d.ts b/webapp/src/types/js-trim-multiline-string.d.ts index eeceeeabbd..a0e2590e74 100644 --- a/webapp/src/types/js-trim-multiline-string.d.ts +++ b/webapp/src/types/js-trim-multiline-string.d.ts @@ -1 +1,4 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + declare module 'js-trim-multiline-string'; diff --git a/webapp/src/types/permissions.ts b/webapp/src/types/permissions.ts index 3f0fbe2b46..fc474ceb8e 100644 --- a/webapp/src/types/permissions.ts +++ b/webapp/src/types/permissions.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + export enum PlaybookRole { Member = 'playbook_member', Admin = 'playbook_admin', diff --git a/webapp/src/types/type_utils.d.ts b/webapp/src/types/type_utils.d.ts index 51cc6c6d85..ba0eb1a193 100644 --- a/webapp/src/types/type_utils.d.ts +++ b/webapp/src/types/type_utils.d.ts @@ -1,3 +1,5 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. declare type Maybe = T | undefined | null; diff --git a/webapp/src/utils.test.ts b/webapp/src/utils.test.ts index 6a57b8875d..91c034da57 100644 --- a/webapp/src/utils.test.ts +++ b/webapp/src/utils.test.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {uniqueId} from './utils'; describe('utils', () => { diff --git a/webapp/src/utils.ts b/webapp/src/utils.ts index d50e06c4e8..cb21b83d40 100644 --- a/webapp/src/utils.ts +++ b/webapp/src/utils.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {useState} from 'react'; import {PlaybookRun, RunMetricData} from 'src/types/playbook_run'; diff --git a/webapp/src/websocket_events.test.ts b/webapp/src/websocket_events.test.ts index 0c6bc24839..192c81284e 100644 --- a/webapp/src/websocket_events.test.ts +++ b/webapp/src/websocket_events.test.ts @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + import {GlobalState} from '@mattermost/types/store'; import configureStore, {MockStoreEnhanced} from 'redux-mock-store'; import {DispatchFunc} from 'mattermost-redux/types/actions'; diff --git a/webapp/webpack.config.js b/webapp/webpack.config.js index 4d5bde59e5..28d541da58 100644 --- a/webapp/webpack.config.js +++ b/webapp/webpack.config.js @@ -1,3 +1,6 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + const exec = require('child_process').exec; const path = require('path');