aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/attachment.go3
-rw-r--r--modules/setting/cache.go3
-rw-r--r--modules/setting/cors.go3
-rw-r--r--modules/setting/cron.go3
-rw-r--r--modules/setting/cron_test.go3
-rw-r--r--modules/setting/database.go3
-rw-r--r--modules/setting/database_sqlite.go3
-rw-r--r--modules/setting/database_test.go3
-rw-r--r--modules/setting/directory.go3
-rw-r--r--modules/setting/federation.go3
-rw-r--r--modules/setting/git.go3
-rw-r--r--modules/setting/i18n.go3
-rw-r--r--modules/setting/indexer.go3
-rw-r--r--modules/setting/indexer_test.go3
-rw-r--r--modules/setting/lfs.go3
-rw-r--r--modules/setting/log.go3
-rw-r--r--modules/setting/mailer.go3
-rw-r--r--modules/setting/markup.go3
-rw-r--r--modules/setting/migrations.go3
-rw-r--r--modules/setting/mime_type_map.go3
-rw-r--r--modules/setting/mirror.go3
-rw-r--r--modules/setting/oauth2_client.go3
-rw-r--r--modules/setting/packages.go3
-rw-r--r--modules/setting/packages_test.go3
-rw-r--r--modules/setting/picture.go3
-rw-r--r--modules/setting/project.go3
-rw-r--r--modules/setting/proxy.go3
-rw-r--r--modules/setting/queue.go3
-rw-r--r--modules/setting/repository.go3
-rw-r--r--modules/setting/service.go3
-rw-r--r--modules/setting/session.go3
-rw-r--r--modules/setting/setting.go3
-rw-r--r--modules/setting/setting_test.go3
-rw-r--r--modules/setting/storage.go3
-rw-r--r--modules/setting/storage_test.go3
-rw-r--r--modules/setting/task.go3
-rw-r--r--modules/setting/webhook.go3
37 files changed, 37 insertions, 74 deletions
diff --git a/modules/setting/attachment.go b/modules/setting/attachment.go
index 474b73293c..68a2e87204 100644
--- a/modules/setting/attachment.go
+++ b/modules/setting/attachment.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/cache.go b/modules/setting/cache.go
index 9a44965124..2da79adb3b 100644
--- a/modules/setting/cache.go
+++ b/modules/setting/cache.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/cors.go b/modules/setting/cors.go
index 74ec6618a5..ae0736e830 100644
--- a/modules/setting/cors.go
+++ b/modules/setting/cors.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/cron.go b/modules/setting/cron.go
index 9475887ecc..a76de2797f 100644
--- a/modules/setting/cron.go
+++ b/modules/setting/cron.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/cron_test.go b/modules/setting/cron_test.go
index cb397d81c4..29cdca8fbf 100644
--- a/modules/setting/cron_test.go
+++ b/modules/setting/cron_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/database.go b/modules/setting/database.go
index 4e55457395..be06c47478 100644
--- a/modules/setting/database.go
+++ b/modules/setting/database.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/database_sqlite.go b/modules/setting/database_sqlite.go
index 1f18868d8e..c1037cfb27 100644
--- a/modules/setting/database_sqlite.go
+++ b/modules/setting/database_sqlite.go
@@ -1,8 +1,7 @@
//go:build sqlite
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/database_test.go b/modules/setting/database_test.go
index a90be2a687..481ca969b1 100644
--- a/modules/setting/database_test.go
+++ b/modules/setting/database_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/directory.go b/modules/setting/directory.go
index 2641510286..a80df47ab4 100644
--- a/modules/setting/directory.go
+++ b/modules/setting/directory.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/federation.go b/modules/setting/federation.go
index 583d9a6e2b..acab3eb580 100644
--- a/modules/setting/federation.go
+++ b/modules/setting/federation.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/git.go b/modules/setting/git.go
index 266bbc3c5a..a05f77a97e 100644
--- a/modules/setting/git.go
+++ b/modules/setting/git.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/i18n.go b/modules/setting/i18n.go
index 8b8587e09b..0e67b18a3e 100644
--- a/modules/setting/i18n.go
+++ b/modules/setting/i18n.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/indexer.go b/modules/setting/indexer.go
index 46d4027d14..1b1c8f7e7f 100644
--- a/modules/setting/indexer.go
+++ b/modules/setting/indexer.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/indexer_test.go b/modules/setting/indexer_test.go
index 0ff1d814ab..8f0437be8a 100644
--- a/modules/setting/indexer_test.go
+++ b/modules/setting/indexer_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/lfs.go b/modules/setting/lfs.go
index 686b043657..6f8e875c1d 100644
--- a/modules/setting/lfs.go
+++ b/modules/setting/lfs.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/log.go b/modules/setting/log.go
index 1d9535360a..7372fc998d 100644
--- a/modules/setting/log.go
+++ b/modules/setting/log.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/mailer.go b/modules/setting/mailer.go
index 5a9b7054b9..7324328ee3 100644
--- a/modules/setting/mailer.go
+++ b/modules/setting/mailer.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/markup.go b/modules/setting/markup.go
index fd41bdd7cc..c262234b6a 100644
--- a/modules/setting/markup.go
+++ b/modules/setting/markup.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/migrations.go b/modules/setting/migrations.go
index 4b10f3dc6e..2f6d08b6b8 100644
--- a/modules/setting/migrations.go
+++ b/modules/setting/migrations.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/mime_type_map.go b/modules/setting/mime_type_map.go
index 8e5b864e24..6a0847bd7e 100644
--- a/modules/setting/mime_type_map.go
+++ b/modules/setting/mime_type_map.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/mirror.go b/modules/setting/mirror.go
index 2bd0322d06..9ddce97daf 100644
--- a/modules/setting/mirror.go
+++ b/modules/setting/mirror.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/oauth2_client.go b/modules/setting/oauth2_client.go
index 6cfd99156f..6492af82d2 100644
--- a/modules/setting/oauth2_client.go
+++ b/modules/setting/oauth2_client.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/packages.go b/modules/setting/packages.go
index 62201032c7..120fbb5bda 100644
--- a/modules/setting/packages.go
+++ b/modules/setting/packages.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/packages_test.go b/modules/setting/packages_test.go
index 059273dce4..04d6e55834 100644
--- a/modules/setting/packages_test.go
+++ b/modules/setting/packages_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/picture.go b/modules/setting/picture.go
index af9041ade3..9d16a2360b 100644
--- a/modules/setting/picture.go
+++ b/modules/setting/picture.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/project.go b/modules/setting/project.go
index 56505b0ca4..53e09e8dad 100644
--- a/modules/setting/project.go
+++ b/modules/setting/project.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/proxy.go b/modules/setting/proxy.go
index 53fb0066d9..fed33395ed 100644
--- a/modules/setting/proxy.go
+++ b/modules/setting/proxy.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/queue.go b/modules/setting/queue.go
index d3bb33b248..a67d0d849a 100644
--- a/modules/setting/queue.go
+++ b/modules/setting/queue.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/repository.go b/modules/setting/repository.go
index d0406dbf90..19594369be 100644
--- a/modules/setting/repository.go
+++ b/modules/setting/repository.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/service.go b/modules/setting/service.go
index d2eb6ebcd7..7b4bfc5c7b 100644
--- a/modules/setting/service.go
+++ b/modules/setting/service.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/session.go b/modules/setting/session.go
index 62ca1d82e8..082538c385 100644
--- a/modules/setting/session.go
+++ b/modules/setting/session.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index df7310b09b..68892a2198 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/setting_test.go b/modules/setting/setting_test.go
index 0e7f5a55ab..f77ee65974 100644
--- a/modules/setting/setting_test.go
+++ b/modules/setting/setting_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/storage.go b/modules/setting/storage.go
index 075152db59..32f74aa072 100644
--- a/modules/setting/storage.go
+++ b/modules/setting/storage.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/storage_test.go b/modules/setting/storage_test.go
index ffd8b7aa01..256bbb7a52 100644
--- a/modules/setting/storage_test.go
+++ b/modules/setting/storage_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/task.go b/modules/setting/task.go
index c39d441108..cfb0f54668 100644
--- a/modules/setting/task.go
+++ b/modules/setting/task.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/webhook.go b/modules/setting/webhook.go
index 0bfd7dcb4d..51e36c3419 100644
--- a/modules/setting/webhook.go
+++ b/modules/setting/webhook.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting