diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dbe418c3563..69363c415ef 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -440,8 +440,8 @@ Code that you contribute should use the standard copyright header: ``` // 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 + ``` Files in the repository contain copyright from the year they are added diff --git a/build.go b/build.go index d379745c6df..d2e724a7f70 100644 --- a/build.go +++ b/build.go @@ -1,6 +1,6 @@ // 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 + //go:build vendor diff --git a/build/code-batch-process.go b/build/code-batch-process.go index b6c4171ede7..9cc47442b22 100644 --- a/build/code-batch-process.go +++ b/build/code-batch-process.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 //go:build ignore diff --git a/build/codeformat/formatimports.go b/build/codeformat/formatimports.go index 1076e3a0d1c..c9fc2a27b4a 100644 --- a/build/codeformat/formatimports.go +++ b/build/codeformat/formatimports.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 codeformat diff --git a/build/codeformat/formatimports_test.go b/build/codeformat/formatimports_test.go index 3db90cad7b6..c66181d3513 100644 --- a/build/codeformat/formatimports_test.go +++ b/build/codeformat/formatimports_test.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 codeformat diff --git a/build/generate-bindata.go b/build/generate-bindata.go index ab81dd89382..ecd5d5047c8 100644 --- a/build/generate-bindata.go +++ b/build/generate-bindata.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 //go:build ignore diff --git a/build/generate-emoji.go b/build/generate-emoji.go index 4ad6649b2ee..35c23aaf9e4 100644 --- a/build/generate-emoji.go +++ b/build/generate-emoji.go @@ -1,7 +1,6 @@ // Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2015 Kenneth Shaw -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT //go:build ignore @@ -209,8 +208,8 @@ func generate() ([]byte, error) { const hdr = ` // 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 emoji diff --git a/build/generate-go-licenses.go b/build/generate-go-licenses.go index 87c773ed8b0..ec8fc82a71d 100644 --- a/build/generate-go-licenses.go +++ b/build/generate-go-licenses.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 //go:build ignore diff --git a/build/gocovmerge.go b/build/gocovmerge.go index dfe70efdad4..c6f74ed85cd 100644 --- a/build/gocovmerge.go +++ b/build/gocovmerge.go @@ -1,7 +1,6 @@ // Copyright 2020 The Gitea Authors. All rights reserved. // Copyright (c) 2015, Wade Simmons -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT // gocovmerge takes the results from multiple `go test -coverprofile` runs and // merges them into one profile diff --git a/cmd/admin.go b/cmd/admin.go index 80b5d4853c0..a47d9ca1095 100644 --- a/cmd/admin.go +++ b/cmd/admin.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2016 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 cmd diff --git a/cmd/admin_auth_ldap.go b/cmd/admin_auth_ldap.go index 9040def822e..91276f221ff 100644 --- a/cmd/admin_auth_ldap.go +++ b/cmd/admin_auth_ldap.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 cmd diff --git a/cmd/admin_auth_ldap_test.go b/cmd/admin_auth_ldap_test.go index 2180b24be58..65f53aaf4e9 100644 --- a/cmd/admin_auth_ldap_test.go +++ b/cmd/admin_auth_ldap_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 cmd diff --git a/cmd/cert.go b/cmd/cert.go index 162c4171bfb..816659023ca 100644 --- a/cmd/cert.go +++ b/cmd/cert.go @@ -1,8 +1,7 @@ // Copyright 2009 The Go Authors. All rights reserved. // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2016 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 cmd diff --git a/cmd/cmd.go b/cmd/cmd.go index f20a9363257..493519e1359 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -1,6 +1,5 @@ // Copyright 2018 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 cmd provides subcommands to the gitea binary - such as "web" or // "admin". diff --git a/cmd/convert.go b/cmd/convert.go index 6d4d99a2550..b9ed9f16274 100644 --- a/cmd/convert.go +++ b/cmd/convert.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 cmd diff --git a/cmd/docs.go b/cmd/docs.go index 073c5749730..901d0abd1c5 100644 --- a/cmd/docs.go +++ b/cmd/docs.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 cmd diff --git a/cmd/doctor.go b/cmd/doctor.go index d05a0a98d7a..ceb6e3fbabe 100644 --- a/cmd/doctor.go +++ b/cmd/doctor.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 cmd diff --git a/cmd/dump.go b/cmd/dump.go index 6569fb6e36d..672a8cdc9c2 100644 --- a/cmd/dump.go +++ b/cmd/dump.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2016 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 cmd diff --git a/cmd/dump_repo.go b/cmd/dump_repo.go index 5f41ab69a98..2e78877afed 100644 --- a/cmd/dump_repo.go +++ b/cmd/dump_repo.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 cmd diff --git a/cmd/embedded.go b/cmd/embedded.go index b71ee6dfe71..118781895ec 100644 --- a/cmd/embedded.go +++ b/cmd/embedded.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 //go:build bindata diff --git a/cmd/embedded_stub.go b/cmd/embedded_stub.go index 26228256f2a..874df06f9d7 100644 --- a/cmd/embedded_stub.go +++ b/cmd/embedded_stub.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 //go:build !bindata diff --git a/cmd/generate.go b/cmd/generate.go index 35c77a815b1..f72ee163904 100644 --- a/cmd/generate.go +++ b/cmd/generate.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2016 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 cmd diff --git a/cmd/hook.go b/cmd/hook.go index 83fcd939155..228b79f7f01 100644 --- a/cmd/hook.go +++ b/cmd/hook.go @@ -1,6 +1,5 @@ // 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 cmd diff --git a/cmd/hook_test.go b/cmd/hook_test.go index 92c7e82a9ac..fe1f072a6f7 100644 --- a/cmd/hook_test.go +++ b/cmd/hook_test.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 cmd diff --git a/cmd/keys.go b/cmd/keys.go index 684aca64e22..74dc1cc68c6 100644 --- a/cmd/keys.go +++ b/cmd/keys.go @@ -1,6 +1,5 @@ // Copyright 2018 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 cmd diff --git a/cmd/mailer.go b/cmd/mailer.go index 35fcb302f89..af6613f1596 100644 --- a/cmd/mailer.go +++ b/cmd/mailer.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 cmd diff --git a/cmd/main_test.go b/cmd/main_test.go index 9cce0ef0360..9aacdf7bbae 100644 --- a/cmd/main_test.go +++ b/cmd/main_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 cmd diff --git a/cmd/manager.go b/cmd/manager.go index 8fbfd1093cb..cdfe509075f 100644 --- a/cmd/manager.go +++ b/cmd/manager.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 cmd diff --git a/cmd/manager_logging.go b/cmd/manager_logging.go index 761edf654c8..d49675ce870 100644 --- a/cmd/manager_logging.go +++ b/cmd/manager_logging.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 cmd diff --git a/cmd/migrate.go b/cmd/migrate.go index 49a13adeb56..2546fca21d0 100644 --- a/cmd/migrate.go +++ b/cmd/migrate.go @@ -1,6 +1,5 @@ // Copyright 2018 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 cmd diff --git a/cmd/migrate_storage.go b/cmd/migrate_storage.go index b6af5b96e87..0b8ebe7c8dc 100644 --- a/cmd/migrate_storage.go +++ b/cmd/migrate_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 cmd diff --git a/cmd/migrate_storage_test.go b/cmd/migrate_storage_test.go index 7051591ad68..aae366c0cf5 100644 --- a/cmd/migrate_storage_test.go +++ b/cmd/migrate_storage_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 cmd diff --git a/cmd/restore_repo.go b/cmd/restore_repo.go index 2256cc61abf..23932f821c2 100644 --- a/cmd/restore_repo.go +++ b/cmd/restore_repo.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 cmd diff --git a/cmd/serv.go b/cmd/serv.go index 06561f348a4..346c918b184 100644 --- a/cmd/serv.go +++ b/cmd/serv.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2016 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 cmd diff --git a/cmd/web.go b/cmd/web.go index 1b9f7e420a9..49a03356158 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -1,6 +1,5 @@ // 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 cmd diff --git a/cmd/web_acme.go b/cmd/web_acme.go index d8e550b321d..90e4a02764b 100644 --- a/cmd/web_acme.go +++ b/cmd/web_acme.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 cmd diff --git a/cmd/web_graceful.go b/cmd/web_graceful.go index ba88cc59c21..996537be3b5 100644 --- a/cmd/web_graceful.go +++ b/cmd/web_graceful.go @@ -1,6 +1,5 @@ // Copyright 2016 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 cmd diff --git a/cmd/web_https.go b/cmd/web_https.go index aac11517a69..70d35cd40d8 100644 --- a/cmd/web_https.go +++ b/cmd/web_https.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 cmd diff --git a/contrib/environment-to-ini/environment-to-ini.go b/contrib/environment-to-ini/environment-to-ini.go index ccda03fa925..b502c15cecd 100644 --- a/contrib/environment-to-ini/environment-to-ini.go +++ b/contrib/environment-to-ini/environment-to-ini.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 main diff --git a/contrib/fixtures/fixture_generation.go b/contrib/fixtures/fixture_generation.go index 66ff5c54e31..210e0aae067 100644 --- a/contrib/fixtures/fixture_generation.go +++ b/contrib/fixtures/fixture_generation.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 main diff --git a/contrib/pr/checkout.go b/contrib/pr/checkout.go index 686a3ddffaa..b31a4a8c689 100644 --- a/contrib/pr/checkout.go +++ b/contrib/pr/checkout.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 main diff --git a/main.go b/main.go index 0e550f05ebc..070e9857d08 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2016 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 // Gitea (git with a cup of tea) is a painless self-hosted Git Service. package main // import "code.gitea.io/gitea" diff --git a/models/activities/action.go b/models/activities/action.go index bbb60732657..80c117dc957 100644 --- a/models/activities/action.go +++ b/models/activities/action.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 activities diff --git a/models/activities/action_list.go b/models/activities/action_list.go index 86aa8689e2f..0979434f764 100644 --- a/models/activities/action_list.go +++ b/models/activities/action_list.go @@ -1,6 +1,5 @@ // Copyright 2018 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 activities diff --git a/models/activities/action_test.go b/models/activities/action_test.go index b79eb0d08d0..29312bd482b 100644 --- a/models/activities/action_test.go +++ b/models/activities/action_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 activities_test diff --git a/models/activities/main_test.go b/models/activities/main_test.go index 0a87f47600b..a8740f53c4d 100644 --- a/models/activities/main_test.go +++ b/models/activities/main_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 activities_test diff --git a/models/activities/notification.go b/models/activities/notification.go index 10b3a767135..9aa4b87628b 100644 --- a/models/activities/notification.go +++ b/models/activities/notification.go @@ -1,6 +1,5 @@ // Copyright 2016 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 activities diff --git a/models/activities/notification_test.go b/models/activities/notification_test.go index d871891001a..36b63b266b1 100644 --- a/models/activities/notification_test.go +++ b/models/activities/notification_test.go @@ -1,6 +1,5 @@ // 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 activities_test diff --git a/models/activities/repo_activity.go b/models/activities/repo_activity.go index 4c8aa7e81d1..9018276c3ae 100644 --- a/models/activities/repo_activity.go +++ b/models/activities/repo_activity.go @@ -1,6 +1,5 @@ // 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 activities diff --git a/models/activities/statistic.go b/models/activities/statistic.go index ea785a3ee26..138f4d8fe9e 100644 --- a/models/activities/statistic.go +++ b/models/activities/statistic.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 activities diff --git a/models/activities/user_heatmap.go b/models/activities/user_heatmap.go index 6e76be6c6b5..3370103a556 100644 --- a/models/activities/user_heatmap.go +++ b/models/activities/user_heatmap.go @@ -1,6 +1,5 @@ // Copyright 2018 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.package models +// SPDX-License-Identifier: MIT package activities diff --git a/models/activities/user_heatmap_test.go b/models/activities/user_heatmap_test.go index a8a240f790b..34715ab6ddd 100644 --- a/models/activities/user_heatmap_test.go +++ b/models/activities/user_heatmap_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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.package models +// SPDX-License-Identifier: MIT package activities_test diff --git a/models/admin/task.go b/models/admin/task.go index 4fa0f10394e..9e661b9997e 100644 --- a/models/admin/task.go +++ b/models/admin/task.go @@ -1,6 +1,5 @@ // Copyright 2019 Gitea. 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 admin diff --git a/models/asymkey/error.go b/models/asymkey/error.go index 3ddeb0498a2..1d486082f46 100644 --- a/models/asymkey/error.go +++ b/models/asymkey/error.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 asymkey diff --git a/models/asymkey/gpg_key.go b/models/asymkey/gpg_key.go index 30f5ecc9496..ecd9041e656 100644 --- a/models/asymkey/gpg_key.go +++ b/models/asymkey/gpg_key.go @@ -1,6 +1,5 @@ // 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 asymkey diff --git a/models/asymkey/gpg_key_add.go b/models/asymkey/gpg_key_add.go index e7be19073aa..eb4027b3a44 100644 --- a/models/asymkey/gpg_key_add.go +++ b/models/asymkey/gpg_key_add.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 asymkey diff --git a/models/asymkey/gpg_key_commit_verification.go b/models/asymkey/gpg_key_commit_verification.go index d5b06f83fd9..1cdd748e35a 100644 --- a/models/asymkey/gpg_key_commit_verification.go +++ b/models/asymkey/gpg_key_commit_verification.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 asymkey diff --git a/models/asymkey/gpg_key_common.go b/models/asymkey/gpg_key_common.go index 1ea510c45fe..5ceeee9aacf 100644 --- a/models/asymkey/gpg_key_common.go +++ b/models/asymkey/gpg_key_common.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 asymkey diff --git a/models/asymkey/gpg_key_import.go b/models/asymkey/gpg_key_import.go index 210c4b835b3..5b5ef4faba5 100644 --- a/models/asymkey/gpg_key_import.go +++ b/models/asymkey/gpg_key_import.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 asymkey diff --git a/models/asymkey/gpg_key_test.go b/models/asymkey/gpg_key_test.go index 2cee45d98f7..6a0f9c61444 100644 --- a/models/asymkey/gpg_key_test.go +++ b/models/asymkey/gpg_key_test.go @@ -1,6 +1,5 @@ // 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 asymkey diff --git a/models/asymkey/gpg_key_verify.go b/models/asymkey/gpg_key_verify.go index 4e9d04f5760..cb5eb7c8538 100644 --- a/models/asymkey/gpg_key_verify.go +++ b/models/asymkey/gpg_key_verify.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 asymkey diff --git a/models/asymkey/main_test.go b/models/asymkey/main_test.go index 9f53e335fec..82a408ece08 100644 --- a/models/asymkey/main_test.go +++ b/models/asymkey/main_test.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 asymkey diff --git a/models/asymkey/ssh_key.go b/models/asymkey/ssh_key.go index 811f563c8d2..4d6ae8103cd 100644 --- a/models/asymkey/ssh_key.go +++ b/models/asymkey/ssh_key.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 asymkey diff --git a/models/asymkey/ssh_key_authorized_keys.go b/models/asymkey/ssh_key_authorized_keys.go index ce3b0248cea..e138182d686 100644 --- a/models/asymkey/ssh_key_authorized_keys.go +++ b/models/asymkey/ssh_key_authorized_keys.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 asymkey diff --git a/models/asymkey/ssh_key_authorized_principals.go b/models/asymkey/ssh_key_authorized_principals.go index 4b08d0dfe7a..092839611f9 100644 --- a/models/asymkey/ssh_key_authorized_principals.go +++ b/models/asymkey/ssh_key_authorized_principals.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 asymkey diff --git a/models/asymkey/ssh_key_commit_verification.go b/models/asymkey/ssh_key_commit_verification.go index 65bae0f393c..af73637c4a8 100644 --- a/models/asymkey/ssh_key_commit_verification.go +++ b/models/asymkey/ssh_key_commit_verification.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 asymkey diff --git a/models/asymkey/ssh_key_deploy.go b/models/asymkey/ssh_key_deploy.go index 601e5c32e5f..cc843921170 100644 --- a/models/asymkey/ssh_key_deploy.go +++ b/models/asymkey/ssh_key_deploy.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 asymkey diff --git a/models/asymkey/ssh_key_fingerprint.go b/models/asymkey/ssh_key_fingerprint.go index 788d58dbabd..ca0334cc0b1 100644 --- a/models/asymkey/ssh_key_fingerprint.go +++ b/models/asymkey/ssh_key_fingerprint.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 asymkey diff --git a/models/asymkey/ssh_key_parse.go b/models/asymkey/ssh_key_parse.go index 2462310ed97..b3eecb2c9bf 100644 --- a/models/asymkey/ssh_key_parse.go +++ b/models/asymkey/ssh_key_parse.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 asymkey diff --git a/models/asymkey/ssh_key_principals.go b/models/asymkey/ssh_key_principals.go index 7a769fd84de..f00c3f3e9e6 100644 --- a/models/asymkey/ssh_key_principals.go +++ b/models/asymkey/ssh_key_principals.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 asymkey diff --git a/models/asymkey/ssh_key_test.go b/models/asymkey/ssh_key_test.go index adffedd0b6e..afd79ae6ded 100644 --- a/models/asymkey/ssh_key_test.go +++ b/models/asymkey/ssh_key_test.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // 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 asymkey diff --git a/models/asymkey/ssh_key_verify.go b/models/asymkey/ssh_key_verify.go index 6931df9e884..d6c16eb467e 100644 --- a/models/asymkey/ssh_key_verify.go +++ b/models/asymkey/ssh_key_verify.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 asymkey diff --git a/models/auth/main_test.go b/models/auth/main_test.go index 5d52e963b86..3205d8816ff 100644 --- a/models/auth/main_test.go +++ b/models/auth/main_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 auth_test diff --git a/models/auth/oauth2.go b/models/auth/oauth2.go index 2ff10662888..8e5a003d194 100644 --- a/models/auth/oauth2.go +++ b/models/auth/oauth2.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 auth diff --git a/models/auth/oauth2_test.go b/models/auth/oauth2_test.go index 7a4df6b9acd..80d0e9baa48 100644 --- a/models/auth/oauth2_test.go +++ b/models/auth/oauth2_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 auth_test diff --git a/models/auth/session.go b/models/auth/session.go index b5e4712bded..b60e6a903b9 100644 --- a/models/auth/session.go +++ b/models/auth/session.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 auth diff --git a/models/auth/source.go b/models/auth/source.go index f8be5398aef..bade2fecf09 100644 --- a/models/auth/source.go +++ b/models/auth/source.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 auth diff --git a/models/auth/source_test.go b/models/auth/source_test.go index 67e96ee19ef..31216cca8e7 100644 --- a/models/auth/source_test.go +++ b/models/auth/source_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 auth_test diff --git a/models/auth/token.go b/models/auth/token.go index 9902b80b782..763174f08f6 100644 --- a/models/auth/token.go +++ b/models/auth/token.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 auth diff --git a/models/auth/token_test.go b/models/auth/token_test.go index b27ff13406c..8a1e6649502 100644 --- a/models/auth/token_test.go +++ b/models/auth/token_test.go @@ -1,6 +1,5 @@ // Copyright 2016 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 auth_test diff --git a/models/auth/twofactor.go b/models/auth/twofactor.go index 736d4c340c4..179d315364b 100644 --- a/models/auth/twofactor.go +++ b/models/auth/twofactor.go @@ -1,6 +1,5 @@ // 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 auth diff --git a/models/auth/webauthn.go b/models/auth/webauthn.go index 1575b6cbab6..d5b2ceafd39 100644 --- a/models/auth/webauthn.go +++ b/models/auth/webauthn.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 auth diff --git a/models/auth/webauthn_test.go b/models/auth/webauthn_test.go index 29344376cc4..8ba900bf89c 100644 --- a/models/auth/webauthn_test.go +++ b/models/auth/webauthn_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 auth_test diff --git a/models/avatars/avatar.go b/models/avatars/avatar.go index dec264cea42..7ccb782fa62 100644 --- a/models/avatars/avatar.go +++ b/models/avatars/avatar.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 avatars diff --git a/models/avatars/avatar_test.go b/models/avatars/avatar_test.go index ace5445fc0e..29be2ea346c 100644 --- a/models/avatars/avatar_test.go +++ b/models/avatars/avatar_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 avatars_test diff --git a/models/avatars/main_test.go b/models/avatars/main_test.go index 0e98d8f64d8..65076327177 100644 --- a/models/avatars/main_test.go +++ b/models/avatars/main_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 avatars_test diff --git a/models/db/common.go b/models/db/common.go index 1a59a8b5c69..76c7c119f41 100644 --- a/models/db/common.go +++ b/models/db/common.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 db diff --git a/models/db/consistency.go b/models/db/consistency.go index 5a7878c74dd..d19732cf80d 100644 --- a/models/db/consistency.go +++ b/models/db/consistency.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 db diff --git a/models/db/context.go b/models/db/context.go index 8c81469ebc1..fb95e94c931 100644 --- a/models/db/context.go +++ b/models/db/context.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 db diff --git a/models/db/context_test.go b/models/db/context_test.go index f00e7834ed2..e7518a50d8d 100644 --- a/models/db/context_test.go +++ b/models/db/context_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 db_test diff --git a/models/db/convert.go b/models/db/convert.go index 039a6810408..b17e68c87e5 100644 --- a/models/db/convert.go +++ b/models/db/convert.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 db diff --git a/models/db/engine.go b/models/db/engine.go index 41949eb6f60..07ee6ca580a 100755 --- a/models/db/engine.go +++ b/models/db/engine.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 db diff --git a/models/db/engine_test.go b/models/db/engine_test.go index c2ba9614aa4..fa1ac08a173 100644 --- a/models/db/engine_test.go +++ b/models/db/engine_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 db_test diff --git a/models/db/error.go b/models/db/error.go index 85cba5c4e92..5860cb4a071 100644 --- a/models/db/error.go +++ b/models/db/error.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 db diff --git a/models/db/index.go b/models/db/index.go index 58a976ad528..46be74e91e7 100644 --- a/models/db/index.go +++ b/models/db/index.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 db diff --git a/models/db/index_test.go b/models/db/index_test.go index cf777b9d389..5fce0a60129 100644 --- a/models/db/index_test.go +++ b/models/db/index_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 db_test diff --git a/models/db/install/db.go b/models/db/install/db.go index 363a8c86794..d4c1139637f 100644 --- a/models/db/install/db.go +++ b/models/db/install/db.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 install diff --git a/models/db/iterate.go b/models/db/iterate.go index cbd2feed280..fc8c78d83ea 100644 --- a/models/db/iterate.go +++ b/models/db/iterate.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 db diff --git a/models/db/iterate_test.go b/models/db/iterate_test.go index 5d03a6e9cea..b0ea8b53ef1 100644 --- a/models/db/iterate_test.go +++ b/models/db/iterate_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 db_test diff --git a/models/db/list_options.go b/models/db/list_options.go index 54f6d945c81..b9ee360b1b8 100644 --- a/models/db/list_options.go +++ b/models/db/list_options.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 db diff --git a/models/db/log.go b/models/db/log.go index 4c497fdfd72..fec2ea3c3d3 100644 --- a/models/db/log.go +++ b/models/db/log.go @@ -1,6 +1,5 @@ // 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 db diff --git a/models/db/main_test.go b/models/db/main_test.go index b774dce4d8d..ce485029185 100644 --- a/models/db/main_test.go +++ b/models/db/main_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 db_test diff --git a/models/db/name.go b/models/db/name.go index a05d1a789be..51be33a8bcb 100644 --- a/models/db/name.go +++ b/models/db/name.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 db diff --git a/models/db/paginator/main_test.go b/models/db/paginator/main_test.go index 1127987e53d..b0557bc5a4a 100644 --- a/models/db/paginator/main_test.go +++ b/models/db/paginator/main_test.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 paginator diff --git a/models/db/paginator/paginator.go b/models/db/paginator/paginator.go index 747539f30ea..bcda47d9782 100644 --- a/models/db/paginator/paginator.go +++ b/models/db/paginator/paginator.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 paginator diff --git a/models/db/paginator/paginator_test.go b/models/db/paginator/paginator_test.go index fdb8eee4417..a1117fc7a44 100644 --- a/models/db/paginator/paginator_test.go +++ b/models/db/paginator/paginator_test.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 paginator diff --git a/models/db/search.go b/models/db/search.go index 704a48ed1eb..f5273cb6f6b 100644 --- a/models/db/search.go +++ b/models/db/search.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 db diff --git a/models/db/sequence.go b/models/db/sequence.go index 0daacee70c3..6d801d022fb 100644 --- a/models/db/sequence.go +++ b/models/db/sequence.go @@ -1,6 +1,5 @@ // Copyright 2018 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 db diff --git a/models/db/sql_postgres_with_schema.go b/models/db/sql_postgres_with_schema.go index 4bbd12bdebc..ec63447f6f6 100644 --- a/models/db/sql_postgres_with_schema.go +++ b/models/db/sql_postgres_with_schema.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 db diff --git a/models/error.go b/models/error.go index f4c4bc8f67c..8223f23585b 100644 --- a/models/error.go +++ b/models/error.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 models diff --git a/models/fixture_generation.go b/models/fixture_generation.go index 50b983fa820..abf880ee8e2 100644 --- a/models/fixture_generation.go +++ b/models/fixture_generation.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 models diff --git a/models/fixture_test.go b/models/fixture_test.go index 0857341e444..8a28db81649 100644 --- a/models/fixture_test.go +++ b/models/fixture_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 models diff --git a/models/foreignreference/error.go b/models/foreignreference/error.go index a1db773cd29..07ed1052a63 100644 --- a/models/foreignreference/error.go +++ b/models/foreignreference/error.go @@ -1,6 +1,5 @@ // Copyright 2022 Gitea. 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 foreignreference diff --git a/models/foreignreference/foreignreference.go b/models/foreignreference/foreignreference.go index cc657a0fbec..2d2ad04c5a1 100644 --- a/models/foreignreference/foreignreference.go +++ b/models/foreignreference/foreignreference.go @@ -1,6 +1,5 @@ // Copyright 2022 Gitea. 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 foreignreference diff --git a/models/git/branches.go b/models/git/branches.go index 328f6f0f0d0..87246ed149b 100644 --- a/models/git/branches.go +++ b/models/git/branches.go @@ -1,6 +1,5 @@ // Copyright 2016 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 git diff --git a/models/git/branches_test.go b/models/git/branches_test.go index 754c5a4e66d..038a4f6686a 100644 --- a/models/git/branches_test.go +++ b/models/git/branches_test.go @@ -1,6 +1,5 @@ // 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 git_test diff --git a/models/git/commit_status.go b/models/git/commit_status.go index df6f5ae7ea1..411fbbe5360 100644 --- a/models/git/commit_status.go +++ b/models/git/commit_status.go @@ -1,6 +1,5 @@ // Copyright 2017 Gitea. 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 git diff --git a/models/git/commit_status_test.go b/models/git/commit_status_test.go index 7b81b1549c2..c8296730149 100644 --- a/models/git/commit_status_test.go +++ b/models/git/commit_status_test.go @@ -1,6 +1,5 @@ // Copyright 2017 Gitea. 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 git_test diff --git a/models/git/lfs.go b/models/git/lfs.go index 87e07d7a5e0..a86e84c050c 100644 --- a/models/git/lfs.go +++ b/models/git/lfs.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 git diff --git a/models/git/lfs_lock.go b/models/git/lfs_lock.go index c5a8cc245e3..3d765ea22bb 100644 --- a/models/git/lfs_lock.go +++ b/models/git/lfs_lock.go @@ -1,6 +1,5 @@ // 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 git diff --git a/models/git/main_test.go b/models/git/main_test.go index 41e6ac47042..5ef9cde6076 100644 --- a/models/git/main_test.go +++ b/models/git/main_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 git_test diff --git a/models/git/protected_tag.go b/models/git/protected_tag.go index 4640a77b20f..1d32b11366f 100644 --- a/models/git/protected_tag.go +++ b/models/git/protected_tag.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 git diff --git a/models/git/protected_tag_test.go b/models/git/protected_tag_test.go index 352eed00603..164c33e28fd 100644 --- a/models/git/protected_tag_test.go +++ b/models/git/protected_tag_test.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 git_test diff --git a/models/issues/assignees.go b/models/issues/assignees.go index 19480fa1e1f..25ecd4b05ca 100644 --- a/models/issues/assignees.go +++ b/models/issues/assignees.go @@ -1,6 +1,5 @@ // Copyright 2018 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 issues diff --git a/models/issues/assignees_test.go b/models/issues/assignees_test.go index 4286bdd7eeb..7f18569d491 100644 --- a/models/issues/assignees_test.go +++ b/models/issues/assignees_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 issues_test diff --git a/models/issues/comment.go b/models/issues/comment.go index 9483814a19e..0aaa870b465 100644 --- a/models/issues/comment.go +++ b/models/issues/comment.go @@ -1,8 +1,7 @@ // Copyright 2018 The Gitea Authors. // Copyright 2016 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 issues diff --git a/models/issues/comment_list.go b/models/issues/comment_list.go index e42b8605f94..2b55bc212fe 100644 --- a/models/issues/comment_list.go +++ b/models/issues/comment_list.go @@ -1,6 +1,5 @@ // Copyright 2018 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 issues diff --git a/models/issues/comment_test.go b/models/issues/comment_test.go index f12da0177f8..6a647474dca 100644 --- a/models/issues/comment_test.go +++ b/models/issues/comment_test.go @@ -1,6 +1,5 @@ // 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 issues_test diff --git a/models/issues/content_history.go b/models/issues/content_history.go index f5cfa65b8ff..cc06b184d78 100644 --- a/models/issues/content_history.go +++ b/models/issues/content_history.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 issues diff --git a/models/issues/content_history_test.go b/models/issues/content_history_test.go index 1218d871d0f..7d52f1bcc64 100644 --- a/models/issues/content_history_test.go +++ b/models/issues/content_history_test.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 issues_test diff --git a/models/issues/dependency.go b/models/issues/dependency.go index a02280d8a6d..bd39824369a 100644 --- a/models/issues/dependency.go +++ b/models/issues/dependency.go @@ -1,6 +1,5 @@ // Copyright 2018 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 issues diff --git a/models/issues/dependency_test.go b/models/issues/dependency_test.go index 3ea0b4ff5ca..7af30b20193 100644 --- a/models/issues/dependency_test.go +++ b/models/issues/dependency_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 issues_test diff --git a/models/issues/issue.go b/models/issues/issue.go index 69d6657d464..488a17609e5 100644 --- a/models/issues/issue.go +++ b/models/issues/issue.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 issues diff --git a/models/issues/issue_index.go b/models/issues/issue_index.go index 1fa79f494a3..b480cc683f5 100644 --- a/models/issues/issue_index.go +++ b/models/issues/issue_index.go @@ -1,6 +1,5 @@ // 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 issues diff --git a/models/issues/issue_list.go b/models/issues/issue_list.go index d9dff4cb4d6..35a0c1f0e3a 100644 --- a/models/issues/issue_list.go +++ b/models/issues/issue_list.go @@ -1,6 +1,5 @@ // 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 issues diff --git a/models/issues/issue_list_test.go b/models/issues/issue_list_test.go index c38a405e02a..954a20ffe44 100644 --- a/models/issues/issue_list_test.go +++ b/models/issues/issue_list_test.go @@ -1,6 +1,5 @@ // 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 issues_test diff --git a/models/issues/issue_lock.go b/models/issues/issue_lock.go index 608b5fd1404..1376ffcadad 100644 --- a/models/issues/issue_lock.go +++ b/models/issues/issue_lock.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 issues diff --git a/models/issues/issue_project.go b/models/issues/issue_project.go index 39a27abd3e0..a366a92fad0 100644 --- a/models/issues/issue_project.go +++ b/models/issues/issue_project.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 issues diff --git a/models/issues/issue_test.go b/models/issues/issue_test.go index 2c8728e71a3..6764a9e6260 100644 --- a/models/issues/issue_test.go +++ b/models/issues/issue_test.go @@ -1,6 +1,5 @@ // 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 issues_test diff --git a/models/issues/issue_user.go b/models/issues/issue_user.go index c1a68c96e81..4a537752a2c 100644 --- a/models/issues/issue_user.go +++ b/models/issues/issue_user.go @@ -1,6 +1,5 @@ // 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 issues diff --git a/models/issues/issue_user_test.go b/models/issues/issue_user_test.go index 7dd84ed68cd..0daace6c9b1 100644 --- a/models/issues/issue_user_test.go +++ b/models/issues/issue_user_test.go @@ -1,6 +1,5 @@ // Copyright 2017 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 issues_test diff --git a/models/issues/issue_watch.go b/models/issues/issue_watch.go index cb9d7e7125e..1efc0ea6871 100644 --- a/models/issues/issue_watch.go +++ b/models/issues/issue_watch.go @@ -1,6 +1,5 @@ // 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 issues diff --git a/models/issues/issue_watch_test.go b/models/issues/issue_watch_test.go index 7aaf9f7f5da..4f44487f567 100644 --- a/models/issues/issue_watch_test.go +++ b/models/issues/issue_watch_test.go @@ -1,6 +1,5 @@ // 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 issues_test diff --git a/models/issues/issue_xref.go b/models/issues/issue_xref.go index 4c6601a0a2e..a965cf7340d 100644 --- a/models/issues/issue_xref.go +++ b/models/issues/issue_xref.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 issues diff --git a/models/issues/issue_xref_test.go b/models/issues/issue_xref_test.go index d6d88db8948..6d96c398d05 100644 --- a/models/issues/issue_xref_test.go +++ b/models/issues/issue_xref_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 issues_test diff --git a/models/issues/label.go b/models/issues/label.go index dc7058d6435..e5583ff00f6 100644 --- a/models/issues/label.go +++ b/models/issues/label.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// 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 issues diff --git a/models/issues/label_test.go b/models/issues/label_test.go index 077e0eeb67b..239e328d475 100644 --- a/models/issues/label_test.go +++ b/models/issues/label_test.go @@ -1,6 +1,5 @@ // 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 issues_test diff --git a/models/issues/main_test.go b/models/issues/main_test.go index 89f9e1c9997..93e05f33f66 100644 --- a/models/issues/main_test.go +++ b/models/issues/main_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 issues_test diff --git a/models/issues/milestone.go b/models/issues/milestone.go index 9d1778f732e..7c2ce407e68 100644 --- a/models/issues/milestone.go +++ b/models/issues/milestone.go @@ -1,6 +1,5 @@ // 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 issues diff --git a/models/issues/milestone_test.go b/models/issues/milestone_test.go index f04a2b2b3be..5db5655906b 100644 --- a/models/issues/milestone_test.go +++ b/models/issues/milestone_test.go @@ -1,6 +1,5 @@ // 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 issues_test diff --git a/models/issues/pull.go b/models/issues/pull.go index 993a1ba8bdf..9105dd4d3a6 100644 --- a/models/issues/pull.go +++ b/models/issues/pull.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 issues diff --git a/models/issues/pull_list.go b/models/issues/pull_list.go index 6110ba77fa7..432e848e97a 100644 --- a/models/issues/pull_list.go +++ b/models/issues/pull_list.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 issues diff --git a/models/issues/pull_test.go b/models/issues/pull_test.go index d88f9d4f54f..8ce8eecc4aa 100644 --- a/models/issues/pull_test.go +++ b/models/issues/pull_test.go @@ -1,6 +1,5 @@ // 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 issues_test diff --git a/models/issues/reaction.go b/models/issues/reaction.go index 5cb63795d1d..381881ff619 100644 --- a/models/issues/reaction.go +++ b/models/issues/reaction.go @@ -1,6 +1,5 @@ // 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 issues diff --git a/models/issues/reaction_test.go b/models/issues/reaction_test.go index 835a667619c..ddd0e2d04c0 100644 --- a/models/issues/reaction_test.go +++ b/models/issues/reaction_test.go @@ -1,6 +1,5 @@ // 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 issues_test diff --git a/models/issues/review.go b/models/issues/review.go index 5cf7d4c3da7..0b50763fdc3 100644 --- a/models/issues/review.go +++ b/models/issues/review.go @@ -1,6 +1,5 @@ // Copyright 2018 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 issues diff --git a/models/issues/review_test.go b/models/issues/review_test.go index 39ad14c65fc..cc4c13f9e23 100644 --- a/models/issues/review_test.go +++ b/models/issues/review_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 issues_test diff --git a/models/issues/stopwatch.go b/models/issues/stopwatch.go index d1d985b7469..8a8fdca339c 100644 --- a/models/issues/stopwatch.go +++ b/models/issues/stopwatch.go @@ -1,6 +1,5 @@ // 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 issues diff --git a/models/issues/stopwatch_test.go b/models/issues/stopwatch_test.go index a5e33f1cf6e..7745bc513c8 100644 --- a/models/issues/stopwatch_test.go +++ b/models/issues/stopwatch_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 issues_test diff --git a/models/issues/tracked_time.go b/models/issues/tracked_time.go index e1da0f32b0e..6d259754591 100644 --- a/models/issues/tracked_time.go +++ b/models/issues/tracked_time.go @@ -1,6 +1,5 @@ // 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 issues diff --git a/models/issues/tracked_time_test.go b/models/issues/tracked_time_test.go index ba8b242d999..b3174c7c82d 100644 --- a/models/issues/tracked_time_test.go +++ b/models/issues/tracked_time_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 issues_test diff --git a/models/main_test.go b/models/main_test.go index 35840015691..cc4eebfe764 100644 --- a/models/main_test.go +++ b/models/main_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 models diff --git a/models/migrate.go b/models/migrate.go index 2a79640b076..b1b55681264 100644 --- a/models/migrate.go +++ b/models/migrate.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 models diff --git a/models/migrate_test.go b/models/migrate_test.go index bc7729673a5..48cd905e4c0 100644 --- a/models/migrate_test.go +++ b/models/migrate_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 models diff --git a/models/migrations/base/db.go b/models/migrations/base/db.go index 5466b76220a..dcf99c96ae8 100644 --- a/models/migrations/base/db.go +++ b/models/migrations/base/db.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 base diff --git a/models/migrations/base/db_test.go b/models/migrations/base/db_test.go index ee227b79783..5145e19e866 100644 --- a/models/migrations/base/db_test.go +++ b/models/migrations/base/db_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 base diff --git a/models/migrations/base/hash.go b/models/migrations/base/hash.go index 0f078dd70fd..164f826b45d 100644 --- a/models/migrations/base/hash.go +++ b/models/migrations/base/hash.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 base diff --git a/models/migrations/base/main_test.go b/models/migrations/base/main_test.go index 290d87214ad..c1c789150f9 100644 --- a/models/migrations/base/main_test.go +++ b/models/migrations/base/main_test.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 base diff --git a/models/migrations/base/testlogger.go b/models/migrations/base/testlogger.go index 0f35a078eca..7cbf4602be0 100644 --- a/models/migrations/base/testlogger.go +++ b/models/migrations/base/testlogger.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 base diff --git a/models/migrations/base/tests.go b/models/migrations/base/tests.go index dafc0df2f27..a9bcd20f674 100644 --- a/models/migrations/base/tests.go +++ b/models/migrations/base/tests.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 base diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index a48c837e8b2..e718355f834 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -1,7 +1,6 @@ // Copyright 2015 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 migrations diff --git a/models/migrations/v1_10/v100.go b/models/migrations/v1_10/v100.go index af58b4b21d1..bd11790b988 100644 --- a/models/migrations/v1_10/v100.go +++ b/models/migrations/v1_10/v100.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v101.go b/models/migrations/v1_10/v101.go index 350e537a97c..79b419e9d97 100644 --- a/models/migrations/v1_10/v101.go +++ b/models/migrations/v1_10/v101.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v88.go b/models/migrations/v1_10/v88.go index 32659006ea9..e6376af62e4 100644 --- a/models/migrations/v1_10/v88.go +++ b/models/migrations/v1_10/v88.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v89.go b/models/migrations/v1_10/v89.go index 4b21ef20ff1..937068292c2 100644 --- a/models/migrations/v1_10/v89.go +++ b/models/migrations/v1_10/v89.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v90.go b/models/migrations/v1_10/v90.go index aa08ac36bc6..c9a69a6dfe3 100644 --- a/models/migrations/v1_10/v90.go +++ b/models/migrations/v1_10/v90.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v91.go b/models/migrations/v1_10/v91.go index b8c083f8d4a..9b5fefb1d02 100644 --- a/models/migrations/v1_10/v91.go +++ b/models/migrations/v1_10/v91.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v92.go b/models/migrations/v1_10/v92.go index c0552aaab5b..9080108594c 100644 --- a/models/migrations/v1_10/v92.go +++ b/models/migrations/v1_10/v92.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v93.go b/models/migrations/v1_10/v93.go index 6ce89f0d49b..5b59065171e 100644 --- a/models/migrations/v1_10/v93.go +++ b/models/migrations/v1_10/v93.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v94.go b/models/migrations/v1_10/v94.go index 542e45c139f..fe3804aee42 100644 --- a/models/migrations/v1_10/v94.go +++ b/models/migrations/v1_10/v94.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v95.go b/models/migrations/v1_10/v95.go index 48a0c4ea7fb..1b60eefb427 100644 --- a/models/migrations/v1_10/v95.go +++ b/models/migrations/v1_10/v95.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v96.go b/models/migrations/v1_10/v96.go index 372ca9e65a8..2abd260be41 100644 --- a/models/migrations/v1_10/v96.go +++ b/models/migrations/v1_10/v96.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v97.go b/models/migrations/v1_10/v97.go index 4438a9ed50c..8a1a4426ab2 100644 --- a/models/migrations/v1_10/v97.go +++ b/models/migrations/v1_10/v97.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v98.go b/models/migrations/v1_10/v98.go index 8e9ebb7d970..cab9a630650 100644 --- a/models/migrations/v1_10/v98.go +++ b/models/migrations/v1_10/v98.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 v1_10 //nolint diff --git a/models/migrations/v1_10/v99.go b/models/migrations/v1_10/v99.go index 21554f6effc..170a30631f8 100644 --- a/models/migrations/v1_10/v99.go +++ b/models/migrations/v1_10/v99.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 v1_10 //nolint diff --git a/models/migrations/v1_11/v102.go b/models/migrations/v1_11/v102.go index 49d9d3ae71d..9358e4cef33 100644 --- a/models/migrations/v1_11/v102.go +++ b/models/migrations/v1_11/v102.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v103.go b/models/migrations/v1_11/v103.go index e9114adeef8..e4e16a054e8 100644 --- a/models/migrations/v1_11/v103.go +++ b/models/migrations/v1_11/v103.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v104.go b/models/migrations/v1_11/v104.go index 0ab3682f6eb..c76554cf59f 100644 --- a/models/migrations/v1_11/v104.go +++ b/models/migrations/v1_11/v104.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v105.go b/models/migrations/v1_11/v105.go index 07aeedcd62a..df261c992c8 100644 --- a/models/migrations/v1_11/v105.go +++ b/models/migrations/v1_11/v105.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v106.go b/models/migrations/v1_11/v106.go index af775086671..3e06309a8d8 100644 --- a/models/migrations/v1_11/v106.go +++ b/models/migrations/v1_11/v106.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v107.go b/models/migrations/v1_11/v107.go index 5cc0d5282da..1ffbd35dd71 100644 --- a/models/migrations/v1_11/v107.go +++ b/models/migrations/v1_11/v107.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v108.go b/models/migrations/v1_11/v108.go index 06ff1b16e3e..28132c377d9 100644 --- a/models/migrations/v1_11/v108.go +++ b/models/migrations/v1_11/v108.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v109.go b/models/migrations/v1_11/v109.go index 2bfd2536bf5..d2ee9a6aaa2 100644 --- a/models/migrations/v1_11/v109.go +++ b/models/migrations/v1_11/v109.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v110.go b/models/migrations/v1_11/v110.go index 813a753e0c2..81afa1331d4 100644 --- a/models/migrations/v1_11/v110.go +++ b/models/migrations/v1_11/v110.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v111.go b/models/migrations/v1_11/v111.go index f1f1d7cb0fb..5b15c321636 100644 --- a/models/migrations/v1_11/v111.go +++ b/models/migrations/v1_11/v111.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v112.go b/models/migrations/v1_11/v112.go index f8e84cf7529..3478ffe4498 100644 --- a/models/migrations/v1_11/v112.go +++ b/models/migrations/v1_11/v112.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v113.go b/models/migrations/v1_11/v113.go index 36ab1bd9c4b..dc9adb60b05 100644 --- a/models/migrations/v1_11/v113.go +++ b/models/migrations/v1_11/v113.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v114.go b/models/migrations/v1_11/v114.go index 688dd06d42f..95adcee989c 100644 --- a/models/migrations/v1_11/v114.go +++ b/models/migrations/v1_11/v114.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v115.go b/models/migrations/v1_11/v115.go index 1fbf0c4f255..da935f6514e 100644 --- a/models/migrations/v1_11/v115.go +++ b/models/migrations/v1_11/v115.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 v1_11 //nolint diff --git a/models/migrations/v1_11/v116.go b/models/migrations/v1_11/v116.go index 6b6d91777b7..73fddd10395 100644 --- a/models/migrations/v1_11/v116.go +++ b/models/migrations/v1_11/v116.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 v1_11 //nolint diff --git a/models/migrations/v1_12/v117.go b/models/migrations/v1_12/v117.go index 6a102e0df7a..bc768f3f0bb 100644 --- a/models/migrations/v1_12/v117.go +++ b/models/migrations/v1_12/v117.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v118.go b/models/migrations/v1_12/v118.go index 227daffc45f..9b893e2992b 100644 --- a/models/migrations/v1_12/v118.go +++ b/models/migrations/v1_12/v118.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v119.go b/models/migrations/v1_12/v119.go index 998ca004d2e..60bfe6a57da 100644 --- a/models/migrations/v1_12/v119.go +++ b/models/migrations/v1_12/v119.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v120.go b/models/migrations/v1_12/v120.go index cc35ce5f3ea..f4e61215eb0 100644 --- a/models/migrations/v1_12/v120.go +++ b/models/migrations/v1_12/v120.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v121.go b/models/migrations/v1_12/v121.go index 19864658d1f..ac656b2d422 100644 --- a/models/migrations/v1_12/v121.go +++ b/models/migrations/v1_12/v121.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v122.go b/models/migrations/v1_12/v122.go index b0edae93bdb..67ac9411faa 100644 --- a/models/migrations/v1_12/v122.go +++ b/models/migrations/v1_12/v122.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v123.go b/models/migrations/v1_12/v123.go index 1ecfdce7363..ec56161afa6 100644 --- a/models/migrations/v1_12/v123.go +++ b/models/migrations/v1_12/v123.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v124.go b/models/migrations/v1_12/v124.go index 0fc86378dbc..311690c039b 100644 --- a/models/migrations/v1_12/v124.go +++ b/models/migrations/v1_12/v124.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v125.go b/models/migrations/v1_12/v125.go index d74f888e906..5540dfd626f 100644 --- a/models/migrations/v1_12/v125.go +++ b/models/migrations/v1_12/v125.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v126.go b/models/migrations/v1_12/v126.go index 51dfb516738..ca9ec3aa3f3 100644 --- a/models/migrations/v1_12/v126.go +++ b/models/migrations/v1_12/v126.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v127.go b/models/migrations/v1_12/v127.go index 5849b82566d..b248eb4c06c 100644 --- a/models/migrations/v1_12/v127.go +++ b/models/migrations/v1_12/v127.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v128.go b/models/migrations/v1_12/v128.go index 71e8e320772..44d44a26c54 100644 --- a/models/migrations/v1_12/v128.go +++ b/models/migrations/v1_12/v128.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v129.go b/models/migrations/v1_12/v129.go index 28bc5f604f9..cf228242b9d 100644 --- a/models/migrations/v1_12/v129.go +++ b/models/migrations/v1_12/v129.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v130.go b/models/migrations/v1_12/v130.go index ca3765be7bd..391810c7cad 100644 --- a/models/migrations/v1_12/v130.go +++ b/models/migrations/v1_12/v130.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v131.go b/models/migrations/v1_12/v131.go index 14d954b4ba8..a734d9fbf8f 100644 --- a/models/migrations/v1_12/v131.go +++ b/models/migrations/v1_12/v131.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v132.go b/models/migrations/v1_12/v132.go index 8d93460f76b..1708a57a7e4 100644 --- a/models/migrations/v1_12/v132.go +++ b/models/migrations/v1_12/v132.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v133.go b/models/migrations/v1_12/v133.go index 1d69c47b9f2..e1c392459b8 100644 --- a/models/migrations/v1_12/v133.go +++ b/models/migrations/v1_12/v133.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v134.go b/models/migrations/v1_12/v134.go index 297db37a08f..3d1c82f09e1 100644 --- a/models/migrations/v1_12/v134.go +++ b/models/migrations/v1_12/v134.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v135.go b/models/migrations/v1_12/v135.go index 9453ecdd581..5a87d9911b3 100644 --- a/models/migrations/v1_12/v135.go +++ b/models/migrations/v1_12/v135.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v136.go b/models/migrations/v1_12/v136.go index b114ddf5083..0cecba7be93 100644 --- a/models/migrations/v1_12/v136.go +++ b/models/migrations/v1_12/v136.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v137.go b/models/migrations/v1_12/v137.go index 6eb6b1ebb38..371b1a3fdb8 100644 --- a/models/migrations/v1_12/v137.go +++ b/models/migrations/v1_12/v137.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v138.go b/models/migrations/v1_12/v138.go index c101c6e4cdf..a2bfdb59a85 100644 --- a/models/migrations/v1_12/v138.go +++ b/models/migrations/v1_12/v138.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 v1_12 //nolint diff --git a/models/migrations/v1_12/v139.go b/models/migrations/v1_12/v139.go index 69daa94f981..725b8fa3059 100644 --- a/models/migrations/v1_12/v139.go +++ b/models/migrations/v1_12/v139.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 v1_12 //nolint diff --git a/models/migrations/v1_13/v140.go b/models/migrations/v1_13/v140.go index 37aeeaeb6b1..3de9eaaf7cd 100644 --- a/models/migrations/v1_13/v140.go +++ b/models/migrations/v1_13/v140.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v141.go b/models/migrations/v1_13/v141.go index 7dd1cc5d673..80796e6db93 100644 --- a/models/migrations/v1_13/v141.go +++ b/models/migrations/v1_13/v141.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v142.go b/models/migrations/v1_13/v142.go index 3a2206b6c68..7c7c01ad47d 100644 --- a/models/migrations/v1_13/v142.go +++ b/models/migrations/v1_13/v142.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v143.go b/models/migrations/v1_13/v143.go index eee66c0a0d4..ad1a8c66a5d 100644 --- a/models/migrations/v1_13/v143.go +++ b/models/migrations/v1_13/v143.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v144.go b/models/migrations/v1_13/v144.go index 0b8b91268b7..f5a0bc57510 100644 --- a/models/migrations/v1_13/v144.go +++ b/models/migrations/v1_13/v144.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v145.go b/models/migrations/v1_13/v145.go index b12da3c6757..c96e79f8a0e 100644 --- a/models/migrations/v1_13/v145.go +++ b/models/migrations/v1_13/v145.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v146.go b/models/migrations/v1_13/v146.go index 7afd325371f..5db8b0a4374 100644 --- a/models/migrations/v1_13/v146.go +++ b/models/migrations/v1_13/v146.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v147.go b/models/migrations/v1_13/v147.go index 1518b8dd24f..d9c51145c41 100644 --- a/models/migrations/v1_13/v147.go +++ b/models/migrations/v1_13/v147.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v148.go b/models/migrations/v1_13/v148.go index 40ede7174c8..7bb8ab700b6 100644 --- a/models/migrations/v1_13/v148.go +++ b/models/migrations/v1_13/v148.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v149.go b/models/migrations/v1_13/v149.go index f0054b752df..e093b4f9db8 100644 --- a/models/migrations/v1_13/v149.go +++ b/models/migrations/v1_13/v149.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v150.go b/models/migrations/v1_13/v150.go index 99e6ddf685b..d5ba4895665 100644 --- a/models/migrations/v1_13/v150.go +++ b/models/migrations/v1_13/v150.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v151.go b/models/migrations/v1_13/v151.go index 9efda936459..9490c1778c6 100644 --- a/models/migrations/v1_13/v151.go +++ b/models/migrations/v1_13/v151.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v152.go b/models/migrations/v1_13/v152.go index ec49a2fb97b..7f7c414de8a 100644 --- a/models/migrations/v1_13/v152.go +++ b/models/migrations/v1_13/v152.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v153.go b/models/migrations/v1_13/v153.go index 1428edd3c11..4146d833878 100644 --- a/models/migrations/v1_13/v153.go +++ b/models/migrations/v1_13/v153.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 v1_13 //nolint diff --git a/models/migrations/v1_13/v154.go b/models/migrations/v1_13/v154.go index 8976db675cf..8b4498be847 100644 --- a/models/migrations/v1_13/v154.go +++ b/models/migrations/v1_13/v154.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 v1_13 //nolint diff --git a/models/migrations/v1_14/main_test.go b/models/migrations/v1_14/main_test.go index 859f7520ee7..7a091b9b9ac 100644 --- a/models/migrations/v1_14/main_test.go +++ b/models/migrations/v1_14/main_test.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v155.go b/models/migrations/v1_14/v155.go index 630eb94f1ad..7c5dc5fbe27 100644 --- a/models/migrations/v1_14/v155.go +++ b/models/migrations/v1_14/v155.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v156.go b/models/migrations/v1_14/v156.go index 698c1c942b5..2cf4954a15f 100644 --- a/models/migrations/v1_14/v156.go +++ b/models/migrations/v1_14/v156.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v157.go b/models/migrations/v1_14/v157.go index 12f0876d611..b9d8225af8a 100644 --- a/models/migrations/v1_14/v157.go +++ b/models/migrations/v1_14/v157.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v158.go b/models/migrations/v1_14/v158.go index e6c9e629f7f..7ea80a659ed 100644 --- a/models/migrations/v1_14/v158.go +++ b/models/migrations/v1_14/v158.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v159.go b/models/migrations/v1_14/v159.go index 60be2b12bda..149ae0f6a8e 100644 --- a/models/migrations/v1_14/v159.go +++ b/models/migrations/v1_14/v159.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v160.go b/models/migrations/v1_14/v160.go index 5bdf180ef90..b9b7e7fbdd5 100644 --- a/models/migrations/v1_14/v160.go +++ b/models/migrations/v1_14/v160.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v161.go b/models/migrations/v1_14/v161.go index cf661caa375..ef3c14d5950 100644 --- a/models/migrations/v1_14/v161.go +++ b/models/migrations/v1_14/v161.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v162.go b/models/migrations/v1_14/v162.go index bfaa824fa2c..972f771fd7b 100644 --- a/models/migrations/v1_14/v162.go +++ b/models/migrations/v1_14/v162.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v163.go b/models/migrations/v1_14/v163.go index 8044dd4035c..22f55f48d16 100644 --- a/models/migrations/v1_14/v163.go +++ b/models/migrations/v1_14/v163.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v164.go b/models/migrations/v1_14/v164.go index 0a142485033..a6791b16e03 100644 --- a/models/migrations/v1_14/v164.go +++ b/models/migrations/v1_14/v164.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v165.go b/models/migrations/v1_14/v165.go index d42dea96a51..a784832e1c3 100644 --- a/models/migrations/v1_14/v165.go +++ b/models/migrations/v1_14/v165.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v166.go b/models/migrations/v1_14/v166.go index bdb18ffa645..1eb72633476 100644 --- a/models/migrations/v1_14/v166.go +++ b/models/migrations/v1_14/v166.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v167.go b/models/migrations/v1_14/v167.go index 8098a762130..fb6b3b474af 100644 --- a/models/migrations/v1_14/v167.go +++ b/models/migrations/v1_14/v167.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v168.go b/models/migrations/v1_14/v168.go index e62ab909a0c..a30a8859f7f 100644 --- a/models/migrations/v1_14/v168.go +++ b/models/migrations/v1_14/v168.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v169.go b/models/migrations/v1_14/v169.go index f5fe332d97f..5b81bb58b19 100644 --- a/models/migrations/v1_14/v169.go +++ b/models/migrations/v1_14/v169.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v170.go b/models/migrations/v1_14/v170.go index cb0f927a2f5..adb28cae5e6 100644 --- a/models/migrations/v1_14/v170.go +++ b/models/migrations/v1_14/v170.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v171.go b/models/migrations/v1_14/v171.go index 0c94fd4f93c..35769342e87 100644 --- a/models/migrations/v1_14/v171.go +++ b/models/migrations/v1_14/v171.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v172.go b/models/migrations/v1_14/v172.go index 6518c031747..76519b94579 100644 --- a/models/migrations/v1_14/v172.go +++ b/models/migrations/v1_14/v172.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v173.go b/models/migrations/v1_14/v173.go index c8c9c39c695..3b7ecb8f9d8 100644 --- a/models/migrations/v1_14/v173.go +++ b/models/migrations/v1_14/v173.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v174.go b/models/migrations/v1_14/v174.go index 9a139764c33..766d3a4208e 100644 --- a/models/migrations/v1_14/v174.go +++ b/models/migrations/v1_14/v174.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v175.go b/models/migrations/v1_14/v175.go index e66871f5eee..f1b9b974c6a 100644 --- a/models/migrations/v1_14/v175.go +++ b/models/migrations/v1_14/v175.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v176.go b/models/migrations/v1_14/v176.go index 4a343159ec9..bd2484e49d7 100644 --- a/models/migrations/v1_14/v176.go +++ b/models/migrations/v1_14/v176.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v176_test.go b/models/migrations/v1_14/v176_test.go index c088af9066b..ea3e750d7f9 100644 --- a/models/migrations/v1_14/v176_test.go +++ b/models/migrations/v1_14/v176_test.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v177.go b/models/migrations/v1_14/v177.go index c3086cd8e94..e72a9e53a95 100644 --- a/models/migrations/v1_14/v177.go +++ b/models/migrations/v1_14/v177.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 v1_14 //nolint diff --git a/models/migrations/v1_14/v177_test.go b/models/migrations/v1_14/v177_test.go index 4e061316d33..5568a18fec0 100644 --- a/models/migrations/v1_14/v177_test.go +++ b/models/migrations/v1_14/v177_test.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 v1_14 //nolint diff --git a/models/migrations/v1_15/main_test.go b/models/migrations/v1_15/main_test.go index d589734e37d..366f19788ec 100644 --- a/models/migrations/v1_15/main_test.go +++ b/models/migrations/v1_15/main_test.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v178.go b/models/migrations/v1_15/v178.go index 27ece98916a..9bb6ed7f8df 100644 --- a/models/migrations/v1_15/v178.go +++ b/models/migrations/v1_15/v178.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v179.go b/models/migrations/v1_15/v179.go index c23bf91766c..f6b142eb42d 100644 --- a/models/migrations/v1_15/v179.go +++ b/models/migrations/v1_15/v179.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v180.go b/models/migrations/v1_15/v180.go index fc948bb1f5e..17163ee2c68 100644 --- a/models/migrations/v1_15/v180.go +++ b/models/migrations/v1_15/v180.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v181.go b/models/migrations/v1_15/v181.go index 7ec3dae3767..e2bb3208c41 100644 --- a/models/migrations/v1_15/v181.go +++ b/models/migrations/v1_15/v181.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v181_test.go b/models/migrations/v1_15/v181_test.go index f621d0d162f..1b075be7a09 100644 --- a/models/migrations/v1_15/v181_test.go +++ b/models/migrations/v1_15/v181_test.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v182.go b/models/migrations/v1_15/v182.go index 32282089afe..c584ef851df 100644 --- a/models/migrations/v1_15/v182.go +++ b/models/migrations/v1_15/v182.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v182_test.go b/models/migrations/v1_15/v182_test.go index b227e557ae6..75ef8e1cd83 100644 --- a/models/migrations/v1_15/v182_test.go +++ b/models/migrations/v1_15/v182_test.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v183.go b/models/migrations/v1_15/v183.go index 48039f8dc4c..4cc98f9efcb 100644 --- a/models/migrations/v1_15/v183.go +++ b/models/migrations/v1_15/v183.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v184.go b/models/migrations/v1_15/v184.go index 195b419bc32..48f8b62165c 100644 --- a/models/migrations/v1_15/v184.go +++ b/models/migrations/v1_15/v184.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v185.go b/models/migrations/v1_15/v185.go index 4b8ed2e0382..382cb621477 100644 --- a/models/migrations/v1_15/v185.go +++ b/models/migrations/v1_15/v185.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v186.go b/models/migrations/v1_15/v186.go index 3f53ff6a11a..310ac85f4cf 100644 --- a/models/migrations/v1_15/v186.go +++ b/models/migrations/v1_15/v186.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v187.go b/models/migrations/v1_15/v187.go index c3f60d1db87..afd86bac45e 100644 --- a/models/migrations/v1_15/v187.go +++ b/models/migrations/v1_15/v187.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 v1_15 //nolint diff --git a/models/migrations/v1_15/v188.go b/models/migrations/v1_15/v188.go index 265b6f2f3f5..71e45cab0e3 100644 --- a/models/migrations/v1_15/v188.go +++ b/models/migrations/v1_15/v188.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 v1_15 //nolint diff --git a/models/migrations/v1_16/main_test.go b/models/migrations/v1_16/main_test.go index 8109a8a2636..817a0c13a45 100644 --- a/models/migrations/v1_16/main_test.go +++ b/models/migrations/v1_16/main_test.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v189.go b/models/migrations/v1_16/v189.go index b04115845e2..32e3899a3a1 100644 --- a/models/migrations/v1_16/v189.go +++ b/models/migrations/v1_16/v189.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v189_test.go b/models/migrations/v1_16/v189_test.go index 9c0f0967cda..96cb97c3283 100644 --- a/models/migrations/v1_16/v189_test.go +++ b/models/migrations/v1_16/v189_test.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v190.go b/models/migrations/v1_16/v190.go index a669fc31fab..1853729ae99 100644 --- a/models/migrations/v1_16/v190.go +++ b/models/migrations/v1_16/v190.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v191.go b/models/migrations/v1_16/v191.go index 461ac653d41..2d2c3d1a587 100644 --- a/models/migrations/v1_16/v191.go +++ b/models/migrations/v1_16/v191.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v192.go b/models/migrations/v1_16/v192.go index e3ac2654fde..2d5d158a09e 100644 --- a/models/migrations/v1_16/v192.go +++ b/models/migrations/v1_16/v192.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v193.go b/models/migrations/v1_16/v193.go index 8bf960feb3b..dd50e353e37 100644 --- a/models/migrations/v1_16/v193.go +++ b/models/migrations/v1_16/v193.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v193_test.go b/models/migrations/v1_16/v193_test.go index b573a54bb05..17669a012e3 100644 --- a/models/migrations/v1_16/v193_test.go +++ b/models/migrations/v1_16/v193_test.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v194.go b/models/migrations/v1_16/v194.go index 8486b1131ad..ae7fe10bfc5 100644 --- a/models/migrations/v1_16/v194.go +++ b/models/migrations/v1_16/v194.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v195.go b/models/migrations/v1_16/v195.go index a7165cbf758..9e390a971e4 100644 --- a/models/migrations/v1_16/v195.go +++ b/models/migrations/v1_16/v195.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v195_test.go b/models/migrations/v1_16/v195_test.go index 06ff13b52bc..742397bf32a 100644 --- a/models/migrations/v1_16/v195_test.go +++ b/models/migrations/v1_16/v195_test.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v196.go b/models/migrations/v1_16/v196.go index b73a56607ef..ed7f4185a1b 100644 --- a/models/migrations/v1_16/v196.go +++ b/models/migrations/v1_16/v196.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v197.go b/models/migrations/v1_16/v197.go index da2e9ae76f3..ef9d57a79e5 100644 --- a/models/migrations/v1_16/v197.go +++ b/models/migrations/v1_16/v197.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v198.go b/models/migrations/v1_16/v198.go index 0e09ee53065..ed792de793c 100644 --- a/models/migrations/v1_16/v198.go +++ b/models/migrations/v1_16/v198.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v199.go b/models/migrations/v1_16/v199.go index 53ed7e4e8a5..6adcf890afb 100644 --- a/models/migrations/v1_16/v199.go +++ b/models/migrations/v1_16/v199.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v200.go b/models/migrations/v1_16/v200.go index 70ee36354ca..e39f4af9e86 100644 --- a/models/migrations/v1_16/v200.go +++ b/models/migrations/v1_16/v200.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v201.go b/models/migrations/v1_16/v201.go index 6a2eda77b1e..35e0c9f2fbe 100644 --- a/models/migrations/v1_16/v201.go +++ b/models/migrations/v1_16/v201.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v202.go b/models/migrations/v1_16/v202.go index de0576b8d6d..79676f3fab2 100644 --- a/models/migrations/v1_16/v202.go +++ b/models/migrations/v1_16/v202.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v203.go b/models/migrations/v1_16/v203.go index 78903cb5951..26ec135a07c 100644 --- a/models/migrations/v1_16/v203.go +++ b/models/migrations/v1_16/v203.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v204.go b/models/migrations/v1_16/v204.go index 8151866fa24..e7577c8da49 100644 --- a/models/migrations/v1_16/v204.go +++ b/models/migrations/v1_16/v204.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v205.go b/models/migrations/v1_16/v205.go index 9cca445d353..d6c577083cd 100644 --- a/models/migrations/v1_16/v205.go +++ b/models/migrations/v1_16/v205.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v206.go b/models/migrations/v1_16/v206.go index b2530d1005a..64c794a2d0f 100644 --- a/models/migrations/v1_16/v206.go +++ b/models/migrations/v1_16/v206.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v207.go b/models/migrations/v1_16/v207.go index f93ae4c3397..91208f066ca 100644 --- a/models/migrations/v1_16/v207.go +++ b/models/migrations/v1_16/v207.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v208.go b/models/migrations/v1_16/v208.go index 40f8b05b800..1a11ef096ad 100644 --- a/models/migrations/v1_16/v208.go +++ b/models/migrations/v1_16/v208.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v209.go b/models/migrations/v1_16/v209.go index e2f06bbfb05..be3100e02a0 100644 --- a/models/migrations/v1_16/v209.go +++ b/models/migrations/v1_16/v209.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v210.go b/models/migrations/v1_16/v210.go index b59b3566075..974e77fb842 100644 --- a/models/migrations/v1_16/v210.go +++ b/models/migrations/v1_16/v210.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 v1_16 //nolint diff --git a/models/migrations/v1_16/v210_test.go b/models/migrations/v1_16/v210_test.go index 20c430594e6..d43fb031061 100644 --- a/models/migrations/v1_16/v210_test.go +++ b/models/migrations/v1_16/v210_test.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 v1_16 //nolint diff --git a/models/migrations/v1_17/main_test.go b/models/migrations/v1_17/main_test.go index 0f1708de8b6..e6871cacf2e 100644 --- a/models/migrations/v1_17/main_test.go +++ b/models/migrations/v1_17/main_test.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v211.go b/models/migrations/v1_17/v211.go index de9eb4b4b0d..227de4984fc 100644 --- a/models/migrations/v1_17/v211.go +++ b/models/migrations/v1_17/v211.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v212.go b/models/migrations/v1_17/v212.go index 5187f5e72f4..a00d29cd2fd 100644 --- a/models/migrations/v1_17/v212.go +++ b/models/migrations/v1_17/v212.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v213.go b/models/migrations/v1_17/v213.go index 7b1b158f9fd..2ed56104cf7 100644 --- a/models/migrations/v1_17/v213.go +++ b/models/migrations/v1_17/v213.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v214.go b/models/migrations/v1_17/v214.go index e6fa53d4b84..e619b805a61 100644 --- a/models/migrations/v1_17/v214.go +++ b/models/migrations/v1_17/v214.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v215.go b/models/migrations/v1_17/v215.go index e1485159641..43e5b636c9b 100644 --- a/models/migrations/v1_17/v215.go +++ b/models/migrations/v1_17/v215.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v216.go b/models/migrations/v1_17/v216.go index bde58257721..388cb971e70 100644 --- a/models/migrations/v1_17/v216.go +++ b/models/migrations/v1_17/v216.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v217.go b/models/migrations/v1_17/v217.go index abba9e8ec9f..bbb40251fbe 100644 --- a/models/migrations/v1_17/v217.go +++ b/models/migrations/v1_17/v217.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v218.go b/models/migrations/v1_17/v218.go index a5cd1c591ad..4d5e77070bb 100644 --- a/models/migrations/v1_17/v218.go +++ b/models/migrations/v1_17/v218.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v219.go b/models/migrations/v1_17/v219.go index d22f4e6b8e5..c8aa2378c30 100644 --- a/models/migrations/v1_17/v219.go +++ b/models/migrations/v1_17/v219.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v220.go b/models/migrations/v1_17/v220.go index bbceb933b3f..31158509b87 100644 --- a/models/migrations/v1_17/v220.go +++ b/models/migrations/v1_17/v220.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v221.go b/models/migrations/v1_17/v221.go index 17744d53ab0..ceb079f369d 100644 --- a/models/migrations/v1_17/v221.go +++ b/models/migrations/v1_17/v221.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v221_test.go b/models/migrations/v1_17/v221_test.go index d635820f82a..3215d74915f 100644 --- a/models/migrations/v1_17/v221_test.go +++ b/models/migrations/v1_17/v221_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 v1_17 // nolint diff --git a/models/migrations/v1_17/v222.go b/models/migrations/v1_17/v222.go index 3aafb1848d3..558c0d9adcd 100644 --- a/models/migrations/v1_17/v222.go +++ b/models/migrations/v1_17/v222.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 v1_17 // nolint diff --git a/models/migrations/v1_17/v223.go b/models/migrations/v1_17/v223.go index 530ddf0e05c..c83deb255fe 100644 --- a/models/migrations/v1_17/v223.go +++ b/models/migrations/v1_17/v223.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 v1_17 // nolint diff --git a/models/migrations/v1_18/main_test.go b/models/migrations/v1_18/main_test.go index cb093404284..aec48845bf7 100644 --- a/models/migrations/v1_18/main_test.go +++ b/models/migrations/v1_18/main_test.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 v1_18 // nolint diff --git a/models/migrations/v1_18/v224.go b/models/migrations/v1_18/v224.go index 34dbcc1aa19..f37b773effa 100644 --- a/models/migrations/v1_18/v224.go +++ b/models/migrations/v1_18/v224.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 v1_18 // nolint diff --git a/models/migrations/v1_18/v225.go b/models/migrations/v1_18/v225.go index 8848a898258..2ff5f4c7f7c 100644 --- a/models/migrations/v1_18/v225.go +++ b/models/migrations/v1_18/v225.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 v1_18 // nolint diff --git a/models/migrations/v1_18/v226.go b/models/migrations/v1_18/v226.go index bff88cbefa0..536346a97a6 100644 --- a/models/migrations/v1_18/v226.go +++ b/models/migrations/v1_18/v226.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 v1_18 // nolint diff --git a/models/migrations/v1_18/v227.go b/models/migrations/v1_18/v227.go index 7dc468108c3..b4da88ee0ae 100644 --- a/models/migrations/v1_18/v227.go +++ b/models/migrations/v1_18/v227.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 v1_18 // nolint diff --git a/models/migrations/v1_18/v228.go b/models/migrations/v1_18/v228.go index 28ce171b535..3144310507f 100644 --- a/models/migrations/v1_18/v228.go +++ b/models/migrations/v1_18/v228.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 v1_18 // nolint diff --git a/models/migrations/v1_18/v229.go b/models/migrations/v1_18/v229.go index ea7c3ed3291..10d9f350979 100644 --- a/models/migrations/v1_18/v229.go +++ b/models/migrations/v1_18/v229.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 v1_18 //nolint diff --git a/models/migrations/v1_18/v229_test.go b/models/migrations/v1_18/v229_test.go index caa24b26b8c..d489328c000 100644 --- a/models/migrations/v1_18/v229_test.go +++ b/models/migrations/v1_18/v229_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 v1_18 //nolint diff --git a/models/migrations/v1_18/v230.go b/models/migrations/v1_18/v230.go index fe98e07a458..2d2248fcb38 100644 --- a/models/migrations/v1_18/v230.go +++ b/models/migrations/v1_18/v230.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 v1_18 // nolint diff --git a/models/migrations/v1_18/v230_test.go b/models/migrations/v1_18/v230_test.go index 0af13a1b9ee..308f3a50231 100644 --- a/models/migrations/v1_18/v230_test.go +++ b/models/migrations/v1_18/v230_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 v1_18 //nolint diff --git a/models/migrations/v1_19/main_test.go b/models/migrations/v1_19/main_test.go index 8ba7fcaf105..3d08ec2f5e9 100644 --- a/models/migrations/v1_19/main_test.go +++ b/models/migrations/v1_19/main_test.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 v1_19 // nolint diff --git a/models/migrations/v1_19/v231.go b/models/migrations/v1_19/v231.go index 809a1cfa576..79e46132f0a 100644 --- a/models/migrations/v1_19/v231.go +++ b/models/migrations/v1_19/v231.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 v1_19 //nolint diff --git a/models/migrations/v1_19/v232.go b/models/migrations/v1_19/v232.go index 92c9ad84b7e..9feb5343bcd 100644 --- a/models/migrations/v1_19/v232.go +++ b/models/migrations/v1_19/v232.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 v1_19 // nolint diff --git a/models/migrations/v1_19/v233.go b/models/migrations/v1_19/v233.go index 6443d58fbee..fe568b64eb5 100644 --- a/models/migrations/v1_19/v233.go +++ b/models/migrations/v1_19/v233.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 v1_19 //nolint diff --git a/models/migrations/v1_19/v233_test.go b/models/migrations/v1_19/v233_test.go index dd810feef28..9902b7e4ae3 100644 --- a/models/migrations/v1_19/v233_test.go +++ b/models/migrations/v1_19/v233_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 v1_19 //nolint diff --git a/models/migrations/v1_6/v70.go b/models/migrations/v1_6/v70.go index 880bcb8af74..166772ad700 100644 --- a/models/migrations/v1_6/v70.go +++ b/models/migrations/v1_6/v70.go @@ -1,6 +1,5 @@ // Copyright 2018 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 v1_6 // nolint diff --git a/models/migrations/v1_6/v71.go b/models/migrations/v1_6/v71.go index c021a24abcc..57586c5c326 100644 --- a/models/migrations/v1_6/v71.go +++ b/models/migrations/v1_6/v71.go @@ -1,6 +1,5 @@ // Copyright 2018 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 v1_6 // nolint diff --git a/models/migrations/v1_6/v72.go b/models/migrations/v1_6/v72.go index 275512c4d00..b7428150bef 100644 --- a/models/migrations/v1_6/v72.go +++ b/models/migrations/v1_6/v72.go @@ -1,6 +1,5 @@ // Copyright 2018 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 v1_6 // nolint diff --git a/models/migrations/v1_7/v73.go b/models/migrations/v1_7/v73.go index aa2cbba88af..0c5775c2b2d 100644 --- a/models/migrations/v1_7/v73.go +++ b/models/migrations/v1_7/v73.go @@ -1,6 +1,5 @@ // Copyright 2018 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 v1_7 // nolint diff --git a/models/migrations/v1_7/v74.go b/models/migrations/v1_7/v74.go index 3694d68d310..aeca5448e10 100644 --- a/models/migrations/v1_7/v74.go +++ b/models/migrations/v1_7/v74.go @@ -1,6 +1,5 @@ // Copyright 2018 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 v1_7 // nolint diff --git a/models/migrations/v1_7/v75.go b/models/migrations/v1_7/v75.go index df266673511..bad8010090a 100644 --- a/models/migrations/v1_7/v75.go +++ b/models/migrations/v1_7/v75.go @@ -1,6 +1,5 @@ // Copyright 2018 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 v1_7 // nolint diff --git a/models/migrations/v1_8/v76.go b/models/migrations/v1_8/v76.go index ef60eb72605..45126893860 100644 --- a/models/migrations/v1_8/v76.go +++ b/models/migrations/v1_8/v76.go @@ -1,6 +1,5 @@ // Copyright 2018 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 v1_8 // nolint diff --git a/models/migrations/v1_8/v77.go b/models/migrations/v1_8/v77.go index 7d5dccc9b63..f92dfed882d 100644 --- a/models/migrations/v1_8/v77.go +++ b/models/migrations/v1_8/v77.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 v1_8 // nolint diff --git a/models/migrations/v1_8/v78.go b/models/migrations/v1_8/v78.go index d7943fb0aa4..8bc0221412e 100644 --- a/models/migrations/v1_8/v78.go +++ b/models/migrations/v1_8/v78.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 v1_8 // nolint diff --git a/models/migrations/v1_8/v79.go b/models/migrations/v1_8/v79.go index 6a867f50552..9cebca18537 100644 --- a/models/migrations/v1_8/v79.go +++ b/models/migrations/v1_8/v79.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 v1_8 // nolint diff --git a/models/migrations/v1_8/v80.go b/models/migrations/v1_8/v80.go index 2e1b0631e1d..ec9726d8892 100644 --- a/models/migrations/v1_8/v80.go +++ b/models/migrations/v1_8/v80.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 v1_8 // nolint diff --git a/models/migrations/v1_8/v81.go b/models/migrations/v1_8/v81.go index b06f879ef54..ff050386b43 100644 --- a/models/migrations/v1_8/v81.go +++ b/models/migrations/v1_8/v81.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 v1_8 // nolint diff --git a/models/migrations/v1_9/v82.go b/models/migrations/v1_9/v82.go index 82cb8b3ce1a..b0dffe6035f 100644 --- a/models/migrations/v1_9/v82.go +++ b/models/migrations/v1_9/v82.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 v1_9 // nolint diff --git a/models/migrations/v1_9/v83.go b/models/migrations/v1_9/v83.go index 31cce268eb8..afe504e9c5f 100644 --- a/models/migrations/v1_9/v83.go +++ b/models/migrations/v1_9/v83.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 v1_9 //nolint diff --git a/models/migrations/v1_9/v84.go b/models/migrations/v1_9/v84.go index 8aa7fbc07a9..13fc238d480 100644 --- a/models/migrations/v1_9/v84.go +++ b/models/migrations/v1_9/v84.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 v1_9 //nolint diff --git a/models/migrations/v1_9/v85.go b/models/migrations/v1_9/v85.go index 0cd32c3829d..6cf7faaad63 100644 --- a/models/migrations/v1_9/v85.go +++ b/models/migrations/v1_9/v85.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 v1_9 //nolint diff --git a/models/migrations/v1_9/v86.go b/models/migrations/v1_9/v86.go index 416e4fad93c..a2a2c042c0b 100644 --- a/models/migrations/v1_9/v86.go +++ b/models/migrations/v1_9/v86.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 v1_9 //nolint diff --git a/models/migrations/v1_9/v87.go b/models/migrations/v1_9/v87.go index 97c8f621c68..b373a40bc07 100644 --- a/models/migrations/v1_9/v87.go +++ b/models/migrations/v1_9/v87.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 v1_9 //nolint diff --git a/models/org.go b/models/org.go index b56c80522b8..1c9383fe8d2 100644 --- a/models/org.go +++ b/models/org.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 models diff --git a/models/org_team.go b/models/org_team.go index 792829563ac..62376192ab5 100644 --- a/models/org_team.go +++ b/models/org_team.go @@ -1,7 +1,6 @@ // Copyright 2018 The Gitea Authors. All rights reserved. // Copyright 2016 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 models diff --git a/models/org_team_test.go b/models/org_team_test.go index 3b1fabf1c34..446084c8152 100644 --- a/models/org_team_test.go +++ b/models/org_team_test.go @@ -1,6 +1,5 @@ // 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 models diff --git a/models/org_test.go b/models/org_test.go index 23b417119ed..54e8f084659 100644 --- a/models/org_test.go +++ b/models/org_test.go @@ -1,6 +1,5 @@ // 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 models diff --git a/models/organization/main_test.go b/models/organization/main_test.go index 376552cb22e..7ccf8c8efde 100644 --- a/models/organization/main_test.go +++ b/models/organization/main_test.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 organization_test diff --git a/models/organization/mini_org.go b/models/organization/mini_org.go index 36cf948e654..b1627b5e6c6 100644 --- a/models/organization/mini_org.go +++ b/models/organization/mini_org.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 organization diff --git a/models/organization/org.go b/models/organization/org.go index 6bb982b2814..ef7b834ad35 100644 --- a/models/organization/org.go +++ b/models/organization/org.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 organization diff --git a/models/organization/org_repo.go b/models/organization/org_repo.go index 364374f71b3..99638916b0b 100644 --- a/models/organization/org_repo.go +++ b/models/organization/org_repo.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 organization diff --git a/models/organization/org_test.go b/models/organization/org_test.go index 0fba6e25925..2f821e3a4c1 100644 --- a/models/organization/org_test.go +++ b/models/organization/org_test.go @@ -1,6 +1,5 @@ // 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 organization_test diff --git a/models/organization/org_user.go b/models/organization/org_user.go index 7a5d17a75a7..d514e401ba6 100644 --- a/models/organization/org_user.go +++ b/models/organization/org_user.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 organization diff --git a/models/organization/org_user_test.go b/models/organization/org_user_test.go index aed3ea23cf8..1da17631e36 100644 --- a/models/organization/org_user_test.go +++ b/models/organization/org_user_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 organization_test diff --git a/models/organization/team.go b/models/organization/team.go index aa9b24b57f4..f6d71845df2 100644 --- a/models/organization/team.go +++ b/models/organization/team.go @@ -1,7 +1,6 @@ // Copyright 2018 The Gitea Authors. All rights reserved. // Copyright 2016 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 organization diff --git a/models/organization/team_invite.go b/models/organization/team_invite.go index 4504a2e9fef..17f6c596104 100644 --- a/models/organization/team_invite.go +++ b/models/organization/team_invite.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 organization diff --git a/models/organization/team_invite_test.go b/models/organization/team_invite_test.go index e0596ec28da..cd6e1fe2eff 100644 --- a/models/organization/team_invite_test.go +++ b/models/organization/team_invite_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 organization_test diff --git a/models/organization/team_repo.go b/models/organization/team_repo.go index 3ac4fa926b8..e6b50ecff7e 100644 --- a/models/organization/team_repo.go +++ b/models/organization/team_repo.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 organization diff --git a/models/organization/team_test.go b/models/organization/team_test.go index c8d58a0eb7a..d324c6d0da1 100644 --- a/models/organization/team_test.go +++ b/models/organization/team_test.go @@ -1,6 +1,5 @@ // 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 organization_test diff --git a/models/organization/team_unit.go b/models/organization/team_unit.go index 4ad1ae95dc9..7668ca74835 100644 --- a/models/organization/team_unit.go +++ b/models/organization/team_unit.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 organization diff --git a/models/organization/team_user.go b/models/organization/team_user.go index 80f4d00e3dd..7a024f1c6d9 100644 --- a/models/organization/team_user.go +++ b/models/organization/team_user.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 organization diff --git a/models/packages/conan/references.go b/models/packages/conan/references.go index e47e689af72..06e828e8fa4 100644 --- a/models/packages/conan/references.go +++ b/models/packages/conan/references.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 conan diff --git a/models/packages/conan/search.go b/models/packages/conan/search.go index 39a90004597..ab0bff59689 100644 --- a/models/packages/conan/search.go +++ b/models/packages/conan/search.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 conan diff --git a/models/packages/container/const.go b/models/packages/container/const.go index 9d3ed64a6e6..0dfbda051db 100644 --- a/models/packages/container/const.go +++ b/models/packages/container/const.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 container diff --git a/models/packages/container/search.go b/models/packages/container/search.go index e4a5a538488..dfd5e244ba2 100644 --- a/models/packages/container/search.go +++ b/models/packages/container/search.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 container diff --git a/models/packages/descriptor.go b/models/packages/descriptor.go index 357574a706c..7ffed2d8aad 100644 --- a/models/packages/descriptor.go +++ b/models/packages/descriptor.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 packages diff --git a/models/packages/package.go b/models/packages/package.go index cea04a09579..5c4837d98b0 100644 --- a/models/packages/package.go +++ b/models/packages/package.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 packages diff --git a/models/packages/package_blob.go b/models/packages/package_blob.go index fcb71a96ec6..36ad745312d 100644 --- a/models/packages/package_blob.go +++ b/models/packages/package_blob.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 packages diff --git a/models/packages/package_blob_upload.go b/models/packages/package_blob_upload.go index 635068f1d86..64d1f9d473d 100644 --- a/models/packages/package_blob_upload.go +++ b/models/packages/package_blob_upload.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 packages diff --git a/models/packages/package_file.go b/models/packages/package_file.go index 9f6284af076..6d0fd185a04 100644 --- a/models/packages/package_file.go +++ b/models/packages/package_file.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 packages diff --git a/models/packages/package_property.go b/models/packages/package_property.go index fc107138019..1b7f253d566 100644 --- a/models/packages/package_property.go +++ b/models/packages/package_property.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 packages diff --git a/models/packages/package_test.go b/models/packages/package_test.go index 915ef15f91f..735688a731e 100644 --- a/models/packages/package_test.go +++ b/models/packages/package_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 packages_test diff --git a/models/packages/package_version.go b/models/packages/package_version.go index 6ee362502f6..a2a8a45d8f3 100644 --- a/models/packages/package_version.go +++ b/models/packages/package_version.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 packages diff --git a/models/perm/access/access.go b/models/perm/access/access.go index 7344e114a64..55d3f78e01d 100644 --- a/models/perm/access/access.go +++ b/models/perm/access/access.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 access diff --git a/models/perm/access/access_test.go b/models/perm/access/access_test.go index dc707b971be..bd828a1e9d4 100644 --- a/models/perm/access/access_test.go +++ b/models/perm/access/access_test.go @@ -1,6 +1,5 @@ // 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 access_test diff --git a/models/perm/access/main_test.go b/models/perm/access/main_test.go index eb0abb74d1b..837a9db437a 100644 --- a/models/perm/access/main_test.go +++ b/models/perm/access/main_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 access_test diff --git a/models/perm/access/repo_permission.go b/models/perm/access/repo_permission.go index 3b709a3e855..58c4299d165 100644 --- a/models/perm/access/repo_permission.go +++ b/models/perm/access/repo_permission.go @@ -1,6 +1,5 @@ // Copyright 2018 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 access diff --git a/models/perm/access_mode.go b/models/perm/access_mode.go index dfa7f7b7524..c482e296bcc 100644 --- a/models/perm/access_mode.go +++ b/models/perm/access_mode.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 perm diff --git a/models/project/board.go b/models/project/board.go index 8428fca7220..d8468f0cb55 100644 --- a/models/project/board.go +++ b/models/project/board.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 project diff --git a/models/project/issue.go b/models/project/issue.go index da48d4731e6..3269197d6cd 100644 --- a/models/project/issue.go +++ b/models/project/issue.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 project diff --git a/models/project/main_test.go b/models/project/main_test.go index 2e97b3a5ef3..816cbeb94a0 100644 --- a/models/project/main_test.go +++ b/models/project/main_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 project diff --git a/models/project/project.go b/models/project/project.go index 5dee241dcf3..0d655e333eb 100644 --- a/models/project/project.go +++ b/models/project/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 project diff --git a/models/project/project_test.go b/models/project/project_test.go index f33fb3351af..4fde0fc7ce3 100644 --- a/models/project/project_test.go +++ b/models/project/project_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 project diff --git a/models/pull/automerge.go b/models/pull/automerge.go index 16ab5af0939..d7e04eafa6c 100644 --- a/models/pull/automerge.go +++ b/models/pull/automerge.go @@ -1,6 +1,5 @@ // Copyright 2022 Gitea. 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 pull diff --git a/models/pull/review_state.go b/models/pull/review_state.go index 1c465bf7667..1a2b1e165f7 100644 --- a/models/pull/review_state.go +++ b/models/pull/review_state.go @@ -1,6 +1,6 @@ // 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 pull import ( diff --git a/models/repo.go b/models/repo.go index 2510f0e6bca..ca4f60a2f33 100644 --- a/models/repo.go +++ b/models/repo.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 models diff --git a/models/repo/archiver.go b/models/repo/archiver.go index 84358ce0dc6..11ecaff34c6 100644 --- a/models/repo/archiver.go +++ b/models/repo/archiver.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 repo diff --git a/models/repo/attachment.go b/models/repo/attachment.go index 428f370a0ba..8fbf79a7a05 100644 --- a/models/repo/attachment.go +++ b/models/repo/attachment.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/models/repo/attachment_test.go b/models/repo/attachment_test.go index d7c2f529dbc..21fba227a5c 100644 --- a/models/repo/attachment_test.go +++ b/models/repo/attachment_test.go @@ -1,6 +1,5 @@ // 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 repo_test diff --git a/models/repo/avatar.go b/models/repo/avatar.go index 84b9f5ac21e..9ec01bc04b2 100644 --- a/models/repo/avatar.go +++ b/models/repo/avatar.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 repo diff --git a/models/repo/collaboration.go b/models/repo/collaboration.go index c558259e468..04d92c415fe 100644 --- a/models/repo/collaboration.go +++ b/models/repo/collaboration.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 repo diff --git a/models/repo/collaboration_test.go b/models/repo/collaboration_test.go index cbf46dd286d..d240e9cbef0 100644 --- a/models/repo/collaboration_test.go +++ b/models/repo/collaboration_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 repo_test diff --git a/models/repo/fork.go b/models/repo/fork.go index b54c61c425f..eafbab0fb17 100644 --- a/models/repo/fork.go +++ b/models/repo/fork.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 repo diff --git a/models/repo/fork_test.go b/models/repo/fork_test.go index 9e08d8136e2..d02bf91dd94 100644 --- a/models/repo/fork_test.go +++ b/models/repo/fork_test.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 repo_test diff --git a/models/repo/git.go b/models/repo/git.go index 509020565a1..7ae88058dc8 100644 --- a/models/repo/git.go +++ b/models/repo/git.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 repo diff --git a/models/repo/issue.go b/models/repo/issue.go index 9f0fa3bad9c..0d27cc041e6 100644 --- a/models/repo/issue.go +++ b/models/repo/issue.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/models/repo/language_stats.go b/models/repo/language_stats.go index 5c4cecdca1f..f8f5dd041fa 100644 --- a/models/repo/language_stats.go +++ b/models/repo/language_stats.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 repo diff --git a/models/repo/main_test.go b/models/repo/main_test.go index f6d704ca658..bb9be54b9c5 100644 --- a/models/repo/main_test.go +++ b/models/repo/main_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 repo_test diff --git a/models/repo/mirror.go b/models/repo/mirror.go index 297ffd594a7..63b26b5d0cd 100644 --- a/models/repo/mirror.go +++ b/models/repo/mirror.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2018 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 repo diff --git a/models/repo/pushmirror.go b/models/repo/pushmirror.go index fa876ee560a..55fde8b838e 100644 --- a/models/repo/pushmirror.go +++ b/models/repo/pushmirror.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 repo diff --git a/models/repo/pushmirror_test.go b/models/repo/pushmirror_test.go index 5087e300957..2b3c5be292c 100644 --- a/models/repo/pushmirror_test.go +++ b/models/repo/pushmirror_test.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 repo_test diff --git a/models/repo/redirect.go b/models/repo/redirect.go index f28220c2afe..92a011a4535 100644 --- a/models/repo/redirect.go +++ b/models/repo/redirect.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/models/repo/redirect_test.go b/models/repo/redirect_test.go index 90114667e59..8255704d594 100644 --- a/models/repo/redirect_test.go +++ b/models/repo/redirect_test.go @@ -1,6 +1,5 @@ // 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 repo_test diff --git a/models/repo/release.go b/models/repo/release.go index a92e4bb6e55..da6235988a7 100644 --- a/models/repo/release.go +++ b/models/repo/release.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 repo diff --git a/models/repo/repo.go b/models/repo/repo.go index a3dac8383f7..f58b7de6edf 100644 --- a/models/repo/repo.go +++ b/models/repo/repo.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 repo diff --git a/models/repo/repo_indexer.go b/models/repo/repo_indexer.go index 67ba3382dc6..9667c562443 100644 --- a/models/repo/repo_indexer.go +++ b/models/repo/repo_indexer.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/models/repo/repo_list.go b/models/repo/repo_list.go index abfa73abb90..6d9dd9ec65a 100644 --- a/models/repo/repo_list.go +++ b/models/repo/repo_list.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 repo diff --git a/models/repo/repo_list_test.go b/models/repo/repo_list_test.go index 926ed07e9e9..bfbceb7e2ec 100644 --- a/models/repo/repo_list_test.go +++ b/models/repo/repo_list_test.go @@ -1,6 +1,5 @@ // 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 repo_test diff --git a/models/repo/repo_test.go b/models/repo/repo_test.go index 617ec12798d..081221d1dfe 100644 --- a/models/repo/repo_test.go +++ b/models/repo/repo_test.go @@ -1,6 +1,5 @@ // 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 repo_test diff --git a/models/repo/repo_unit.go b/models/repo/repo_unit.go index c21c1e7a79e..e20d03e2c5a 100644 --- a/models/repo/repo_unit.go +++ b/models/repo/repo_unit.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/models/repo/star.go b/models/repo/star.go index c7459b36559..b3d3d795f8f 100644 --- a/models/repo/star.go +++ b/models/repo/star.go @@ -1,6 +1,5 @@ // Copyright 2016 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 repo diff --git a/models/repo/star_test.go b/models/repo/star_test.go index 1b53e17d273..7221a6c8ebb 100644 --- a/models/repo/star_test.go +++ b/models/repo/star_test.go @@ -1,6 +1,5 @@ // 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 repo_test diff --git a/models/repo/topic.go b/models/repo/topic.go index db41c85a33c..05f50cfe463 100644 --- a/models/repo/topic.go +++ b/models/repo/topic.go @@ -1,6 +1,5 @@ // Copyright 2018 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 repo diff --git a/models/repo/topic_test.go b/models/repo/topic_test.go index 8187addb81f..8a8728168d4 100644 --- a/models/repo/topic_test.go +++ b/models/repo/topic_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 repo_test diff --git a/models/repo/update.go b/models/repo/update.go index 39c89a7c7c1..3aef280ff80 100644 --- a/models/repo/update.go +++ b/models/repo/update.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 repo diff --git a/models/repo/upload.go b/models/repo/upload.go index 13b6055701f..3b1b97c6d61 100644 --- a/models/repo/upload.go +++ b/models/repo/upload.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // 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 repo diff --git a/models/repo/user_repo.go b/models/repo/user_repo.go index 9ca367f556b..0d5b8579e01 100644 --- a/models/repo/user_repo.go +++ b/models/repo/user_repo.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 repo diff --git a/models/repo/user_repo_test.go b/models/repo/user_repo_test.go index 64091459209..7816b0262a5 100644 --- a/models/repo/user_repo_test.go +++ b/models/repo/user_repo_test.go @@ -1,6 +1,5 @@ // 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 repo_test diff --git a/models/repo/watch.go b/models/repo/watch.go index ecc25ee32b5..00f313ca7cc 100644 --- a/models/repo/watch.go +++ b/models/repo/watch.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/models/repo/watch_test.go b/models/repo/watch_test.go index 18a2d5d5fdf..8b8c6d6250c 100644 --- a/models/repo/watch_test.go +++ b/models/repo/watch_test.go @@ -1,6 +1,5 @@ // 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 repo_test diff --git a/models/repo/wiki.go b/models/repo/wiki.go index c8886eaa345..b378666a206 100644 --- a/models/repo/wiki.go +++ b/models/repo/wiki.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 repo diff --git a/models/repo/wiki_test.go b/models/repo/wiki_test.go index 86317362762..629986f741a 100644 --- a/models/repo/wiki_test.go +++ b/models/repo/wiki_test.go @@ -1,6 +1,5 @@ // 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 repo_test diff --git a/models/repo_collaboration.go b/models/repo_collaboration.go index 684d0e63a02..2c04cb442b2 100644 --- a/models/repo_collaboration.go +++ b/models/repo_collaboration.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// 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 models diff --git a/models/repo_collaboration_test.go b/models/repo_collaboration_test.go index 77034b65d22..94c5ab52915 100644 --- a/models/repo_collaboration_test.go +++ b/models/repo_collaboration_test.go @@ -1,6 +1,5 @@ // 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 models diff --git a/models/repo_test.go b/models/repo_test.go index a8358e307d8..da66b16136a 100644 --- a/models/repo_test.go +++ b/models/repo_test.go @@ -1,6 +1,5 @@ // 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 models diff --git a/models/repo_transfer.go b/models/repo_transfer.go index 067ab4122f0..6f02ab45fe2 100644 --- a/models/repo_transfer.go +++ b/models/repo_transfer.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 models diff --git a/models/repo_transfer_test.go b/models/repo_transfer_test.go index 7904b04e98c..9720071a989 100644 --- a/models/repo_transfer_test.go +++ b/models/repo_transfer_test.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 models diff --git a/models/system/appstate.go b/models/system/appstate.go index bc18c5181df..73785376789 100644 --- a/models/system/appstate.go +++ b/models/system/appstate.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 system diff --git a/models/system/main_test.go b/models/system/main_test.go index a56c76aedcd..94e29064470 100644 --- a/models/system/main_test.go +++ b/models/system/main_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 system_test diff --git a/models/system/notice.go b/models/system/notice.go index 3276fa3ffba..e598abe2225 100644 --- a/models/system/notice.go +++ b/models/system/notice.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 system diff --git a/models/system/notice_test.go b/models/system/notice_test.go index 768bcca66cd..01eb9b57a51 100644 --- a/models/system/notice_test.go +++ b/models/system/notice_test.go @@ -1,6 +1,5 @@ // 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 system_test diff --git a/models/system/setting.go b/models/system/setting.go index 22119ee5e6f..dc6145b417e 100644 --- a/models/system/setting.go +++ b/models/system/setting.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 system diff --git a/models/system/setting_key.go b/models/system/setting_key.go index 14105b89d0d..ad083ed1ead 100644 --- a/models/system/setting_key.go +++ b/models/system/setting_key.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 system diff --git a/models/system/setting_test.go b/models/system/setting_test.go index d25fc05f31d..3ff5ba25208 100644 --- a/models/system/setting_test.go +++ b/models/system/setting_test.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 system_test diff --git a/models/unit/unit.go b/models/unit/unit.go index b83bd61831a..c4743dbdb40 100644 --- a/models/unit/unit.go +++ b/models/unit/unit.go @@ -1,6 +1,5 @@ // 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 unit diff --git a/models/unittest/consistency.go b/models/unittest/consistency.go index 46f889746aa..17ff75c089f 100644 --- a/models/unittest/consistency.go +++ b/models/unittest/consistency.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 unittest diff --git a/models/unittest/fixtures.go b/models/unittest/fixtures.go index e39acd766f9..9fba053825b 100644 --- a/models/unittest/fixtures.go +++ b/models/unittest/fixtures.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 unittest diff --git a/models/unittest/fscopy.go b/models/unittest/fscopy.go index ff815e729d4..631da49f2d5 100644 --- a/models/unittest/fscopy.go +++ b/models/unittest/fscopy.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 unittest diff --git a/models/unittest/reflection.go b/models/unittest/reflection.go index 68c312ac9e3..1b149b19fe0 100644 --- a/models/unittest/reflection.go +++ b/models/unittest/reflection.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 unittest diff --git a/models/unittest/testdb.go b/models/unittest/testdb.go index 2e6c25ae48f..87d9304618b 100644 --- a/models/unittest/testdb.go +++ b/models/unittest/testdb.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 unittest diff --git a/models/unittest/unit_tests.go b/models/unittest/unit_tests.go index c8673debed0..b2f19196c70 100644 --- a/models/unittest/unit_tests.go +++ b/models/unittest/unit_tests.go @@ -1,6 +1,5 @@ // Copyright 2016 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 unittest diff --git a/models/user.go b/models/user.go index 0fc28ff055a..715d0e3866d 100644 --- a/models/user.go +++ b/models/user.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 models diff --git a/models/user/avatar.go b/models/user/avatar.go index f5237667464..ce25139b5f7 100644 --- a/models/user/avatar.go +++ b/models/user/avatar.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 user diff --git a/models/user/badge.go b/models/user/badge.go index 5ff840cb8c3..948b0b10656 100644 --- a/models/user/badge.go +++ b/models/user/badge.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 user diff --git a/models/user/email_address.go b/models/user/email_address.go index b6d372f04d7..70394edb23f 100644 --- a/models/user/email_address.go +++ b/models/user/email_address.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // 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 user diff --git a/models/user/email_address_test.go b/models/user/email_address_test.go index b9acaa1113a..7e523a165df 100644 --- a/models/user/email_address_test.go +++ b/models/user/email_address_test.go @@ -1,6 +1,5 @@ // 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 user_test diff --git a/models/user/error.go b/models/user/error.go index 3fe4ee6657e..306b9ee9d9b 100644 --- a/models/user/error.go +++ b/models/user/error.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 user diff --git a/models/user/external_login_user.go b/models/user/external_login_user.go index 496717c57bc..f70f3effcc5 100644 --- a/models/user/external_login_user.go +++ b/models/user/external_login_user.go @@ -1,6 +1,5 @@ // 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 user diff --git a/models/user/follow.go b/models/user/follow.go index a02ebdb8c2d..7efecc26a78 100644 --- a/models/user/follow.go +++ b/models/user/follow.go @@ -1,6 +1,5 @@ // 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 user diff --git a/models/user/follow_test.go b/models/user/follow_test.go index ad2f7cf7429..fc408d5257c 100644 --- a/models/user/follow_test.go +++ b/models/user/follow_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 user_test diff --git a/models/user/list.go b/models/user/list.go index 6c43c961c8d..6b3b7bea9ad 100644 --- a/models/user/list.go +++ b/models/user/list.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 user diff --git a/models/user/main_test.go b/models/user/main_test.go index b2416a3e0a7..0d76aacd5f8 100644 --- a/models/user/main_test.go +++ b/models/user/main_test.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 user_test diff --git a/models/user/openid.go b/models/user/openid.go index f8e8a787e6e..19467050489 100644 --- a/models/user/openid.go +++ b/models/user/openid.go @@ -1,6 +1,5 @@ // 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 user diff --git a/models/user/openid_test.go b/models/user/openid_test.go index d20b72d19af..6f0eae55e73 100644 --- a/models/user/openid_test.go +++ b/models/user/openid_test.go @@ -1,6 +1,5 @@ // 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 user_test diff --git a/models/user/redirect.go b/models/user/redirect.go index af8d6439ad9..9d8903c0599 100644 --- a/models/user/redirect.go +++ b/models/user/redirect.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 user diff --git a/models/user/redirect_test.go b/models/user/redirect_test.go index a5b19d4f04a..3d2ea3aeec7 100644 --- a/models/user/redirect_test.go +++ b/models/user/redirect_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 user_test diff --git a/models/user/search.go b/models/user/search.go index fa4a021a473..622e47ccffc 100644 --- a/models/user/search.go +++ b/models/user/search.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 user diff --git a/models/user/setting.go b/models/user/setting.go index 41de499de97..a17483f9af7 100644 --- a/models/user/setting.go +++ b/models/user/setting.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 user diff --git a/models/user/setting_keys.go b/models/user/setting_keys.go index d48ac930527..10255735b31 100644 --- a/models/user/setting_keys.go +++ b/models/user/setting_keys.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 user diff --git a/models/user/setting_test.go b/models/user/setting_test.go index 5a772a8ce7c..d0d612d25da 100644 --- a/models/user/setting_test.go +++ b/models/user/setting_test.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 user_test diff --git a/models/user/user.go b/models/user/user.go index 1a71acb0b72..7e3ae388fb3 100644 --- a/models/user/user.go +++ b/models/user/user.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 user diff --git a/models/user/user_test.go b/models/user/user_test.go index 1cdfb5978c8..2ee4da0d67f 100644 --- a/models/user/user_test.go +++ b/models/user/user_test.go @@ -1,6 +1,5 @@ // 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 user_test diff --git a/models/user/user_update.go b/models/user/user_update.go index 9c9dc09bb23..66702e2a144 100644 --- a/models/user/user_update.go +++ b/models/user/user_update.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 user diff --git a/models/webhook/hooktask.go b/models/webhook/hooktask.go index 92d9e973833..2a37ff31d88 100644 --- a/models/webhook/hooktask.go +++ b/models/webhook/hooktask.go @@ -1,6 +1,5 @@ // 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 webhook diff --git a/models/webhook/main_test.go b/models/webhook/main_test.go index 39ef2da6a25..8df569a3ccf 100644 --- a/models/webhook/main_test.go +++ b/models/webhook/main_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 webhook diff --git a/models/webhook/webhook.go b/models/webhook/webhook.go index 1daf806c4e8..5defc67fd72 100644 --- a/models/webhook/webhook.go +++ b/models/webhook/webhook.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 webhook diff --git a/models/webhook/webhook_test.go b/models/webhook/webhook_test.go index 8c4838ebdc0..2bdafb61b69 100644 --- a/models/webhook/webhook_test.go +++ b/models/webhook/webhook_test.go @@ -1,6 +1,5 @@ // 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 webhook diff --git a/modules/activitypub/client.go b/modules/activitypub/client.go index 9bcef69de18..ed5c9990d65 100644 --- a/modules/activitypub/client.go +++ b/modules/activitypub/client.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 activitypub diff --git a/modules/activitypub/client_test.go b/modules/activitypub/client_test.go index 62068d53b3d..b5f978c4ddd 100644 --- a/modules/activitypub/client_test.go +++ b/modules/activitypub/client_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 activitypub diff --git a/modules/activitypub/keypair.go b/modules/activitypub/keypair.go index fe6aba9058a..299bdc43e33 100644 --- a/modules/activitypub/keypair.go +++ b/modules/activitypub/keypair.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 activitypub diff --git a/modules/activitypub/keypair_test.go b/modules/activitypub/keypair_test.go index defe498614f..888254c9dae 100644 --- a/modules/activitypub/keypair_test.go +++ b/modules/activitypub/keypair_test.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 activitypub diff --git a/modules/activitypub/main_test.go b/modules/activitypub/main_test.go index 7fa2b09265c..15399ca380e 100644 --- a/modules/activitypub/main_test.go +++ b/modules/activitypub/main_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 activitypub diff --git a/modules/activitypub/user_settings.go b/modules/activitypub/user_settings.go index d192b9cdb27..ec5fa59842f 100644 --- a/modules/activitypub/user_settings.go +++ b/modules/activitypub/user_settings.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 activitypub diff --git a/modules/activitypub/user_settings_test.go b/modules/activitypub/user_settings_test.go index beefde232f5..78ebf8e824e 100644 --- a/modules/activitypub/user_settings_test.go +++ b/modules/activitypub/user_settings_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 activitypub diff --git a/modules/analyze/code_langauge.go b/modules/analyze/code_langauge.go index baec2cebc53..74e7a06d061 100644 --- a/modules/analyze/code_langauge.go +++ b/modules/analyze/code_langauge.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 analyze diff --git a/modules/analyze/generated.go b/modules/analyze/generated.go index 0f14d285452..f608387bfe9 100644 --- a/modules/analyze/generated.go +++ b/modules/analyze/generated.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 analyze diff --git a/modules/analyze/vendor.go b/modules/analyze/vendor.go index 976a6ddc7bf..adcca923dd6 100644 --- a/modules/analyze/vendor.go +++ b/modules/analyze/vendor.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 analyze diff --git a/modules/analyze/vendor_test.go b/modules/analyze/vendor_test.go index 2784e49d346..aafd3c431b7 100644 --- a/modules/analyze/vendor_test.go +++ b/modules/analyze/vendor_test.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 analyze diff --git a/modules/auth/openid/discovery_cache.go b/modules/auth/openid/discovery_cache.go index 68cd7a8756d..3a8d119bdd1 100644 --- a/modules/auth/openid/discovery_cache.go +++ b/modules/auth/openid/discovery_cache.go @@ -1,6 +1,5 @@ // 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 openid diff --git a/modules/auth/openid/discovery_cache_test.go b/modules/auth/openid/discovery_cache_test.go index 28546f60318..5a7f450937a 100644 --- a/modules/auth/openid/discovery_cache_test.go +++ b/modules/auth/openid/discovery_cache_test.go @@ -1,6 +1,5 @@ // 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 openid diff --git a/modules/auth/openid/openid.go b/modules/auth/openid/openid.go index 8926fc6d7a2..249ce02335c 100644 --- a/modules/auth/openid/openid.go +++ b/modules/auth/openid/openid.go @@ -1,6 +1,5 @@ // 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 openid diff --git a/modules/auth/pam/pam.go b/modules/auth/pam/pam.go index 39e93d71620..cca1482b1d0 100644 --- a/modules/auth/pam/pam.go +++ b/modules/auth/pam/pam.go @@ -1,6 +1,5 @@ // 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 //go:build pam diff --git a/modules/auth/pam/pam_stub.go b/modules/auth/pam/pam_stub.go index 414d7631b5c..a48e89860ed 100644 --- a/modules/auth/pam/pam_stub.go +++ b/modules/auth/pam/pam_stub.go @@ -1,6 +1,5 @@ // 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 //go:build !pam diff --git a/modules/auth/pam/pam_test.go b/modules/auth/pam/pam_test.go index 08565d2f312..c277d59c415 100644 --- a/modules/auth/pam/pam_test.go +++ b/modules/auth/pam/pam_test.go @@ -1,8 +1,7 @@ //go:build pam // 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 pam diff --git a/modules/auth/webauthn/webauthn.go b/modules/auth/webauthn/webauthn.go index e39b6f46d6b..ec60a86100d 100644 --- a/modules/auth/webauthn/webauthn.go +++ b/modules/auth/webauthn/webauthn.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 webauthn diff --git a/modules/auth/webauthn/webauthn_test.go b/modules/auth/webauthn/webauthn_test.go index 71fb9d2757f..1beeb64cd6c 100644 --- a/modules/auth/webauthn/webauthn_test.go +++ b/modules/auth/webauthn/webauthn_test.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 webauthn diff --git a/modules/avatar/avatar.go b/modules/avatar/avatar.go index 2de77de0091..9ee926b059b 100644 --- a/modules/avatar/avatar.go +++ b/modules/avatar/avatar.go @@ -1,6 +1,5 @@ // 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 avatar diff --git a/modules/avatar/avatar_test.go b/modules/avatar/avatar_test.go index a2acc544389..5ef4ed379be 100644 --- a/modules/avatar/avatar_test.go +++ b/modules/avatar/avatar_test.go @@ -1,6 +1,5 @@ // Copyright 2016 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 avatar diff --git a/modules/avatar/identicon/block.go b/modules/avatar/identicon/block.go index 270f05e1b0d..cb1803a231a 100644 --- a/modules/avatar/identicon/block.go +++ b/modules/avatar/identicon/block.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 // Copied and modified from https://github.com/issue9/identicon/ (MIT License) diff --git a/modules/avatar/identicon/colors.go b/modules/avatar/identicon/colors.go index a8d7090369e..09a98bd0e9e 100644 --- a/modules/avatar/identicon/colors.go +++ b/modules/avatar/identicon/colors.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 identicon diff --git a/modules/avatar/identicon/identicon.go b/modules/avatar/identicon/identicon.go index cc7e2a791d0..63926d5f190 100644 --- a/modules/avatar/identicon/identicon.go +++ b/modules/avatar/identicon/identicon.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 // Copied and modified from https://github.com/issue9/identicon/ (MIT License) // Generate pseudo-random avatars by IP, E-mail, etc. diff --git a/modules/avatar/identicon/identicon_test.go b/modules/avatar/identicon/identicon_test.go index 44635fbb3bd..23bcc73e2e6 100644 --- a/modules/avatar/identicon/identicon_test.go +++ b/modules/avatar/identicon/identicon_test.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 //go:build test_avatar_identicon diff --git a/modules/avatar/identicon/polygon.go b/modules/avatar/identicon/polygon.go index 88440633c27..ecfc179a5c4 100644 --- a/modules/avatar/identicon/polygon.go +++ b/modules/avatar/identicon/polygon.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 // Copied and modified from https://github.com/issue9/identicon/ (MIT License) diff --git a/modules/base/base.go b/modules/base/base.go index 026f68f646c..dddce202daf 100644 --- a/modules/base/base.go +++ b/modules/base/base.go @@ -1,6 +1,5 @@ // 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 base diff --git a/modules/base/natural_sort.go b/modules/base/natural_sort.go index 46cdd529325..e920177f894 100644 --- a/modules/base/natural_sort.go +++ b/modules/base/natural_sort.go @@ -1,6 +1,5 @@ // 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 base diff --git a/modules/base/natural_sort_test.go b/modules/base/natural_sort_test.go index 2faa5acf382..91e864ad2af 100644 --- a/modules/base/natural_sort_test.go +++ b/modules/base/natural_sort_test.go @@ -1,6 +1,5 @@ // 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 base diff --git a/modules/base/tool.go b/modules/base/tool.go index df0947ec619..994e58ac3cd 100644 --- a/modules/base/tool.go +++ b/modules/base/tool.go @@ -1,6 +1,5 @@ // 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 base diff --git a/modules/base/tool_test.go b/modules/base/tool_test.go index 87de898e0b8..81f4b464e6d 100644 --- a/modules/base/tool_test.go +++ b/modules/base/tool_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 base diff --git a/modules/cache/cache.go b/modules/cache/cache.go index d98b0a0cec3..2e7d5bb603d 100644 --- a/modules/cache/cache.go +++ b/modules/cache/cache.go @@ -1,6 +1,5 @@ // 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 cache diff --git a/modules/cache/cache_redis.go b/modules/cache/cache_redis.go index 7bb71f08ce7..8e056ff2ec5 100644 --- a/modules/cache/cache_redis.go +++ b/modules/cache/cache_redis.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 cache diff --git a/modules/cache/cache_test.go b/modules/cache/cache_test.go index f418f77e46e..1c8f7d55ba8 100644 --- a/modules/cache/cache_test.go +++ b/modules/cache/cache_test.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 cache diff --git a/modules/cache/cache_twoqueue.go b/modules/cache/cache_twoqueue.go index 9c26b011b67..2e2efd00f24 100644 --- a/modules/cache/cache_twoqueue.go +++ b/modules/cache/cache_twoqueue.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 cache diff --git a/modules/charset/ambiguous.go b/modules/charset/ambiguous.go index 9dab3b0951b..c5b0c2c54d2 100644 --- a/modules/charset/ambiguous.go +++ b/modules/charset/ambiguous.go @@ -1,7 +1,6 @@ // This file is generated by modules/charset/ambiguous/generate.go DO NOT EDIT // 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 charset diff --git a/modules/charset/ambiguous/generate.go b/modules/charset/ambiguous/generate.go index 7dd2821aae2..b0c25310082 100644 --- a/modules/charset/ambiguous/generate.go +++ b/modules/charset/ambiguous/generate.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 main @@ -135,8 +134,8 @@ func runTemplate(t *template.Template, filename string, data interface{}) error var generatorTemplate = template.Must(template.New("ambiguousTemplate").Parse(`// This file is generated by modules/charset/ambiguous/generate.go DO NOT EDIT // 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 charset diff --git a/modules/charset/ambiguous_gen.go b/modules/charset/ambiguous_gen.go index cc270affac5..c88ffd5aa5c 100644 --- a/modules/charset/ambiguous_gen.go +++ b/modules/charset/ambiguous_gen.go @@ -1,7 +1,6 @@ // This file is generated by modules/charset/ambiguous/generate.go DO NOT EDIT // 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 charset diff --git a/modules/charset/ambiguous_gen_test.go b/modules/charset/ambiguous_gen_test.go index bd64e1c5b1c..221c27d0e13 100644 --- a/modules/charset/ambiguous_gen_test.go +++ b/modules/charset/ambiguous_gen_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 charset diff --git a/modules/charset/breakwriter.go b/modules/charset/breakwriter.go index 619826ff21b..a87e8464666 100644 --- a/modules/charset/breakwriter.go +++ b/modules/charset/breakwriter.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 charset diff --git a/modules/charset/breakwriter_test.go b/modules/charset/breakwriter_test.go index 6bbed42ea54..5eeeedc4e29 100644 --- a/modules/charset/breakwriter_test.go +++ b/modules/charset/breakwriter_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 charset diff --git a/modules/charset/charset.go b/modules/charset/charset.go index a1210d2f05d..51152142a58 100644 --- a/modules/charset/charset.go +++ b/modules/charset/charset.go @@ -1,6 +1,5 @@ // 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 charset diff --git a/modules/charset/charset_test.go b/modules/charset/charset_test.go index 6dd13c039dc..fc56799b473 100644 --- a/modules/charset/charset_test.go +++ b/modules/charset/charset_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 charset diff --git a/modules/charset/escape.go b/modules/charset/escape.go index b264a569ff5..ce2eb1446db 100644 --- a/modules/charset/escape.go +++ b/modules/charset/escape.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 //go:generate go run invisible/generate.go -v -o ./invisible_gen.go diff --git a/modules/charset/escape_status.go b/modules/charset/escape_status.go index 7ff0ef112bb..37b6ad86d49 100644 --- a/modules/charset/escape_status.go +++ b/modules/charset/escape_status.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 charset diff --git a/modules/charset/escape_stream.go b/modules/charset/escape_stream.go index e5f303d26f6..d29e393ab4d 100644 --- a/modules/charset/escape_stream.go +++ b/modules/charset/escape_stream.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 charset diff --git a/modules/charset/escape_test.go b/modules/charset/escape_test.go index a7232a4658a..abe767f4a5c 100644 --- a/modules/charset/escape_test.go +++ b/modules/charset/escape_test.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 charset diff --git a/modules/charset/htmlstream.go b/modules/charset/htmlstream.go index b354ce6a48a..61f29120a65 100644 --- a/modules/charset/htmlstream.go +++ b/modules/charset/htmlstream.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 charset diff --git a/modules/charset/invisible/generate.go b/modules/charset/invisible/generate.go index 39eddd58dd5..9dfc2533335 100644 --- a/modules/charset/invisible/generate.go +++ b/modules/charset/invisible/generate.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 main @@ -88,8 +87,8 @@ func runTemplate(t *template.Template, filename string, data interface{}) error var generatorTemplate = template.Must(template.New("invisibleTemplate").Parse(`// This file is generated by modules/charset/invisible/generate.go DO NOT EDIT // 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 charset diff --git a/modules/charset/invisible_gen.go b/modules/charset/invisible_gen.go index b3bfebe0c0e..812f0e34b3a 100644 --- a/modules/charset/invisible_gen.go +++ b/modules/charset/invisible_gen.go @@ -1,7 +1,6 @@ // This file is generated by modules/charset/invisible/generate.go DO NOT EDIT // 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 charset diff --git a/modules/container/set.go b/modules/container/set.go index 4b4c74525d1..15779983fd1 100644 --- a/modules/container/set.go +++ b/modules/container/set.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 container diff --git a/modules/container/set_test.go b/modules/container/set_test.go index 6654763e56f..1502236034a 100644 --- a/modules/container/set_test.go +++ b/modules/container/set_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 container diff --git a/modules/context/access_log.go b/modules/context/access_log.go index 1a10c4763a8..05c0f86218c 100644 --- a/modules/context/access_log.go +++ b/modules/context/access_log.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 context diff --git a/modules/context/api.go b/modules/context/api.go index b9d130e2a8a..f49997a7875 100644 --- a/modules/context/api.go +++ b/modules/context/api.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // 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 context diff --git a/modules/context/api_org.go b/modules/context/api_org.go index 2231677d422..dad02b17190 100644 --- a/modules/context/api_org.go +++ b/modules/context/api_org.go @@ -1,6 +1,5 @@ // Copyright 2016 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 context diff --git a/modules/context/api_test.go b/modules/context/api_test.go index 323fdbd2cc9..911a49949e0 100644 --- a/modules/context/api_test.go +++ b/modules/context/api_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 context diff --git a/modules/context/auth.go b/modules/context/auth.go index e6d882eb5b3..7cc29debbd0 100644 --- a/modules/context/auth.go +++ b/modules/context/auth.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 context diff --git a/modules/context/captcha.go b/modules/context/captcha.go index 0bd003da6cb..735613504ca 100644 --- a/modules/context/captcha.go +++ b/modules/context/captcha.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 context diff --git a/modules/context/context.go b/modules/context/context.go index 47368bb2805..0d632b67c05 100644 --- a/modules/context/context.go +++ b/modules/context/context.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 context diff --git a/modules/context/form.go b/modules/context/form.go index 4f48d746b95..f9c4ab6a984 100644 --- a/modules/context/form.go +++ b/modules/context/form.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 context diff --git a/modules/context/org.go b/modules/context/org.go index 89260b86544..39df29a8607 100644 --- a/modules/context/org.go +++ b/modules/context/org.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// 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 context diff --git a/modules/context/package.go b/modules/context/package.go index ce0f9a511b3..65a9d74b775 100644 --- a/modules/context/package.go +++ b/modules/context/package.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 context diff --git a/modules/context/pagination.go b/modules/context/pagination.go index 617b472f0d1..3effd88f109 100644 --- a/modules/context/pagination.go +++ b/modules/context/pagination.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 context diff --git a/modules/context/permission.go b/modules/context/permission.go index fd2263c75fd..8cb5d09eb94 100644 --- a/modules/context/permission.go +++ b/modules/context/permission.go @@ -1,6 +1,5 @@ // Copyright 2018 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 context diff --git a/modules/context/private.go b/modules/context/private.go index 9e7977b5d55..24f50fa4713 100644 --- a/modules/context/private.go +++ b/modules/context/private.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 context diff --git a/modules/context/repo.go b/modules/context/repo.go index 1a83c49e95a..57cf2fae5ac 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.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 context diff --git a/modules/context/response.go b/modules/context/response.go index 112964dbe14..40eb5c0d35d 100644 --- a/modules/context/response.go +++ b/modules/context/response.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 context diff --git a/modules/context/utils.go b/modules/context/utils.go index a72c8b47e65..1fa99953a23 100644 --- a/modules/context/utils.go +++ b/modules/context/utils.go @@ -1,6 +1,5 @@ // 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 context diff --git a/modules/convert/convert.go b/modules/convert/convert.go index 78eb62d42dc..107854e0133 100644 --- a/modules/convert/convert.go +++ b/modules/convert/convert.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2018 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 convert diff --git a/modules/convert/git_commit.go b/modules/convert/git_commit.go index 6015a737128..59842e40209 100644 --- a/modules/convert/git_commit.go +++ b/modules/convert/git_commit.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 convert diff --git a/modules/convert/git_commit_test.go b/modules/convert/git_commit_test.go index 0bba0e502e6..8c4ef88ebe0 100644 --- a/modules/convert/git_commit_test.go +++ b/modules/convert/git_commit_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 convert diff --git a/modules/convert/issue.go b/modules/convert/issue.go index 7c11b2a89f8..ff3466cb3f6 100644 --- a/modules/convert/issue.go +++ b/modules/convert/issue.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 convert diff --git a/modules/convert/issue_comment.go b/modules/convert/issue_comment.go index c33cf5c1116..81cd1ac245e 100644 --- a/modules/convert/issue_comment.go +++ b/modules/convert/issue_comment.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 convert diff --git a/modules/convert/issue_test.go b/modules/convert/issue_test.go index ec672abad27..4d780f3f009 100644 --- a/modules/convert/issue_test.go +++ b/modules/convert/issue_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 convert diff --git a/modules/convert/main_test.go b/modules/convert/main_test.go index 84f16b9af38..4c8e57bf794 100644 --- a/modules/convert/main_test.go +++ b/modules/convert/main_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 convert diff --git a/modules/convert/mirror.go b/modules/convert/mirror.go index b2414f46774..1dcfc9b64dc 100644 --- a/modules/convert/mirror.go +++ b/modules/convert/mirror.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 convert diff --git a/modules/convert/notification.go b/modules/convert/notification.go index 55f782f8f67..49a1b148fb1 100644 --- a/modules/convert/notification.go +++ b/modules/convert/notification.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 convert diff --git a/modules/convert/package.go b/modules/convert/package.go index 9713cda48b8..900f1dd816b 100644 --- a/modules/convert/package.go +++ b/modules/convert/package.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 convert diff --git a/modules/convert/pull.go b/modules/convert/pull.go index ca9a4c39c5a..4291d737a4d 100644 --- a/modules/convert/pull.go +++ b/modules/convert/pull.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 convert diff --git a/modules/convert/pull_review.go b/modules/convert/pull_review.go index e8a543fea95..66c5018ee2a 100644 --- a/modules/convert/pull_review.go +++ b/modules/convert/pull_review.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 convert diff --git a/modules/convert/pull_test.go b/modules/convert/pull_test.go index a0a672d3a51..21d410cfcb5 100644 --- a/modules/convert/pull_test.go +++ b/modules/convert/pull_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 convert diff --git a/modules/convert/release.go b/modules/convert/release.go index 5fc95dab72b..95c6d03ab13 100644 --- a/modules/convert/release.go +++ b/modules/convert/release.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 convert diff --git a/modules/convert/repository.go b/modules/convert/repository.go index 09b84afa6c4..3c75f588fdf 100644 --- a/modules/convert/repository.go +++ b/modules/convert/repository.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 convert diff --git a/modules/convert/status.go b/modules/convert/status.go index 7ed28a9c109..5eb38ad063d 100644 --- a/modules/convert/status.go +++ b/modules/convert/status.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 convert diff --git a/modules/convert/user.go b/modules/convert/user.go index 093994856ca..6b90539fd98 100644 --- a/modules/convert/user.go +++ b/modules/convert/user.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 convert diff --git a/modules/convert/user_test.go b/modules/convert/user_test.go index 89d912e460c..c3ab4187b72 100644 --- a/modules/convert/user_test.go +++ b/modules/convert/user_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 convert diff --git a/modules/convert/utils.go b/modules/convert/utils.go index 52fbcf547f7..cdce60831c9 100644 --- a/modules/convert/utils.go +++ b/modules/convert/utils.go @@ -1,7 +1,6 @@ // Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2016 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 convert diff --git a/modules/convert/utils_test.go b/modules/convert/utils_test.go index e0ab15dfd83..d1ec5980cea 100644 --- a/modules/convert/utils_test.go +++ b/modules/convert/utils_test.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 convert diff --git a/modules/convert/wiki.go b/modules/convert/wiki.go index 1112da43f8a..20d76162c71 100644 --- a/modules/convert/wiki.go +++ b/modules/convert/wiki.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 convert diff --git a/modules/csv/csv.go b/modules/csv/csv.go index fe0c3509604..c5497befe70 100644 --- a/modules/csv/csv.go +++ b/modules/csv/csv.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 csv diff --git a/modules/csv/csv_test.go b/modules/csv/csv_test.go index 5a8e13c811f..c627597fa3c 100644 --- a/modules/csv/csv_test.go +++ b/modules/csv/csv_test.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 csv diff --git a/modules/doctor/authorizedkeys.go b/modules/doctor/authorizedkeys.go index b3e9699a020..e4d85c4a18d 100644 --- a/modules/doctor/authorizedkeys.go +++ b/modules/doctor/authorizedkeys.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 doctor diff --git a/modules/doctor/breaking.go b/modules/doctor/breaking.go index 474997acd85..77e3d4e8ef8 100644 --- a/modules/doctor/breaking.go +++ b/modules/doctor/breaking.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 doctor diff --git a/modules/doctor/checkOldArchives.go b/modules/doctor/checkOldArchives.go index cefb3817bf3..390dfb43aa8 100644 --- a/modules/doctor/checkOldArchives.go +++ b/modules/doctor/checkOldArchives.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 doctor diff --git a/modules/doctor/dbconsistency.go b/modules/doctor/dbconsistency.go index 602b2e523ed..bb560ac6a35 100644 --- a/modules/doctor/dbconsistency.go +++ b/modules/doctor/dbconsistency.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 doctor diff --git a/modules/doctor/dbversion.go b/modules/doctor/dbversion.go index 8afd9f44fd9..3ddca92fb34 100644 --- a/modules/doctor/dbversion.go +++ b/modules/doctor/dbversion.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 doctor diff --git a/modules/doctor/doctor.go b/modules/doctor/doctor.go index 5d14cef55c9..2025edc58dd 100644 --- a/modules/doctor/doctor.go +++ b/modules/doctor/doctor.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 doctor diff --git a/modules/doctor/fix16961.go b/modules/doctor/fix16961.go index d9f895739f2..ea14a9b2c41 100644 --- a/modules/doctor/fix16961.go +++ b/modules/doctor/fix16961.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 doctor diff --git a/modules/doctor/fix16961_test.go b/modules/doctor/fix16961_test.go index f5e5667c091..498ed9c8d53 100644 --- a/modules/doctor/fix16961_test.go +++ b/modules/doctor/fix16961_test.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 doctor diff --git a/modules/doctor/heads.go b/modules/doctor/heads.go index b1bfd50b202..41fca01d571 100644 --- a/modules/doctor/heads.go +++ b/modules/doctor/heads.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 doctor diff --git a/modules/doctor/mergebase.go b/modules/doctor/mergebase.go index 9f5e336461a..e79369e581c 100644 --- a/modules/doctor/mergebase.go +++ b/modules/doctor/mergebase.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 doctor diff --git a/modules/doctor/misc.go b/modules/doctor/misc.go index 6f0e066f54d..73df5139010 100644 --- a/modules/doctor/misc.go +++ b/modules/doctor/misc.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 doctor diff --git a/modules/doctor/paths.go b/modules/doctor/paths.go index 5a270454574..ad50078d3ea 100644 --- a/modules/doctor/paths.go +++ b/modules/doctor/paths.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 doctor diff --git a/modules/doctor/storage.go b/modules/doctor/storage.go index 8ae9168ea6e..aa987de4477 100644 --- a/modules/doctor/storage.go +++ b/modules/doctor/storage.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 doctor diff --git a/modules/doctor/usertype.go b/modules/doctor/usertype.go index 166e38bd247..550e536cbd8 100644 --- a/modules/doctor/usertype.go +++ b/modules/doctor/usertype.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 doctor diff --git a/modules/emoji/emoji.go b/modules/emoji/emoji.go index 89a86a7f3e6..3d4ef8599b7 100644 --- a/modules/emoji/emoji.go +++ b/modules/emoji/emoji.go @@ -1,7 +1,6 @@ // Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2015 Kenneth Shaw -// 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 emoji diff --git a/modules/emoji/emoji_data.go b/modules/emoji/emoji_data.go index 1e14d3de6bb..b73013ea1bd 100644 --- a/modules/emoji/emoji_data.go +++ b/modules/emoji/emoji_data.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 emoji diff --git a/modules/emoji/emoji_test.go b/modules/emoji/emoji_test.go index def252896fd..2526cd121e4 100644 --- a/modules/emoji/emoji_test.go +++ b/modules/emoji/emoji_test.go @@ -1,7 +1,6 @@ // Copyright 2020 The Gitea Authors. All rights reserved. // Copyright 2015 Kenneth Shaw -// 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 emoji diff --git a/modules/eventsource/event.go b/modules/eventsource/event.go index 281a1bb1357..d5d2f323afe 100644 --- a/modules/eventsource/event.go +++ b/modules/eventsource/event.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 eventsource diff --git a/modules/eventsource/event_test.go b/modules/eventsource/event_test.go index a80e062f0e5..4c4272880d6 100644 --- a/modules/eventsource/event_test.go +++ b/modules/eventsource/event_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 eventsource diff --git a/modules/eventsource/manager.go b/modules/eventsource/manager.go index 812d6739929..7ed2a829038 100644 --- a/modules/eventsource/manager.go +++ b/modules/eventsource/manager.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 eventsource diff --git a/modules/eventsource/manager_run.go b/modules/eventsource/manager_run.go index 44e878fd4ea..97d08aa8a87 100644 --- a/modules/eventsource/manager_run.go +++ b/modules/eventsource/manager_run.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 eventsource diff --git a/modules/eventsource/messenger.go b/modules/eventsource/messenger.go index 091e1a5c1cb..6df26716be6 100644 --- a/modules/eventsource/messenger.go +++ b/modules/eventsource/messenger.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 eventsource diff --git a/modules/generate/generate.go b/modules/generate/generate.go index 326fe8036b4..f29634e05e6 100644 --- a/modules/generate/generate.go +++ b/modules/generate/generate.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2016 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 generate diff --git a/modules/git/batch_reader.go b/modules/git/batch_reader.go index feb0dd31be1..75539c0d0a9 100644 --- a/modules/git/batch_reader.go +++ b/modules/git/batch_reader.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 git diff --git a/modules/git/blame.go b/modules/git/blame.go index 832b12213c8..fea75b48182 100644 --- a/modules/git/blame.go +++ b/modules/git/blame.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 git diff --git a/modules/git/blame_test.go b/modules/git/blame_test.go index 4bee8cd27a9..94277b7c1d1 100644 --- a/modules/git/blame_test.go +++ b/modules/git/blame_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 git diff --git a/modules/git/blob.go b/modules/git/blob.go index 9567affd037..8864f54d1bf 100644 --- a/modules/git/blob.go +++ b/modules/git/blob.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 git diff --git a/modules/git/blob_gogit.go b/modules/git/blob_gogit.go index 2a2b51e422f..aa206409d0b 100644 --- a/modules/git/blob_gogit.go +++ b/modules/git/blob_gogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 //go:build gogit diff --git a/modules/git/blob_nogogit.go b/modules/git/blob_nogogit.go index 89bb98162f4..511332eb506 100644 --- a/modules/git/blob_nogogit.go +++ b/modules/git/blob_nogogit.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 //go:build !gogit diff --git a/modules/git/blob_test.go b/modules/git/blob_test.go index 39f3f111623..63374384f6b 100644 --- a/modules/git/blob_test.go +++ b/modules/git/blob_test.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 git diff --git a/modules/git/command.go b/modules/git/command.go index 0d94494f11b..d88fcd1a8c8 100644 --- a/modules/git/command.go +++ b/modules/git/command.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2016 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 git diff --git a/modules/git/command_race_test.go b/modules/git/command_race_test.go index ae2acc3a5ad..f567406822f 100644 --- a/modules/git/command_race_test.go +++ b/modules/git/command_race_test.go @@ -1,6 +1,5 @@ // 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 //go:build race diff --git a/modules/git/command_test.go b/modules/git/command_test.go index 52d25c9c748..2dca2d0d344 100644 --- a/modules/git/command_test.go +++ b/modules/git/command_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 git diff --git a/modules/git/commit.go b/modules/git/commit.go index 061adc10823..14710de6121 100644 --- a/modules/git/commit.go +++ b/modules/git/commit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2018 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 git diff --git a/modules/git/commit_convert_gogit.go b/modules/git/commit_convert_gogit.go index bb9d3bf8cef..669f1b15d53 100644 --- a/modules/git/commit_convert_gogit.go +++ b/modules/git/commit_convert_gogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2018 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 //go:build gogit diff --git a/modules/git/commit_info.go b/modules/git/commit_info.go index 83e23545de5..c740a4e13eb 100644 --- a/modules/git/commit_info.go +++ b/modules/git/commit_info.go @@ -1,6 +1,5 @@ // 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 git diff --git a/modules/git/commit_info_gogit.go b/modules/git/commit_info_gogit.go index 341698ab34f..20db5691ebe 100644 --- a/modules/git/commit_info_gogit.go +++ b/modules/git/commit_info_gogit.go @@ -1,6 +1,5 @@ // 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 //go:build gogit diff --git a/modules/git/commit_info_nogogit.go b/modules/git/commit_info_nogogit.go index d7bca3b9486..e469d2cab63 100644 --- a/modules/git/commit_info_nogogit.go +++ b/modules/git/commit_info_nogogit.go @@ -1,6 +1,5 @@ // 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 //go:build !gogit diff --git a/modules/git/commit_info_test.go b/modules/git/commit_info_test.go index 4bc35968967..1e331fac003 100644 --- a/modules/git/commit_info_test.go +++ b/modules/git/commit_info_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 git diff --git a/modules/git/commit_reader.go b/modules/git/commit_reader.go index 3c1f6f5ffd6..23607c43abe 100644 --- a/modules/git/commit_reader.go +++ b/modules/git/commit_reader.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 git diff --git a/modules/git/commit_test.go b/modules/git/commit_test.go index fb8c22dfd35..1d6fb001832 100644 --- a/modules/git/commit_test.go +++ b/modules/git/commit_test.go @@ -1,6 +1,5 @@ // 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 git diff --git a/modules/git/diff.go b/modules/git/diff.go index 1a43d0dd4ab..10ef3d83fba 100644 --- a/modules/git/diff.go +++ b/modules/git/diff.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 git diff --git a/modules/git/diff_test.go b/modules/git/diff_test.go index de71248508f..0f865c52a8c 100644 --- a/modules/git/diff_test.go +++ b/modules/git/diff_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 git diff --git a/modules/git/error.go b/modules/git/error.go index ebfea8e702c..dc10d451b3b 100644 --- a/modules/git/error.go +++ b/modules/git/error.go @@ -1,6 +1,5 @@ // Copyright 2015 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 git diff --git a/modules/git/foreachref/format.go b/modules/git/foreachref/format.go index c9aa5233e1e..97e8ee47247 100644 --- a/modules/git/foreachref/format.go +++ b/modules/git/foreachref/format.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 foreachref diff --git a/modules/git/foreachref/format_test.go b/modules/git/foreachref/format_test.go index 5aca10f7525..392a95a4e61 100644 --- a/modules/git/foreachref/format_test.go +++ b/modules/git/foreachref/format_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 foreachref_test diff --git a/modules/git/foreachref/parser.go b/modules/git/foreachref/parser.go index bf83a10ed5a..de69eaa2c89 100644 --- a/modules/git/foreachref/parser.go +++ b/modules/git/foreachref/parser.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 foreachref diff --git a/modules/git/foreachref/parser_test.go b/modules/git/foreachref/parser_test.go index cb36428604a..5468318ca80 100644 --- a/modules/git/foreachref/parser_test.go +++ b/modules/git/foreachref/parser_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 foreachref_test diff --git a/modules/git/git.go b/modules/git/git.go index 18d62838df1..f5919d82dca 100644 --- a/modules/git/git.go +++ b/modules/git/git.go @@ -1,7 +1,6 @@ // Copyright 2015 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 git diff --git a/modules/git/git_test.go b/modules/git/git_test.go index 09157378787..e3bfe496da7 100644 --- a/modules/git/git_test.go +++ b/modules/git/git_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 git diff --git a/modules/git/hook.go b/modules/git/hook.go index c50f891224c..46f93ce13ec 100644 --- a/modules/git/hook.go +++ b/modules/git/hook.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 git diff --git a/modules/git/last_commit_cache.go b/modules/git/last_commit_cache.go index 2b51d597208..ec8f1cce62f 100644 --- a/modules/git/last_commit_cache.go +++ b/modules/git/last_commit_cache.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 git diff --git a/modules/git/last_commit_cache_gogit.go b/modules/git/last_commit_cache_gogit.go index 82c76bad20a..90e609fc81c 100644 --- a/modules/git/last_commit_cache_gogit.go +++ b/modules/git/last_commit_cache_gogit.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 //go:build gogit diff --git a/modules/git/last_commit_cache_nogogit.go b/modules/git/last_commit_cache_nogogit.go index 1f4d693a262..155cb3cb7c8 100644 --- a/modules/git/last_commit_cache_nogogit.go +++ b/modules/git/last_commit_cache_nogogit.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 //go:build !gogit diff --git a/modules/git/log_name_status.go b/modules/git/log_name_status.go index dee4fc226ef..fe3b6598d7d 100644 --- a/modules/git/log_name_status.go +++ b/modules/git/log_name_status.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 git diff --git a/modules/git/notes.go b/modules/git/notes.go index a8dd66df0bc..63539cb3a23 100644 --- a/modules/git/notes.go +++ b/modules/git/notes.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 git diff --git a/modules/git/notes_gogit.go b/modules/git/notes_gogit.go index fe6d1f1e580..c2297d89703 100644 --- a/modules/git/notes_gogit.go +++ b/modules/git/notes_gogit.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 //go:build gogit diff --git a/modules/git/notes_nogogit.go b/modules/git/notes_nogogit.go index ba216ce3e4a..4da375c3211 100644 --- a/modules/git/notes_nogogit.go +++ b/modules/git/notes_nogogit.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 //go:build !gogit diff --git a/modules/git/notes_test.go b/modules/git/notes_test.go index 34e7178beab..267671d8fa6 100644 --- a/modules/git/notes_test.go +++ b/modules/git/notes_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 git diff --git a/modules/git/parse_gogit.go b/modules/git/parse_gogit.go index 4a8dcfdf353..226ef5df731 100644 --- a/modules/git/parse_gogit.go +++ b/modules/git/parse_gogit.go @@ -1,6 +1,5 @@ // Copyright 2018 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 //go:build gogit diff --git a/modules/git/parse_gogit_test.go b/modules/git/parse_gogit_test.go index 075de6d25de..f6e32401e66 100644 --- a/modules/git/parse_gogit_test.go +++ b/modules/git/parse_gogit_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 //go:build gogit diff --git a/modules/git/parse_nogogit.go b/modules/git/parse_nogogit.go index fb5b63def94..8b94c69200c 100644 --- a/modules/git/parse_nogogit.go +++ b/modules/git/parse_nogogit.go @@ -1,6 +1,5 @@ // Copyright 2018 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 //go:build !gogit diff --git a/modules/git/parse_nogogit_test.go b/modules/git/parse_nogogit_test.go index cecd3960da9..23fddb014c1 100644 --- a/modules/git/parse_nogogit_test.go +++ b/modules/git/parse_nogogit_test.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 //go:build !gogit diff --git a/modules/git/pipeline/catfile.go b/modules/git/pipeline/catfile.go index c1d4bd16655..46772181501 100644 --- a/modules/git/pipeline/catfile.go +++ b/modules/git/pipeline/catfile.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 pipeline diff --git a/modules/git/pipeline/lfs.go b/modules/git/pipeline/lfs.go index 18cce342895..ee0505f29f9 100644 --- a/modules/git/pipeline/lfs.go +++ b/modules/git/pipeline/lfs.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 //go:build gogit diff --git a/modules/git/pipeline/lfs_nogogit.go b/modules/git/pipeline/lfs_nogogit.go index 061da8ca500..49390f7c00c 100644 --- a/modules/git/pipeline/lfs_nogogit.go +++ b/modules/git/pipeline/lfs_nogogit.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 //go:build !gogit diff --git a/modules/git/pipeline/namerev.go b/modules/git/pipeline/namerev.go index 85ba7db23ed..ad583a74798 100644 --- a/modules/git/pipeline/namerev.go +++ b/modules/git/pipeline/namerev.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 pipeline diff --git a/modules/git/pipeline/revlist.go b/modules/git/pipeline/revlist.go index 93142034ec1..09bb2c8b3c8 100644 --- a/modules/git/pipeline/revlist.go +++ b/modules/git/pipeline/revlist.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 pipeline diff --git a/modules/git/ref.go b/modules/git/ref.go index 2f459148a22..cd8d2681849 100644 --- a/modules/git/ref.go +++ b/modules/git/ref.go @@ -1,6 +1,5 @@ // Copyright 2018 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 git diff --git a/modules/git/remote.go b/modules/git/remote.go index c416eea1368..3585313f6ae 100644 --- a/modules/git/remote.go +++ b/modules/git/remote.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 git diff --git a/modules/git/repo.go b/modules/git/repo.go index 8ba3ae4fdaf..4ba40d20af0 100644 --- a/modules/git/repo.go +++ b/modules/git/repo.go @@ -1,7 +1,6 @@ // Copyright 2015 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 git diff --git a/modules/git/repo_archive.go b/modules/git/repo_archive.go index 13be2004ca2..cff9724f005 100644 --- a/modules/git/repo_archive.go +++ b/modules/git/repo_archive.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 git diff --git a/modules/git/repo_attribute.go b/modules/git/repo_attribute.go index d9c50be6f7a..d3a3dc8c837 100644 --- a/modules/git/repo_attribute.go +++ b/modules/git/repo_attribute.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 git diff --git a/modules/git/repo_attribute_test.go b/modules/git/repo_attribute_test.go index 901a0aa2447..6882874d2dc 100644 --- a/modules/git/repo_attribute_test.go +++ b/modules/git/repo_attribute_test.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 git diff --git a/modules/git/repo_base.go b/modules/git/repo_base.go index 710f0de9f6b..2c6df8b9c4f 100644 --- a/modules/git/repo_base.go +++ b/modules/git/repo_base.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 git diff --git a/modules/git/repo_base_gogit.go b/modules/git/repo_base_gogit.go index 8fe9c404c3d..ef59ead9003 100644 --- a/modules/git/repo_base_gogit.go +++ b/modules/git/repo_base_gogit.go @@ -1,7 +1,6 @@ // Copyright 2015 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 //go:build gogit diff --git a/modules/git/repo_base_nogogit.go b/modules/git/repo_base_nogogit.go index 56af2c640fd..a0216d14a62 100644 --- a/modules/git/repo_base_nogogit.go +++ b/modules/git/repo_base_nogogit.go @@ -1,7 +1,6 @@ // Copyright 2015 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 //go:build !gogit diff --git a/modules/git/repo_blame.go b/modules/git/repo_blame.go index 8a3707aa091..7f44735f9f9 100644 --- a/modules/git/repo_blame.go +++ b/modules/git/repo_blame.go @@ -1,6 +1,5 @@ // 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 git diff --git a/modules/git/repo_blob.go b/modules/git/repo_blob.go index 5397f24cb62..698b6c7074a 100644 --- a/modules/git/repo_blob.go +++ b/modules/git/repo_blob.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 git diff --git a/modules/git/repo_blob_gogit.go b/modules/git/repo_blob_gogit.go index 5640011f4ae..7f0892f6f5e 100644 --- a/modules/git/repo_blob_gogit.go +++ b/modules/git/repo_blob_gogit.go @@ -1,6 +1,5 @@ // Copyright 2018 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 //go:build gogit diff --git a/modules/git/repo_blob_nogogit.go b/modules/git/repo_blob_nogogit.go index 44ba0a36b1b..184a2bc9dd0 100644 --- a/modules/git/repo_blob_nogogit.go +++ b/modules/git/repo_blob_nogogit.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 //go:build !gogit diff --git a/modules/git/repo_blob_test.go b/modules/git/repo_blob_test.go index 9f0b8653773..026c73a2833 100644 --- a/modules/git/repo_blob_test.go +++ b/modules/git/repo_blob_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 git diff --git a/modules/git/repo_branch.go b/modules/git/repo_branch.go index a3fc7e0c421..14dcf14d8a0 100644 --- a/modules/git/repo_branch.go +++ b/modules/git/repo_branch.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2018 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 git diff --git a/modules/git/repo_branch_gogit.go b/modules/git/repo_branch_gogit.go index dc295765629..ca19d3827e5 100644 --- a/modules/git/repo_branch_gogit.go +++ b/modules/git/repo_branch_gogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2018 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 //go:build gogit diff --git a/modules/git/repo_branch_nogogit.go b/modules/git/repo_branch_nogogit.go index 95c37188419..b1d0df6474a 100644 --- a/modules/git/repo_branch_nogogit.go +++ b/modules/git/repo_branch_nogogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2018 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 //go:build !gogit diff --git a/modules/git/repo_branch_test.go b/modules/git/repo_branch_test.go index 58a738e28bc..fe788946e50 100644 --- a/modules/git/repo_branch_test.go +++ b/modules/git/repo_branch_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 git diff --git a/modules/git/repo_commit.go b/modules/git/repo_commit.go index 90259fd7466..8343e348435 100644 --- a/modules/git/repo_commit.go +++ b/modules/git/repo_commit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 git diff --git a/modules/git/repo_commit_gogit.go b/modules/git/repo_commit_gogit.go index 14fec3f9c6b..b6c42a802f0 100644 --- a/modules/git/repo_commit_gogit.go +++ b/modules/git/repo_commit_gogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 //go:build gogit diff --git a/modules/git/repo_commit_nogogit.go b/modules/git/repo_commit_nogogit.go index 13a7be778f5..35a705fea30 100644 --- a/modules/git/repo_commit_nogogit.go +++ b/modules/git/repo_commit_nogogit.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 //go:build !gogit diff --git a/modules/git/repo_commit_test.go b/modules/git/repo_commit_test.go index 7b3a5101f2b..af8c0592fe2 100644 --- a/modules/git/repo_commit_test.go +++ b/modules/git/repo_commit_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 git diff --git a/modules/git/repo_commitgraph.go b/modules/git/repo_commitgraph.go index 075b59ad06c..492438be379 100644 --- a/modules/git/repo_commitgraph.go +++ b/modules/git/repo_commitgraph.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 git diff --git a/modules/git/repo_commitgraph_gogit.go b/modules/git/repo_commitgraph_gogit.go index 6b00a4fdc43..8e92c30e547 100644 --- a/modules/git/repo_commitgraph_gogit.go +++ b/modules/git/repo_commitgraph_gogit.go @@ -1,7 +1,6 @@ // 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 //go:build gogit diff --git a/modules/git/repo_compare.go b/modules/git/repo_compare.go index 7575b116586..b1b55c88a44 100644 --- a/modules/git/repo_compare.go +++ b/modules/git/repo_compare.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 git diff --git a/modules/git/repo_compare_test.go b/modules/git/repo_compare_test.go index 63f7254dea9..5b50bc82ade 100644 --- a/modules/git/repo_compare_test.go +++ b/modules/git/repo_compare_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 git diff --git a/modules/git/repo_gpg.go b/modules/git/repo_gpg.go index 25188d07e30..4803be58165 100644 --- a/modules/git/repo_gpg.go +++ b/modules/git/repo_gpg.go @@ -1,7 +1,6 @@ // Copyright 2015 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 git diff --git a/modules/git/repo_hook.go b/modules/git/repo_hook.go index a652e938fa5..cdf076505d9 100644 --- a/modules/git/repo_hook.go +++ b/modules/git/repo_hook.go @@ -1,6 +1,5 @@ // Copyright 2015 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 git diff --git a/modules/git/repo_index.go b/modules/git/repo_index.go index 5542883288c..99eb2b540b1 100644 --- a/modules/git/repo_index.go +++ b/modules/git/repo_index.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 git diff --git a/modules/git/repo_language_stats.go b/modules/git/repo_language_stats.go index daeb4b591f5..74c76b40a44 100644 --- a/modules/git/repo_language_stats.go +++ b/modules/git/repo_language_stats.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 git diff --git a/modules/git/repo_language_stats_gogit.go b/modules/git/repo_language_stats_gogit.go index 503e774e7a3..9674eca275e 100644 --- a/modules/git/repo_language_stats_gogit.go +++ b/modules/git/repo_language_stats_gogit.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 //go:build gogit diff --git a/modules/git/repo_language_stats_nogogit.go b/modules/git/repo_language_stats_nogogit.go index baeb1149098..a1d28f40e8c 100644 --- a/modules/git/repo_language_stats_nogogit.go +++ b/modules/git/repo_language_stats_nogogit.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 //go:build !gogit diff --git a/modules/git/repo_language_stats_test.go b/modules/git/repo_language_stats_test.go index 0234c77c0be..d616d957412 100644 --- a/modules/git/repo_language_stats_test.go +++ b/modules/git/repo_language_stats_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 //go:build !gogit diff --git a/modules/git/repo_object.go b/modules/git/repo_object.go index af448b01104..9edc201fead 100644 --- a/modules/git/repo_object.go +++ b/modules/git/repo_object.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 git diff --git a/modules/git/repo_ref.go b/modules/git/repo_ref.go index 397434e12f2..54e424bb832 100644 --- a/modules/git/repo_ref.go +++ b/modules/git/repo_ref.go @@ -1,6 +1,5 @@ // Copyright 2018 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 git diff --git a/modules/git/repo_ref_gogit.go b/modules/git/repo_ref_gogit.go index d11c58e005e..8a68a4574f1 100644 --- a/modules/git/repo_ref_gogit.go +++ b/modules/git/repo_ref_gogit.go @@ -1,6 +1,5 @@ // Copyright 2018 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 //go:build gogit diff --git a/modules/git/repo_ref_nogogit.go b/modules/git/repo_ref_nogogit.go index d766a8cac31..ac53d661b51 100644 --- a/modules/git/repo_ref_nogogit.go +++ b/modules/git/repo_ref_nogogit.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 //go:build !gogit diff --git a/modules/git/repo_ref_test.go b/modules/git/repo_ref_test.go index afd38ca2519..776d7ce3e15 100644 --- a/modules/git/repo_ref_test.go +++ b/modules/git/repo_ref_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 git diff --git a/modules/git/repo_stats.go b/modules/git/repo_stats.go index 002e2525e2e..d6e91f25a9a 100644 --- a/modules/git/repo_stats.go +++ b/modules/git/repo_stats.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 git diff --git a/modules/git/repo_stats_test.go b/modules/git/repo_stats_test.go index 494a1613052..668ed679999 100644 --- a/modules/git/repo_stats_test.go +++ b/modules/git/repo_stats_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 git diff --git a/modules/git/repo_tag.go b/modules/git/repo_tag.go index 8585d824f91..8aa06545d4c 100644 --- a/modules/git/repo_tag.go +++ b/modules/git/repo_tag.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 git diff --git a/modules/git/repo_tag_gogit.go b/modules/git/repo_tag_gogit.go index c6dec289878..2bc75e7cf9b 100644 --- a/modules/git/repo_tag_gogit.go +++ b/modules/git/repo_tag_gogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 //go:build gogit diff --git a/modules/git/repo_tag_nogogit.go b/modules/git/repo_tag_nogogit.go index 5d3aace52fd..1fb631002b7 100644 --- a/modules/git/repo_tag_nogogit.go +++ b/modules/git/repo_tag_nogogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 //go:build !gogit diff --git a/modules/git/repo_tag_test.go b/modules/git/repo_tag_test.go index 6a00473bb79..589349a72c9 100644 --- a/modules/git/repo_tag_test.go +++ b/modules/git/repo_tag_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 git diff --git a/modules/git/repo_test.go b/modules/git/repo_test.go index 8ca170cd1f8..2a39148192c 100644 --- a/modules/git/repo_test.go +++ b/modules/git/repo_test.go @@ -1,6 +1,5 @@ // 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 git diff --git a/modules/git/repo_tree.go b/modules/git/repo_tree.go index ba81bfc6dbb..5fea5c0aea4 100644 --- a/modules/git/repo_tree.go +++ b/modules/git/repo_tree.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 git diff --git a/modules/git/repo_tree_gogit.go b/modules/git/repo_tree_gogit.go index e7201649362..e0e5e73fa33 100644 --- a/modules/git/repo_tree_gogit.go +++ b/modules/git/repo_tree_gogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 //go:build gogit diff --git a/modules/git/repo_tree_nogogit.go b/modules/git/repo_tree_nogogit.go index dc4a5becb9d..16ea6bbd8a3 100644 --- a/modules/git/repo_tree_nogogit.go +++ b/modules/git/repo_tree_nogogit.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 //go:build !gogit diff --git a/modules/git/sha1.go b/modules/git/sha1.go index 15f282c6e4a..3a02484bc23 100644 --- a/modules/git/sha1.go +++ b/modules/git/sha1.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 git diff --git a/modules/git/sha1_gogit.go b/modules/git/sha1_gogit.go index 16501efb43f..28f35d17a98 100644 --- a/modules/git/sha1_gogit.go +++ b/modules/git/sha1_gogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 //go:build gogit diff --git a/modules/git/sha1_nogogit.go b/modules/git/sha1_nogogit.go index a2620cba695..d818d86a3a0 100644 --- a/modules/git/sha1_nogogit.go +++ b/modules/git/sha1_nogogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 //go:build !gogit diff --git a/modules/git/sha1_test.go b/modules/git/sha1_test.go index c5c00f5445e..db2944fc53d 100644 --- a/modules/git/sha1_test.go +++ b/modules/git/sha1_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 git diff --git a/modules/git/signature.go b/modules/git/signature.go index b59db8f490e..b5b17f23b04 100644 --- a/modules/git/signature.go +++ b/modules/git/signature.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 git diff --git a/modules/git/signature_gogit.go b/modules/git/signature_gogit.go index 5ab38cd8525..c984ad6e20d 100644 --- a/modules/git/signature_gogit.go +++ b/modules/git/signature_gogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 //go:build gogit diff --git a/modules/git/signature_nogogit.go b/modules/git/signature_nogogit.go index 3fa5c8da3e8..a203d5ce6d3 100644 --- a/modules/git/signature_nogogit.go +++ b/modules/git/signature_nogogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 //go:build !gogit diff --git a/modules/git/submodule.go b/modules/git/submodule.go index ee61f611797..3afaa334dbc 100644 --- a/modules/git/submodule.go +++ b/modules/git/submodule.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2015 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 git diff --git a/modules/git/submodule_test.go b/modules/git/submodule_test.go index 653f0a6f084..e05f2510c4c 100644 --- a/modules/git/submodule_test.go +++ b/modules/git/submodule_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 git diff --git a/modules/git/tag.go b/modules/git/tag.go index 3482f81e900..d0ddef64e08 100644 --- a/modules/git/tag.go +++ b/modules/git/tag.go @@ -1,6 +1,5 @@ // Copyright 2015 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 git diff --git a/modules/git/tag_test.go b/modules/git/tag_test.go index e5f1660b8ef..2337e69c6af 100644 --- a/modules/git/tag_test.go +++ b/modules/git/tag_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 git diff --git a/modules/git/tree.go b/modules/git/tree.go index f5944dd29c2..856b8cef53c 100644 --- a/modules/git/tree.go +++ b/modules/git/tree.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 git diff --git a/modules/git/tree_blob.go b/modules/git/tree_blob.go index 19edcf4c6cb..31d9f3d73b2 100644 --- a/modules/git/tree_blob.go +++ b/modules/git/tree_blob.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 git diff --git a/modules/git/tree_blob_gogit.go b/modules/git/tree_blob_gogit.go index bb010b58834..f1afc5d0a6f 100644 --- a/modules/git/tree_blob_gogit.go +++ b/modules/git/tree_blob_gogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 //go:build gogit diff --git a/modules/git/tree_blob_nogogit.go b/modules/git/tree_blob_nogogit.go index 3770004d6d7..92d3d107a74 100644 --- a/modules/git/tree_blob_nogogit.go +++ b/modules/git/tree_blob_nogogit.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 //go:build !gogit diff --git a/modules/git/tree_entry.go b/modules/git/tree_entry.go index 3644d00f36e..84b6ea40753 100644 --- a/modules/git/tree_entry.go +++ b/modules/git/tree_entry.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 git diff --git a/modules/git/tree_entry_gogit.go b/modules/git/tree_entry_gogit.go index 2b2992c32a5..194dd12f7db 100644 --- a/modules/git/tree_entry_gogit.go +++ b/modules/git/tree_entry_gogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 //go:build gogit diff --git a/modules/git/tree_entry_mode.go b/modules/git/tree_entry_mode.go index d999ccc02a8..a399118cf85 100644 --- a/modules/git/tree_entry_mode.go +++ b/modules/git/tree_entry_mode.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 git diff --git a/modules/git/tree_entry_nogogit.go b/modules/git/tree_entry_nogogit.go index aff67a3b22f..cda755886a8 100644 --- a/modules/git/tree_entry_nogogit.go +++ b/modules/git/tree_entry_nogogit.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 //go:build !gogit diff --git a/modules/git/tree_entry_test.go b/modules/git/tree_entry_test.go index c512c7348e8..30eee13669e 100644 --- a/modules/git/tree_entry_test.go +++ b/modules/git/tree_entry_test.go @@ -1,6 +1,5 @@ // 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 //go:build gogit diff --git a/modules/git/tree_gogit.go b/modules/git/tree_gogit.go index 480c5e44da7..fa601e6533c 100644 --- a/modules/git/tree_gogit.go +++ b/modules/git/tree_gogit.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 //go:build gogit diff --git a/modules/git/tree_nogogit.go b/modules/git/tree_nogogit.go index 5cbb5ffc94a..185317e7a70 100644 --- a/modules/git/tree_nogogit.go +++ b/modules/git/tree_nogogit.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 //go:build !gogit diff --git a/modules/git/url/url.go b/modules/git/url/url.go index b41cfab7efb..637685183e5 100644 --- a/modules/git/url/url.go +++ b/modules/git/url/url.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 url diff --git a/modules/git/url/url_test.go b/modules/git/url/url_test.go index 611bef86727..da820ed8897 100644 --- a/modules/git/url/url_test.go +++ b/modules/git/url/url_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 url diff --git a/modules/git/utils.go b/modules/git/utils.go index a439dabae18..628faf509ff 100644 --- a/modules/git/utils.go +++ b/modules/git/utils.go @@ -1,6 +1,5 @@ // Copyright 2015 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 git diff --git a/modules/git/utils_test.go b/modules/git/utils_test.go index 9a2d481b631..718db700aed 100644 --- a/modules/git/utils_test.go +++ b/modules/git/utils_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 git diff --git a/modules/gitgraph/graph.go b/modules/gitgraph/graph.go index d6342c92800..baedfe59806 100644 --- a/modules/gitgraph/graph.go +++ b/modules/gitgraph/graph.go @@ -1,6 +1,5 @@ // Copyright 2016 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 gitgraph diff --git a/modules/gitgraph/graph_models.go b/modules/gitgraph/graph_models.go index c153e5d3be4..0e0fc1cd012 100644 --- a/modules/gitgraph/graph_models.go +++ b/modules/gitgraph/graph_models.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 gitgraph diff --git a/modules/gitgraph/graph_test.go b/modules/gitgraph/graph_test.go index 2cfbe4b2fa6..18d427acd95 100644 --- a/modules/gitgraph/graph_test.go +++ b/modules/gitgraph/graph_test.go @@ -1,6 +1,5 @@ // Copyright 2016 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 gitgraph diff --git a/modules/gitgraph/parser.go b/modules/gitgraph/parser.go index 5432962784f..f6bf9b0b908 100644 --- a/modules/gitgraph/parser.go +++ b/modules/gitgraph/parser.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 gitgraph diff --git a/modules/graceful/context.go b/modules/graceful/context.go index b9d975a1d50..6b5b207ff36 100644 --- a/modules/graceful/context.go +++ b/modules/graceful/context.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 graceful diff --git a/modules/graceful/manager.go b/modules/graceful/manager.go index 21f019fb56f..c7b4c101ef2 100644 --- a/modules/graceful/manager.go +++ b/modules/graceful/manager.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 graceful diff --git a/modules/graceful/manager_unix.go b/modules/graceful/manager_unix.go index ba1dbd38f6a..ca6ccc1b664 100644 --- a/modules/graceful/manager_unix.go +++ b/modules/graceful/manager_unix.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 //go:build !windows diff --git a/modules/graceful/manager_windows.go b/modules/graceful/manager_windows.go index 10c1d67b972..212ddf437cc 100644 --- a/modules/graceful/manager_windows.go +++ b/modules/graceful/manager_windows.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 // This code is heavily inspired by the archived gofacebook/gracenet/net.go handler //go:build windows diff --git a/modules/graceful/net_unix.go b/modules/graceful/net_unix.go index 0bb589e2313..a2620d2c801 100644 --- a/modules/graceful/net_unix.go +++ b/modules/graceful/net_unix.go @@ -1,6 +1,6 @@ // 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 + // This code is heavily inspired by the archived gofacebook/gracenet/net.go handler //go:build !windows diff --git a/modules/graceful/net_windows.go b/modules/graceful/net_windows.go index 07ae51b8dd3..a2f58e224a9 100644 --- a/modules/graceful/net_windows.go +++ b/modules/graceful/net_windows.go @@ -1,6 +1,6 @@ // 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 + // This code is heavily inspired by the archived gofacebook/gracenet/net.go handler //go:build windows diff --git a/modules/graceful/restart_unix.go b/modules/graceful/restart_unix.go index 1d0d1059e9f..406fe6c8af3 100644 --- a/modules/graceful/restart_unix.go +++ b/modules/graceful/restart_unix.go @@ -1,6 +1,6 @@ // 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 + // This code is heavily inspired by the archived gofacebook/gracenet/net.go handler //go:build !windows diff --git a/modules/graceful/server.go b/modules/graceful/server.go index 30a460a943c..e42d35cd49b 100644 --- a/modules/graceful/server.go +++ b/modules/graceful/server.go @@ -1,6 +1,6 @@ // 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 + // This code is highly inspired by endless go package graceful diff --git a/modules/graceful/server_hooks.go b/modules/graceful/server_hooks.go index c634905711f..9b67589571c 100644 --- a/modules/graceful/server_hooks.go +++ b/modules/graceful/server_hooks.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 graceful diff --git a/modules/graceful/server_http.go b/modules/graceful/server_http.go index 8ab2bdf41ff..a1f8e0ff522 100644 --- a/modules/graceful/server_http.go +++ b/modules/graceful/server_http.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 graceful diff --git a/modules/hcaptcha/hcaptcha.go b/modules/hcaptcha/hcaptcha.go index 95fe2dd1c3b..4d20cfd483e 100644 --- a/modules/hcaptcha/hcaptcha.go +++ b/modules/hcaptcha/hcaptcha.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 hcaptcha diff --git a/modules/highlight/highlight.go b/modules/highlight/highlight.go index 3836c058808..05e472c0833 100644 --- a/modules/highlight/highlight.go +++ b/modules/highlight/highlight.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 highlight diff --git a/modules/highlight/highlight_test.go b/modules/highlight/highlight_test.go index 18997537461..7a9887728f1 100644 --- a/modules/highlight/highlight_test.go +++ b/modules/highlight/highlight_test.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 highlight diff --git a/modules/hostmatcher/hostmatcher.go b/modules/hostmatcher/hostmatcher.go index a092e07f411..1069310316a 100644 --- a/modules/hostmatcher/hostmatcher.go +++ b/modules/hostmatcher/hostmatcher.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 hostmatcher diff --git a/modules/hostmatcher/hostmatcher_test.go b/modules/hostmatcher/hostmatcher_test.go index b93976df6a6..c781847471e 100644 --- a/modules/hostmatcher/hostmatcher_test.go +++ b/modules/hostmatcher/hostmatcher_test.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 hostmatcher diff --git a/modules/hostmatcher/http.go b/modules/hostmatcher/http.go index 84cd2974ec8..65f5f78b148 100644 --- a/modules/hostmatcher/http.go +++ b/modules/hostmatcher/http.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 hostmatcher diff --git a/modules/html/html.go b/modules/html/html.go index dafdb503b67..3219b939f40 100644 --- a/modules/html/html.go +++ b/modules/html/html.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 html diff --git a/modules/httpcache/httpcache.go b/modules/httpcache/httpcache.go index 750233d4a71..1247a81fea3 100644 --- a/modules/httpcache/httpcache.go +++ b/modules/httpcache/httpcache.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 httpcache diff --git a/modules/httpcache/httpcache_test.go b/modules/httpcache/httpcache_test.go index 49e54d147e7..624d2f4d4bd 100644 --- a/modules/httpcache/httpcache_test.go +++ b/modules/httpcache/httpcache_test.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 httpcache diff --git a/modules/httplib/httplib.go b/modules/httplib/httplib.go index 32790fb54bb..a1984400d61 100644 --- a/modules/httplib/httplib.go +++ b/modules/httplib/httplib.go @@ -1,7 +1,6 @@ // Copyright 2013 The Beego Authors. All rights reserved. // 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 httplib diff --git a/modules/indexer/bleve/batch.go b/modules/indexer/bleve/batch.go index 79994e6e5be..77675147b2c 100644 --- a/modules/indexer/bleve/batch.go +++ b/modules/indexer/bleve/batch.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 bleve diff --git a/modules/indexer/code/bleve.go b/modules/indexer/code/bleve.go index 3ea1c861784..6ee2639d34f 100644 --- a/modules/indexer/code/bleve.go +++ b/modules/indexer/code/bleve.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 code diff --git a/modules/indexer/code/bleve_test.go b/modules/indexer/code/bleve_test.go index a34d54bc0e1..00bcd5c90c6 100644 --- a/modules/indexer/code/bleve_test.go +++ b/modules/indexer/code/bleve_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 code diff --git a/modules/indexer/code/elastic_search.go b/modules/indexer/code/elastic_search.go index dd3c9c97714..68c80967585 100644 --- a/modules/indexer/code/elastic_search.go +++ b/modules/indexer/code/elastic_search.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 code diff --git a/modules/indexer/code/elastic_search_test.go b/modules/indexer/code/elastic_search_test.go index fc58633f16e..e7506eefa68 100644 --- a/modules/indexer/code/elastic_search_test.go +++ b/modules/indexer/code/elastic_search_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 code diff --git a/modules/indexer/code/git.go b/modules/indexer/code/git.go index 774dcc81499..bbcc6ba4871 100644 --- a/modules/indexer/code/git.go +++ b/modules/indexer/code/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 code diff --git a/modules/indexer/code/indexer.go b/modules/indexer/code/indexer.go index 9845ade3dda..d07ab10db06 100644 --- a/modules/indexer/code/indexer.go +++ b/modules/indexer/code/indexer.go @@ -1,6 +1,5 @@ // Copyright 2016 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 code diff --git a/modules/indexer/code/indexer_test.go b/modules/indexer/code/indexer_test.go index 06923dfd25d..c353d5b6880 100644 --- a/modules/indexer/code/indexer_test.go +++ b/modules/indexer/code/indexer_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 code diff --git a/modules/indexer/code/search.go b/modules/indexer/code/search.go index df255fa8758..1de9ffc224b 100644 --- a/modules/indexer/code/search.go +++ b/modules/indexer/code/search.go @@ -1,6 +1,5 @@ // 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 code diff --git a/modules/indexer/code/wrapped.go b/modules/indexer/code/wrapped.go index ba58236fbad..33ba57a094c 100644 --- a/modules/indexer/code/wrapped.go +++ b/modules/indexer/code/wrapped.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 code diff --git a/modules/indexer/issues/bleve.go b/modules/indexer/issues/bleve.go index dff1cf0c60b..952bddfb292 100644 --- a/modules/indexer/issues/bleve.go +++ b/modules/indexer/issues/bleve.go @@ -1,6 +1,5 @@ // Copyright 2018 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 issues diff --git a/modules/indexer/issues/bleve_test.go b/modules/indexer/issues/bleve_test.go index 42d22f06a2d..22827158e4c 100644 --- a/modules/indexer/issues/bleve_test.go +++ b/modules/indexer/issues/bleve_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 issues diff --git a/modules/indexer/issues/db.go b/modules/indexer/issues/db.go index d21c86337e2..d28b536e024 100644 --- a/modules/indexer/issues/db.go +++ b/modules/indexer/issues/db.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 issues diff --git a/modules/indexer/issues/elastic_search.go b/modules/indexer/issues/elastic_search.go index 97e32b89753..ee8e3df62ff 100644 --- a/modules/indexer/issues/elastic_search.go +++ b/modules/indexer/issues/elastic_search.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 issues diff --git a/modules/indexer/issues/indexer.go b/modules/indexer/issues/indexer.go index 5b0279d1abb..55d3c7bc091 100644 --- a/modules/indexer/issues/indexer.go +++ b/modules/indexer/issues/indexer.go @@ -1,6 +1,5 @@ // Copyright 2018 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 issues diff --git a/modules/indexer/issues/indexer_test.go b/modules/indexer/issues/indexer_test.go index e8b9ff83708..ff0541d049a 100644 --- a/modules/indexer/issues/indexer_test.go +++ b/modules/indexer/issues/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 issues diff --git a/modules/indexer/stats/db.go b/modules/indexer/stats/db.go index d39b1dcf2aa..068626c4fae 100644 --- a/modules/indexer/stats/db.go +++ b/modules/indexer/stats/db.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 stats diff --git a/modules/indexer/stats/indexer.go b/modules/indexer/stats/indexer.go index f4fe54b8cbe..1c01e25e29e 100644 --- a/modules/indexer/stats/indexer.go +++ b/modules/indexer/stats/indexer.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 stats diff --git a/modules/indexer/stats/indexer_test.go b/modules/indexer/stats/indexer_test.go index a4a8b632411..f9a1bc520a2 100644 --- a/modules/indexer/stats/indexer_test.go +++ b/modules/indexer/stats/indexer_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 stats diff --git a/modules/indexer/stats/queue.go b/modules/indexer/stats/queue.go index f983fcd11d5..32379f2859d 100644 --- a/modules/indexer/stats/queue.go +++ b/modules/indexer/stats/queue.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 stats diff --git a/modules/issue/template/template.go b/modules/issue/template/template.go index 0bdf5a19874..f8bce3f4651 100644 --- a/modules/issue/template/template.go +++ b/modules/issue/template/template.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 template diff --git a/modules/issue/template/template_test.go b/modules/issue/template/template_test.go index c3863a64a6e..0845642cd39 100644 --- a/modules/issue/template/template_test.go +++ b/modules/issue/template/template_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 template diff --git a/modules/issue/template/unmarshal.go b/modules/issue/template/unmarshal.go index 3398719cf68..f43a83fb62b 100644 --- a/modules/issue/template/unmarshal.go +++ b/modules/issue/template/unmarshal.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 template diff --git a/modules/json/json.go b/modules/json/json.go index 4361262a2f2..35691eec861 100644 --- a/modules/json/json.go +++ b/modules/json/json.go @@ -1,6 +1,5 @@ // Copyright 2020 The Gitea Authors. All rights reserved. // Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. package json diff --git a/modules/lfs/client.go b/modules/lfs/client.go index aaf61aefcf3..f810e5c7aae 100644 --- a/modules/lfs/client.go +++ b/modules/lfs/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 lfs diff --git a/modules/lfs/client_test.go b/modules/lfs/client_test.go index 88986f06d6b..a1369301e04 100644 --- a/modules/lfs/client_test.go +++ b/modules/lfs/client_test.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 lfs diff --git a/modules/lfs/content_store.go b/modules/lfs/content_store.go index 0eedf4de179..94277a6b8eb 100644 --- a/modules/lfs/content_store.go +++ b/modules/lfs/content_store.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 lfs diff --git a/modules/lfs/endpoint.go b/modules/lfs/endpoint.go index 943966ed155..3ae3cf077b2 100644 --- a/modules/lfs/endpoint.go +++ b/modules/lfs/endpoint.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 lfs diff --git a/modules/lfs/endpoint_test.go b/modules/lfs/endpoint_test.go index 69f47686503..118abe2d4e8 100644 --- a/modules/lfs/endpoint_test.go +++ b/modules/lfs/endpoint_test.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 lfs diff --git a/modules/lfs/filesystem_client.go b/modules/lfs/filesystem_client.go index dc72981a9ec..835551e00c6 100644 --- a/modules/lfs/filesystem_client.go +++ b/modules/lfs/filesystem_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 lfs diff --git a/modules/lfs/http_client.go b/modules/lfs/http_client.go index a1a3e7f363e..ec0d6269bd5 100644 --- a/modules/lfs/http_client.go +++ b/modules/lfs/http_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 lfs diff --git a/modules/lfs/http_client_test.go b/modules/lfs/http_client_test.go index 8f6dcb1966c..a8c7e379f66 100644 --- a/modules/lfs/http_client_test.go +++ b/modules/lfs/http_client_test.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 lfs diff --git a/modules/lfs/pointer.go b/modules/lfs/pointer.go index 2a3a2116b41..b5e13d56a3b 100644 --- a/modules/lfs/pointer.go +++ b/modules/lfs/pointer.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 lfs diff --git a/modules/lfs/pointer_scanner_gogit.go b/modules/lfs/pointer_scanner_gogit.go index ed27cb1f55b..f4302c23bcb 100644 --- a/modules/lfs/pointer_scanner_gogit.go +++ b/modules/lfs/pointer_scanner_gogit.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 //go:build gogit diff --git a/modules/lfs/pointer_scanner_nogogit.go b/modules/lfs/pointer_scanner_nogogit.go index d17f1f7b98e..658b98feabd 100644 --- a/modules/lfs/pointer_scanner_nogogit.go +++ b/modules/lfs/pointer_scanner_nogogit.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 //go:build !gogit diff --git a/modules/lfs/pointer_test.go b/modules/lfs/pointer_test.go index 9cd8b15c9e0..41b5459fef6 100644 --- a/modules/lfs/pointer_test.go +++ b/modules/lfs/pointer_test.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 lfs diff --git a/modules/lfs/shared.go b/modules/lfs/shared.go index d010b05ee56..6b2e55f2fbf 100644 --- a/modules/lfs/shared.go +++ b/modules/lfs/shared.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 lfs diff --git a/modules/lfs/transferadapter.go b/modules/lfs/transferadapter.go index 2fdd92c8109..649497aabb3 100644 --- a/modules/lfs/transferadapter.go +++ b/modules/lfs/transferadapter.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 lfs diff --git a/modules/lfs/transferadapter_test.go b/modules/lfs/transferadapter_test.go index b26d516c683..f86d2c54bed 100644 --- a/modules/lfs/transferadapter_test.go +++ b/modules/lfs/transferadapter_test.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 lfs diff --git a/modules/log/buffer.go b/modules/log/buffer.go index 9535522bb68..1eee2465f14 100644 --- a/modules/log/buffer.go +++ b/modules/log/buffer.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 log diff --git a/modules/log/buffer_test.go b/modules/log/buffer_test.go index 8ec74bc78d2..1c390060509 100644 --- a/modules/log/buffer_test.go +++ b/modules/log/buffer_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 log diff --git a/modules/log/colors.go b/modules/log/colors.go index 15e23a0dac2..02781afe84e 100644 --- a/modules/log/colors.go +++ b/modules/log/colors.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 log diff --git a/modules/log/colors_router.go b/modules/log/colors_router.go index 888198d4e9a..efc7337b6b2 100644 --- a/modules/log/colors_router.go +++ b/modules/log/colors_router.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 log diff --git a/modules/log/conn.go b/modules/log/conn.go index 155f2866cae..39d5234214d 100644 --- a/modules/log/conn.go +++ b/modules/log/conn.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 log diff --git a/modules/log/conn_test.go b/modules/log/conn_test.go index 1d373506a40..445bd776534 100644 --- a/modules/log/conn_test.go +++ b/modules/log/conn_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 log diff --git a/modules/log/console.go b/modules/log/console.go index fc7c9b49672..8764d984ac1 100644 --- a/modules/log/console.go +++ b/modules/log/console.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 log diff --git a/modules/log/console_other.go b/modules/log/console_other.go index b5cac55b52a..c30be41544e 100644 --- a/modules/log/console_other.go +++ b/modules/log/console_other.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 //go:build !windows diff --git a/modules/log/console_test.go b/modules/log/console_test.go index 4da87b48a30..e4c3882d4f8 100644 --- a/modules/log/console_test.go +++ b/modules/log/console_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 log diff --git a/modules/log/console_windows.go b/modules/log/console_windows.go index ea47e5d6244..54dac12fa0d 100644 --- a/modules/log/console_windows.go +++ b/modules/log/console_windows.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 log diff --git a/modules/log/errors.go b/modules/log/errors.go index 1fe54d4265e..942639a4344 100644 --- a/modules/log/errors.go +++ b/modules/log/errors.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 log diff --git a/modules/log/event.go b/modules/log/event.go index aebd1562125..4466f7ff34f 100644 --- a/modules/log/event.go +++ b/modules/log/event.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 log diff --git a/modules/log/file.go b/modules/log/file.go index d0cba7817c3..13386a320f0 100644 --- a/modules/log/file.go +++ b/modules/log/file.go @@ -1,6 +1,5 @@ // 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 log diff --git a/modules/log/file_test.go b/modules/log/file_test.go index cc2b9fe0772..f1ca23d342b 100644 --- a/modules/log/file_test.go +++ b/modules/log/file_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 log diff --git a/modules/log/flags.go b/modules/log/flags.go index 95950548ece..4a3732600bb 100644 --- a/modules/log/flags.go +++ b/modules/log/flags.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 log diff --git a/modules/log/groutinelabel.go b/modules/log/groutinelabel.go index 0d3739fd98d..829c217574e 100644 --- a/modules/log/groutinelabel.go +++ b/modules/log/groutinelabel.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 log diff --git a/modules/log/groutinelabel_test.go b/modules/log/groutinelabel_test.go index 8e23721b867..34e99653d6a 100644 --- a/modules/log/groutinelabel_test.go +++ b/modules/log/groutinelabel_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 log diff --git a/modules/log/level.go b/modules/log/level.go index 5964ed8f8b9..3c8a736b30a 100644 --- a/modules/log/level.go +++ b/modules/log/level.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 log diff --git a/modules/log/level_test.go b/modules/log/level_test.go index 47f77738c5f..cd18a807d80 100644 --- a/modules/log/level_test.go +++ b/modules/log/level_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 log diff --git a/modules/log/log.go b/modules/log/log.go index 4303ecf4c03..73f908dfab5 100644 --- a/modules/log/log.go +++ b/modules/log/log.go @@ -1,6 +1,5 @@ // 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 log diff --git a/modules/log/log_test.go b/modules/log/log_test.go index 33f68c8e8e9..819cdb521fa 100644 --- a/modules/log/log_test.go +++ b/modules/log/log_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 log diff --git a/modules/log/logger.go b/modules/log/logger.go index 0045d793229..56e39c392e3 100644 --- a/modules/log/logger.go +++ b/modules/log/logger.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 log diff --git a/modules/log/multichannel.go b/modules/log/multichannel.go index 519abf663d9..8ccb08179ca 100644 --- a/modules/log/multichannel.go +++ b/modules/log/multichannel.go @@ -1,6 +1,5 @@ // Copyright 2020 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 log diff --git a/modules/log/provider.go b/modules/log/provider.go index e03e6f74a7b..490c3fa71b1 100644 --- a/modules/log/provider.go +++ b/modules/log/provider.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 log diff --git a/modules/log/smtp.go b/modules/log/smtp.go index 61af50b81a9..e385020c67c 100644 --- a/modules/log/smtp.go +++ b/modules/log/smtp.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 log diff --git a/modules/log/smtp_test.go b/modules/log/smtp_test.go index c8758bf6bec..d7d28f28f83 100644 --- a/modules/log/smtp_test.go +++ b/modules/log/smtp_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 log diff --git a/modules/log/stack.go b/modules/log/stack.go index 4b40d81ab72..d4496cff03f 100644 --- a/modules/log/stack.go +++ b/modules/log/stack.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 log diff --git a/modules/log/writer.go b/modules/log/writer.go index 1c4f5b4a195..ac4b3c8c4e1 100644 --- a/modules/log/writer.go +++ b/modules/log/writer.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 log diff --git a/modules/log/writer_test.go b/modules/log/writer_test.go index 99a5fd34068..8c03f87d907 100644 --- a/modules/log/writer_test.go +++ b/modules/log/writer_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 log diff --git a/modules/markup/camo.go b/modules/markup/camo.go index f804447f2de..e93797de2ba 100644 --- a/modules/markup/camo.go +++ b/modules/markup/camo.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 markup diff --git a/modules/markup/camo_test.go b/modules/markup/camo_test.go index cc917039d8e..ba58835221b 100644 --- a/modules/markup/camo_test.go +++ b/modules/markup/camo_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 markup diff --git a/modules/markup/common/footnote.go b/modules/markup/common/footnote.go index d07f5e60901..0e75e2adfd2 100644 --- a/modules/markup/common/footnote.go +++ b/modules/markup/common/footnote.go @@ -1,7 +1,6 @@ // Copyright 2019 Yusuke Inuzuka // 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 // Most of what follows is a subtly changed version of github.com/yuin/goldmark/extension/footnote.go diff --git a/modules/markup/common/html.go b/modules/markup/common/html.go index a2328a2288b..5658839c6fc 100644 --- a/modules/markup/common/html.go +++ b/modules/markup/common/html.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 common diff --git a/modules/markup/common/linkify.go b/modules/markup/common/linkify.go index 2140486a30d..f84680205e8 100644 --- a/modules/markup/common/linkify.go +++ b/modules/markup/common/linkify.go @@ -1,7 +1,6 @@ // Copyright 2019 Yusuke Inuzuka // 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 // Most of this file is a subtly changed version of github.com/yuin/goldmark/extension/linkify.go diff --git a/modules/markup/console/console.go b/modules/markup/console/console.go index 597593eee15..cf42c9cceb7 100644 --- a/modules/markup/console/console.go +++ b/modules/markup/console/console.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 console diff --git a/modules/markup/console/console_test.go b/modules/markup/console/console_test.go index 282fbb0598e..506f86194cb 100644 --- a/modules/markup/console/console_test.go +++ b/modules/markup/console/console_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 console diff --git a/modules/markup/csv/csv.go b/modules/markup/csv/csv.go index 5095b854650..7af34a6cbc2 100644 --- a/modules/markup/csv/csv.go +++ b/modules/markup/csv/csv.go @@ -1,6 +1,5 @@ // Copyright 2018 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 markup diff --git a/modules/markup/csv/csv_test.go b/modules/markup/csv/csv_test.go index 612f78c76cb..b9f5769be28 100644 --- a/modules/markup/csv/csv_test.go +++ b/modules/markup/csv/csv_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 markup diff --git a/modules/markup/external/external.go b/modules/markup/external/external.go index 0eeb2d70a5f..f47776690f2 100644 --- a/modules/markup/external/external.go +++ b/modules/markup/external/external.go @@ -1,6 +1,5 @@ // 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 external diff --git a/modules/markup/html.go b/modules/markup/html.go index ae00c3905fe..80b19ba35f2 100644 --- a/modules/markup/html.go +++ b/modules/markup/html.go @@ -1,6 +1,5 @@ // 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 markup diff --git a/modules/markup/html_internal_test.go b/modules/markup/html_internal_test.go index 25b0f7b7a5e..6746c40d183 100644 --- a/modules/markup/html_internal_test.go +++ b/modules/markup/html_internal_test.go @@ -1,6 +1,6 @@ // Copyright 2018 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 markup import ( diff --git a/modules/markup/html_test.go b/modules/markup/html_test.go index e57187a6778..32f26bffabb 100644 --- a/modules/markup/html_test.go +++ b/modules/markup/html_test.go @@ -1,6 +1,5 @@ // 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 markup_test diff --git a/modules/markup/markdown/ast.go b/modules/markup/markdown/ast.go index 3d49620253e..e844f801c4f 100644 --- a/modules/markup/markdown/ast.go +++ b/modules/markup/markdown/ast.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 markdown diff --git a/modules/markup/markdown/convertyaml.go b/modules/markup/markdown/convertyaml.go index 3f5ebec9089..6e90847e06a 100644 --- a/modules/markup/markdown/convertyaml.go +++ b/modules/markup/markdown/convertyaml.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 markdown diff --git a/modules/markup/markdown/goldmark.go b/modules/markup/markdown/goldmark.go index 84a02bfbbb3..50b438219b8 100644 --- a/modules/markup/markdown/goldmark.go +++ b/modules/markup/markdown/goldmark.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 markdown diff --git a/modules/markup/markdown/markdown.go b/modules/markup/markdown/markdown.go index fa289986cce..1e5c4707585 100644 --- a/modules/markup/markdown/markdown.go +++ b/modules/markup/markdown/markdown.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 markdown diff --git a/modules/markup/markdown/markdown_test.go b/modules/markup/markdown/markdown_test.go index fbb741d1cd8..bb2c47f18e9 100644 --- a/modules/markup/markdown/markdown_test.go +++ b/modules/markup/markdown/markdown_test.go @@ -1,6 +1,5 @@ // 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 markdown_test diff --git a/modules/markup/markdown/math/block_node.go b/modules/markup/markdown/math/block_node.go index bd8449babfe..10d17ff8d3c 100644 --- a/modules/markup/markdown/math/block_node.go +++ b/modules/markup/markdown/math/block_node.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 math diff --git a/modules/markup/markdown/math/block_parser.go b/modules/markup/markdown/math/block_parser.go index f8651228867..7f714d72392 100644 --- a/modules/markup/markdown/math/block_parser.go +++ b/modules/markup/markdown/math/block_parser.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 math diff --git a/modules/markup/markdown/math/block_renderer.go b/modules/markup/markdown/math/block_renderer.go index d502065259e..84817ef1e4a 100644 --- a/modules/markup/markdown/math/block_renderer.go +++ b/modules/markup/markdown/math/block_renderer.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 math diff --git a/modules/markup/markdown/math/inline_node.go b/modules/markup/markdown/math/inline_node.go index 245ff8dab0b..2221a251bf1 100644 --- a/modules/markup/markdown/math/inline_node.go +++ b/modules/markup/markdown/math/inline_node.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 math diff --git a/modules/markup/markdown/math/inline_parser.go b/modules/markup/markdown/math/inline_parser.go index 8dc88eb858f..0ac25c2b2ac 100644 --- a/modules/markup/markdown/math/inline_parser.go +++ b/modules/markup/markdown/math/inline_parser.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 math diff --git a/modules/markup/markdown/math/inline_renderer.go b/modules/markup/markdown/math/inline_renderer.go index e4c0f3761da..b4e9ade0ae4 100644 --- a/modules/markup/markdown/math/inline_renderer.go +++ b/modules/markup/markdown/math/inline_renderer.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 math diff --git a/modules/markup/markdown/math/math.go b/modules/markup/markdown/math/math.go index 7854ac84dbb..8a507535744 100644 --- a/modules/markup/markdown/math/math.go +++ b/modules/markup/markdown/math/math.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 math diff --git a/modules/markup/markdown/meta.go b/modules/markup/markdown/meta.go index fb37236d77e..bbefbd380c2 100644 --- a/modules/markup/markdown/meta.go +++ b/modules/markup/markdown/meta.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 markdown diff --git a/modules/markup/markdown/meta_test.go b/modules/markup/markdown/meta_test.go index 1e9768e6186..6949966328c 100644 --- a/modules/markup/markdown/meta_test.go +++ b/modules/markup/markdown/meta_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 markdown diff --git a/modules/markup/markdown/renderconfig.go b/modules/markup/markdown/renderconfig.go index 1ba75dbb68e..f9c9cbc5f42 100644 --- a/modules/markup/markdown/renderconfig.go +++ b/modules/markup/markdown/renderconfig.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 markdown diff --git a/modules/markup/markdown/renderconfig_test.go b/modules/markup/markdown/renderconfig_test.go index 672edbf46d3..f7f5e885a3b 100644 --- a/modules/markup/markdown/renderconfig_test.go +++ b/modules/markup/markdown/renderconfig_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 markdown diff --git a/modules/markup/markdown/toc.go b/modules/markup/markdown/toc.go index 103894d1abf..3715f031af5 100644 --- a/modules/markup/markdown/toc.go +++ b/modules/markup/markdown/toc.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 markdown diff --git a/modules/markup/mdstripper/mdstripper.go b/modules/markup/mdstripper/mdstripper.go index c7f8ee69f19..e19f8f64197 100644 --- a/modules/markup/mdstripper/mdstripper.go +++ b/modules/markup/mdstripper/mdstripper.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 mdstripper diff --git a/modules/markup/mdstripper/mdstripper_test.go b/modules/markup/mdstripper/mdstripper_test.go index 8045c34c079..ea34df0a3b2 100644 --- a/modules/markup/mdstripper/mdstripper_test.go +++ b/modules/markup/mdstripper/mdstripper_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 mdstripper diff --git a/modules/markup/orgmode/orgmode.go b/modules/markup/orgmode/orgmode.go index abbff1e435e..5a8485e571b 100644 --- a/modules/markup/orgmode/orgmode.go +++ b/modules/markup/orgmode/orgmode.go @@ -1,6 +1,5 @@ // 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 markup diff --git a/modules/markup/orgmode/orgmode_test.go b/modules/markup/orgmode/orgmode_test.go index cd12cd8c171..4acb678cd76 100644 --- a/modules/markup/orgmode/orgmode_test.go +++ b/modules/markup/orgmode/orgmode_test.go @@ -1,6 +1,5 @@ // 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 markup diff --git a/modules/markup/renderer.go b/modules/markup/renderer.go index b3289cb3c3b..5a31e961fb5 100644 --- a/modules/markup/renderer.go +++ b/modules/markup/renderer.go @@ -1,6 +1,5 @@ // 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 markup diff --git a/modules/markup/renderer_test.go b/modules/markup/renderer_test.go index 950ee15b910..624558c3f73 100644 --- a/modules/markup/renderer_test.go +++ b/modules/markup/renderer_test.go @@ -1,6 +1,5 @@ // 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 markup_test diff --git a/modules/markup/sanitizer.go b/modules/markup/sanitizer.go index c2a6c4a38f7..e59f6c7c842 100644 --- a/modules/markup/sanitizer.go +++ b/modules/markup/sanitizer.go @@ -1,7 +1,6 @@ // Copyright 2017 The Gitea Authors. All rights reserved. // Copyright 2017 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 markup diff --git a/modules/markup/sanitizer_test.go b/modules/markup/sanitizer_test.go index b3b07404b45..c792ec2dc62 100644 --- a/modules/markup/sanitizer_test.go +++ b/modules/markup/sanitizer_test.go @@ -1,7 +1,6 @@ // Copyright 2017 The Gitea Authors. All rights reserved. // Copyright 2017 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 markup diff --git a/modules/mcaptcha/mcaptcha.go b/modules/mcaptcha/mcaptcha.go index 0c0fcce49d9..74142aa8632 100644 --- a/modules/mcaptcha/mcaptcha.go +++ b/modules/mcaptcha/mcaptcha.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 mcaptcha diff --git a/modules/metrics/collector.go b/modules/metrics/collector.go index dcd80b05a97..17f8dd133fc 100755 --- a/modules/metrics/collector.go +++ b/modules/metrics/collector.go @@ -1,6 +1,5 @@ // Copyright 2018 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 metrics diff --git a/modules/migration/comment.go b/modules/migration/comment.go index 0447689b74c..27ecaa830a6 100644 --- a/modules/migration/comment.go +++ b/modules/migration/comment.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migration diff --git a/modules/migration/downloader.go b/modules/migration/downloader.go index 7759c96056a..ebd3672d636 100644 --- a/modules/migration/downloader.go +++ b/modules/migration/downloader.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migration diff --git a/modules/migration/error.go b/modules/migration/error.go index b2608aa09fe..64cda9d0475 100644 --- a/modules/migration/error.go +++ b/modules/migration/error.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 migration diff --git a/modules/migration/file_format.go b/modules/migration/file_format.go index 92cf71407d6..f319f02ef17 100644 --- a/modules/migration/file_format.go +++ b/modules/migration/file_format.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 migration diff --git a/modules/migration/file_format_test.go b/modules/migration/file_format_test.go index 27104e209c3..da997f645b2 100644 --- a/modules/migration/file_format_test.go +++ b/modules/migration/file_format_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 migration diff --git a/modules/migration/issue.go b/modules/migration/issue.go index cc13570afb9..7cb9f84b0d2 100644 --- a/modules/migration/issue.go +++ b/modules/migration/issue.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migration diff --git a/modules/migration/label.go b/modules/migration/label.go index f49fbe3ee42..38f0eb10dad 100644 --- a/modules/migration/label.go +++ b/modules/migration/label.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migration diff --git a/modules/migration/messenger.go b/modules/migration/messenger.go index fa8218cf938..1fd5456259e 100644 --- a/modules/migration/messenger.go +++ b/modules/migration/messenger.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 migration diff --git a/modules/migration/milestone.go b/modules/migration/milestone.go index f3b725de67b..34355b8f9c8 100644 --- a/modules/migration/milestone.go +++ b/modules/migration/milestone.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migration diff --git a/modules/migration/null_downloader.go b/modules/migration/null_downloader.go index ad925c32ce3..e5b69331df7 100644 --- a/modules/migration/null_downloader.go +++ b/modules/migration/null_downloader.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 migration diff --git a/modules/migration/options.go b/modules/migration/options.go index 1e92a1b0b35..234e72c295e 100644 --- a/modules/migration/options.go +++ b/modules/migration/options.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migration diff --git a/modules/migration/pullrequest.go b/modules/migration/pullrequest.go index dd520cd63f9..4e7500f0d67 100644 --- a/modules/migration/pullrequest.go +++ b/modules/migration/pullrequest.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migration diff --git a/modules/migration/reaction.go b/modules/migration/reaction.go index 0946bdd40b3..ca1df6c763f 100644 --- a/modules/migration/reaction.go +++ b/modules/migration/reaction.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 migration diff --git a/modules/migration/release.go b/modules/migration/release.go index 923b3817b03..f92cf25e7bc 100644 --- a/modules/migration/release.go +++ b/modules/migration/release.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 migration diff --git a/modules/migration/repo.go b/modules/migration/repo.go index 75622595d96..22c2cf6fb32 100644 --- a/modules/migration/repo.go +++ b/modules/migration/repo.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migration diff --git a/modules/migration/retry_downloader.go b/modules/migration/retry_downloader.go index 2e40c102bea..1cacf5f3758 100644 --- a/modules/migration/retry_downloader.go +++ b/modules/migration/retry_downloader.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 migration diff --git a/modules/migration/review.go b/modules/migration/review.go index b5a054c642f..a420c130c7e 100644 --- a/modules/migration/review.go +++ b/modules/migration/review.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 migration diff --git a/modules/migration/schemas_bindata.go b/modules/migration/schemas_bindata.go index febe0f75c0e..c5db3b34615 100644 --- a/modules/migration/schemas_bindata.go +++ b/modules/migration/schemas_bindata.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 //go:build bindata diff --git a/modules/migration/schemas_dynamic.go b/modules/migration/schemas_dynamic.go index 1b767b2e725..dca109d6afc 100644 --- a/modules/migration/schemas_dynamic.go +++ b/modules/migration/schemas_dynamic.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 //go:build !bindata diff --git a/modules/migration/schemas_static.go b/modules/migration/schemas_static.go index 02957fc4edb..8a0c340a655 100644 --- a/modules/migration/schemas_static.go +++ b/modules/migration/schemas_static.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 //go:build bindata diff --git a/modules/migration/uploader.go b/modules/migration/uploader.go index 57571861aaa..ff642aa4faf 100644 --- a/modules/migration/uploader.go +++ b/modules/migration/uploader.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migration diff --git a/modules/mirror/mirror.go b/modules/mirror/mirror.go index b261bd02426..37b4c2ac957 100644 --- a/modules/mirror/mirror.go +++ b/modules/mirror/mirror.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 mirror diff --git a/modules/nosql/leveldb.go b/modules/nosql/leveldb.go index 5da2291e036..aac5b2178e8 100644 --- a/modules/nosql/leveldb.go +++ b/modules/nosql/leveldb.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 nosql diff --git a/modules/nosql/manager.go b/modules/nosql/manager.go index 6092a678274..bc530bc148c 100644 --- a/modules/nosql/manager.go +++ b/modules/nosql/manager.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 nosql diff --git a/modules/nosql/manager_leveldb.go b/modules/nosql/manager_leveldb.go index 7539952cf1c..078a8028116 100644 --- a/modules/nosql/manager_leveldb.go +++ b/modules/nosql/manager_leveldb.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 nosql diff --git a/modules/nosql/manager_redis.go b/modules/nosql/manager_redis.go index f7d5a72ed23..728bc2f2ef7 100644 --- a/modules/nosql/manager_redis.go +++ b/modules/nosql/manager_redis.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 nosql diff --git a/modules/nosql/manager_redis_test.go b/modules/nosql/manager_redis_test.go index 99a8856f1e8..d979ea07f6f 100644 --- a/modules/nosql/manager_redis_test.go +++ b/modules/nosql/manager_redis_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 nosql diff --git a/modules/nosql/redis.go b/modules/nosql/redis.go index 13795f3d7bc..52e8ff9d027 100644 --- a/modules/nosql/redis.go +++ b/modules/nosql/redis.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 nosql diff --git a/modules/nosql/redis_test.go b/modules/nosql/redis_test.go index c70d236bdc9..43652e314c0 100644 --- a/modules/nosql/redis_test.go +++ b/modules/nosql/redis_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 nosql diff --git a/modules/notification/action/action.go b/modules/notification/action/action.go index d029405664b..2f882c2cb86 100644 --- a/modules/notification/action/action.go +++ b/modules/notification/action/action.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 action diff --git a/modules/notification/action/action_test.go b/modules/notification/action/action_test.go index dc31b3189b5..05ce70f3887 100644 --- a/modules/notification/action/action_test.go +++ b/modules/notification/action/action_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 action diff --git a/modules/notification/base/notifier.go b/modules/notification/base/notifier.go index 2f7deac88e2..dbed20ba3a5 100644 --- a/modules/notification/base/notifier.go +++ b/modules/notification/base/notifier.go @@ -1,6 +1,5 @@ // Copyright 2018 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 base diff --git a/modules/notification/base/null.go b/modules/notification/base/null.go index 88e0c93de19..de5f072d248 100644 --- a/modules/notification/base/null.go +++ b/modules/notification/base/null.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 base diff --git a/modules/notification/indexer/indexer.go b/modules/notification/indexer/indexer.go index 2bacd5dec02..c67f79d0f2a 100644 --- a/modules/notification/indexer/indexer.go +++ b/modules/notification/indexer/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 indexer diff --git a/modules/notification/mail/mail.go b/modules/notification/mail/mail.go index 123fa0e65ae..18f7fa22aea 100644 --- a/modules/notification/mail/mail.go +++ b/modules/notification/mail/mail.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 mail diff --git a/modules/notification/mirror/mirror.go b/modules/notification/mirror/mirror.go index 159c44ee6cd..426e36ee58b 100644 --- a/modules/notification/mirror/mirror.go +++ b/modules/notification/mirror/mirror.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 mirror diff --git a/modules/notification/notification.go b/modules/notification/notification.go index a117a60815b..c3e09bb8a91 100644 --- a/modules/notification/notification.go +++ b/modules/notification/notification.go @@ -1,6 +1,5 @@ // Copyright 2018 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 notification diff --git a/modules/notification/ui/ui.go b/modules/notification/ui/ui.go index a38289c9768..63a3ffd1999 100644 --- a/modules/notification/ui/ui.go +++ b/modules/notification/ui/ui.go @@ -1,6 +1,5 @@ // Copyright 2018 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 ui diff --git a/modules/notification/webhook/webhook.go b/modules/notification/webhook/webhook.go index 37ce7661f22..326d987ba53 100644 --- a/modules/notification/webhook/webhook.go +++ b/modules/notification/webhook/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 webhook diff --git a/modules/options/base.go b/modules/options/base.go index e1d6efa7f02..039e934b3a4 100644 --- a/modules/options/base.go +++ b/modules/options/base.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 options diff --git a/modules/options/dynamic.go b/modules/options/dynamic.go index 37398675809..a20253676e6 100644 --- a/modules/options/dynamic.go +++ b/modules/options/dynamic.go @@ -1,6 +1,5 @@ // Copyright 2016 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 //go:build !bindata diff --git a/modules/options/options.go b/modules/options/options.go index 6ba3bd6a868..17a8fa482e4 100644 --- a/modules/options/options.go +++ b/modules/options/options.go @@ -1,6 +1,5 @@ // Copyright 2016 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 options diff --git a/modules/options/options_bindata.go b/modules/options/options_bindata.go index 77b7a7ef419..29151cb3cbc 100644 --- a/modules/options/options_bindata.go +++ b/modules/options/options_bindata.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 //go:build bindata diff --git a/modules/options/static.go b/modules/options/static.go index 4d60879be37..ff3c86d3f84 100644 --- a/modules/options/static.go +++ b/modules/options/static.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 //go:build bindata diff --git a/modules/packages/composer/metadata.go b/modules/packages/composer/metadata.go index 797576b1e7d..b98294001c2 100644 --- a/modules/packages/composer/metadata.go +++ b/modules/packages/composer/metadata.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 composer diff --git a/modules/packages/composer/metadata_test.go b/modules/packages/composer/metadata_test.go index feadc18b6a1..a0e1a77a6ed 100644 --- a/modules/packages/composer/metadata_test.go +++ b/modules/packages/composer/metadata_test.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 composer diff --git a/modules/packages/conan/conanfile_parser.go b/modules/packages/conan/conanfile_parser.go index 960e813533d..c47b242cdc0 100644 --- a/modules/packages/conan/conanfile_parser.go +++ b/modules/packages/conan/conanfile_parser.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 conan diff --git a/modules/packages/conan/conanfile_parser_test.go b/modules/packages/conan/conanfile_parser_test.go index 0ac9c87b145..58015701841 100644 --- a/modules/packages/conan/conanfile_parser_test.go +++ b/modules/packages/conan/conanfile_parser_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 conan diff --git a/modules/packages/conan/conaninfo_parser.go b/modules/packages/conan/conaninfo_parser.go index bb228e0207a..5bb3fb8930c 100644 --- a/modules/packages/conan/conaninfo_parser.go +++ b/modules/packages/conan/conaninfo_parser.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 conan diff --git a/modules/packages/conan/conaninfo_parser_test.go b/modules/packages/conan/conaninfo_parser_test.go index 3e28191b062..556a4b939ee 100644 --- a/modules/packages/conan/conaninfo_parser_test.go +++ b/modules/packages/conan/conaninfo_parser_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 conan diff --git a/modules/packages/conan/metadata.go b/modules/packages/conan/metadata.go index a7d6a9df0b4..256a376cf71 100644 --- a/modules/packages/conan/metadata.go +++ b/modules/packages/conan/metadata.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 conan diff --git a/modules/packages/conan/reference.go b/modules/packages/conan/reference.go index 49236981b67..37a5170dd3b 100644 --- a/modules/packages/conan/reference.go +++ b/modules/packages/conan/reference.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 conan diff --git a/modules/packages/conan/reference_test.go b/modules/packages/conan/reference_test.go index 98eb2c84784..6ea86eb0ddc 100644 --- a/modules/packages/conan/reference_test.go +++ b/modules/packages/conan/reference_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 conan diff --git a/modules/packages/container/helm/helm.go b/modules/packages/container/helm/helm.go index 98d3824a85e..6981d430ade 100644 --- a/modules/packages/container/helm/helm.go +++ b/modules/packages/container/helm/helm.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 helm diff --git a/modules/packages/container/metadata.go b/modules/packages/container/metadata.go index fd38e678599..c3946f38f15 100644 --- a/modules/packages/container/metadata.go +++ b/modules/packages/container/metadata.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 container diff --git a/modules/packages/container/metadata_test.go b/modules/packages/container/metadata_test.go index 9400cf69544..f9ee478d634 100644 --- a/modules/packages/container/metadata_test.go +++ b/modules/packages/container/metadata_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 container diff --git a/modules/packages/container/oci/digest.go b/modules/packages/container/oci/digest.go index 5234814cfe4..dd9cc0095c5 100644 --- a/modules/packages/container/oci/digest.go +++ b/modules/packages/container/oci/digest.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 oci diff --git a/modules/packages/container/oci/mediatype.go b/modules/packages/container/oci/mediatype.go index 2636fbe2880..f9c3907e172 100644 --- a/modules/packages/container/oci/mediatype.go +++ b/modules/packages/container/oci/mediatype.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 oci diff --git a/modules/packages/container/oci/oci.go b/modules/packages/container/oci/oci.go index 01cca8fe698..570d2e92c26 100644 --- a/modules/packages/container/oci/oci.go +++ b/modules/packages/container/oci/oci.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 oci diff --git a/modules/packages/container/oci/reference.go b/modules/packages/container/oci/reference.go index 120ff122d4e..7ec399255d3 100644 --- a/modules/packages/container/oci/reference.go +++ b/modules/packages/container/oci/reference.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 oci diff --git a/modules/packages/content_store.go b/modules/packages/content_store.go index 13763db9864..1181fa4d528 100644 --- a/modules/packages/content_store.go +++ b/modules/packages/content_store.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 packages diff --git a/modules/packages/hashed_buffer.go b/modules/packages/hashed_buffer.go index 3f8cafcfb53..ef00a45057f 100644 --- a/modules/packages/hashed_buffer.go +++ b/modules/packages/hashed_buffer.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 packages diff --git a/modules/packages/hashed_buffer_test.go b/modules/packages/hashed_buffer_test.go index e21ec67e1fe..529262226fa 100644 --- a/modules/packages/hashed_buffer_test.go +++ b/modules/packages/hashed_buffer_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 packages diff --git a/modules/packages/helm/metadata.go b/modules/packages/helm/metadata.go index fb5e51d0c53..98b5919a73f 100644 --- a/modules/packages/helm/metadata.go +++ b/modules/packages/helm/metadata.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 helm diff --git a/modules/packages/maven/metadata.go b/modules/packages/maven/metadata.go index 6ee9d69687c..be057c8c07b 100644 --- a/modules/packages/maven/metadata.go +++ b/modules/packages/maven/metadata.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 maven diff --git a/modules/packages/maven/metadata_test.go b/modules/packages/maven/metadata_test.go index a17d4565603..f4bc84268e7 100644 --- a/modules/packages/maven/metadata_test.go +++ b/modules/packages/maven/metadata_test.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 maven diff --git a/modules/packages/multi_hasher.go b/modules/packages/multi_hasher.go index 4d17441d8c1..83a4b5b7afd 100644 --- a/modules/packages/multi_hasher.go +++ b/modules/packages/multi_hasher.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 packages diff --git a/modules/packages/multi_hasher_test.go b/modules/packages/multi_hasher_test.go index 6c895ce120b..42c1ef416f4 100644 --- a/modules/packages/multi_hasher_test.go +++ b/modules/packages/multi_hasher_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 packages diff --git a/modules/packages/npm/creator.go b/modules/packages/npm/creator.go index 16cadefb891..02f67248129 100644 --- a/modules/packages/npm/creator.go +++ b/modules/packages/npm/creator.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 npm diff --git a/modules/packages/npm/creator_test.go b/modules/packages/npm/creator_test.go index 2b844f4b0e5..9a2b1e10b2f 100644 --- a/modules/packages/npm/creator_test.go +++ b/modules/packages/npm/creator_test.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 npm diff --git a/modules/packages/npm/metadata.go b/modules/packages/npm/metadata.go index 44714cd6ea5..aafbdf779c2 100644 --- a/modules/packages/npm/metadata.go +++ b/modules/packages/npm/metadata.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 npm diff --git a/modules/packages/nuget/metadata.go b/modules/packages/nuget/metadata.go index 2b555e47e95..dc72d0982a1 100644 --- a/modules/packages/nuget/metadata.go +++ b/modules/packages/nuget/metadata.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 nuget diff --git a/modules/packages/nuget/metadata_test.go b/modules/packages/nuget/metadata_test.go index e8c7773e970..74c3e7dfaa5 100644 --- a/modules/packages/nuget/metadata_test.go +++ b/modules/packages/nuget/metadata_test.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 nuget diff --git a/modules/packages/nuget/symbol_extractor.go b/modules/packages/nuget/symbol_extractor.go index 9c04d7bfb4e..634bbb17e62 100644 --- a/modules/packages/nuget/symbol_extractor.go +++ b/modules/packages/nuget/symbol_extractor.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 nuget diff --git a/modules/packages/nuget/symbol_extractor_test.go b/modules/packages/nuget/symbol_extractor_test.go index 892d718caa5..fa1b80ee82e 100644 --- a/modules/packages/nuget/symbol_extractor_test.go +++ b/modules/packages/nuget/symbol_extractor_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 nuget diff --git a/modules/packages/pub/metadata.go b/modules/packages/pub/metadata.go index f3e9bf20bcb..36fe6657076 100644 --- a/modules/packages/pub/metadata.go +++ b/modules/packages/pub/metadata.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 pub diff --git a/modules/packages/pub/metadata_test.go b/modules/packages/pub/metadata_test.go index e43ed64fc6c..4c0c3f0ec69 100644 --- a/modules/packages/pub/metadata_test.go +++ b/modules/packages/pub/metadata_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 pub diff --git a/modules/packages/pypi/metadata.go b/modules/packages/pypi/metadata.go index df367d10e21..125728c4f13 100644 --- a/modules/packages/pypi/metadata.go +++ b/modules/packages/pypi/metadata.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 pypi diff --git a/modules/packages/rubygems/marshal.go b/modules/packages/rubygems/marshal.go index 2c45042fa8c..14fb755606e 100644 --- a/modules/packages/rubygems/marshal.go +++ b/modules/packages/rubygems/marshal.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 rubygems diff --git a/modules/packages/rubygems/marshal_test.go b/modules/packages/rubygems/marshal_test.go index e5963ebcd63..501757bfeda 100644 --- a/modules/packages/rubygems/marshal_test.go +++ b/modules/packages/rubygems/marshal_test.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 rubygems diff --git a/modules/packages/rubygems/metadata.go b/modules/packages/rubygems/metadata.go index f1fc3999184..e2c73c8f3a0 100644 --- a/modules/packages/rubygems/metadata.go +++ b/modules/packages/rubygems/metadata.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 rubygems diff --git a/modules/packages/rubygems/metadata_test.go b/modules/packages/rubygems/metadata_test.go index dbefa9c2367..ec2fa08b6b7 100644 --- a/modules/packages/rubygems/metadata_test.go +++ b/modules/packages/rubygems/metadata_test.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 rubygems diff --git a/modules/packages/vagrant/metadata.go b/modules/packages/vagrant/metadata.go index f52989b2e2e..6789533339c 100644 --- a/modules/packages/vagrant/metadata.go +++ b/modules/packages/vagrant/metadata.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 vagrant diff --git a/modules/packages/vagrant/metadata_test.go b/modules/packages/vagrant/metadata_test.go index 9720c945ae8..d616ffe3d3e 100644 --- a/modules/packages/vagrant/metadata_test.go +++ b/modules/packages/vagrant/metadata_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 vagrant diff --git a/modules/password/password.go b/modules/password/password.go index e1f1f769ec7..fe2a2a7bd50 100644 --- a/modules/password/password.go +++ b/modules/password/password.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 password diff --git a/modules/password/password_test.go b/modules/password/password_test.go index 63f98aa9c35..6c35dc86bd8 100644 --- a/modules/password/password_test.go +++ b/modules/password/password_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 password diff --git a/modules/password/pwn.go b/modules/password/pwn.go index 938524e6dee..e8565e5bb1f 100644 --- a/modules/password/pwn.go +++ b/modules/password/pwn.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 password diff --git a/modules/pprof/pprof.go b/modules/pprof/pprof.go index 8ce0ad484e7..c611c14270d 100644 --- a/modules/pprof/pprof.go +++ b/modules/pprof/pprof.go @@ -1,6 +1,5 @@ // Copyright 2018 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 pprof diff --git a/modules/private/hook.go b/modules/private/hook.go index e208c143789..027014270ad 100644 --- a/modules/private/hook.go +++ b/modules/private/hook.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 private diff --git a/modules/private/internal.go b/modules/private/internal.go index 21e5c9a2799..a8b62fdde72 100644 --- a/modules/private/internal.go +++ b/modules/private/internal.go @@ -1,6 +1,5 @@ // 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 private diff --git a/modules/private/key.go b/modules/private/key.go index 8dfd82a6d62..f09d6de2bf8 100644 --- a/modules/private/key.go +++ b/modules/private/key.go @@ -1,6 +1,5 @@ // Copyright 2018 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 private diff --git a/modules/private/mail.go b/modules/private/mail.go index 3efef3bece8..6eb7c2acd0a 100644 --- a/modules/private/mail.go +++ b/modules/private/mail.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 private diff --git a/modules/private/manager.go b/modules/private/manager.go index ba51260ebbe..bbf470cd7ad 100644 --- a/modules/private/manager.go +++ b/modules/private/manager.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 private diff --git a/modules/private/restore_repo.go b/modules/private/restore_repo.go index b1561f392bd..f40d914a7bb 100644 --- a/modules/private/restore_repo.go +++ b/modules/private/restore_repo.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 private diff --git a/modules/private/serv.go b/modules/private/serv.go index 2e1367e4c4f..c176e1ddfc8 100644 --- a/modules/private/serv.go +++ b/modules/private/serv.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 private diff --git a/modules/process/context.go b/modules/process/context.go index 6df5bc1513f..f1bc582ff06 100644 --- a/modules/process/context.go +++ b/modules/process/context.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 process diff --git a/modules/process/error.go b/modules/process/error.go index 7a72bda40e3..8f02f652585 100644 --- a/modules/process/error.go +++ b/modules/process/error.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 process diff --git a/modules/process/manager.go b/modules/process/manager.go index 7f14287de50..1272510067f 100644 --- a/modules/process/manager.go +++ b/modules/process/manager.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 process diff --git a/modules/process/manager_exec.go b/modules/process/manager_exec.go index 77e3d3193a9..c9831737483 100644 --- a/modules/process/manager_exec.go +++ b/modules/process/manager_exec.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 process diff --git a/modules/process/manager_stacktraces.go b/modules/process/manager_stacktraces.go index 628d9cebcd1..49bd5071f69 100644 --- a/modules/process/manager_stacktraces.go +++ b/modules/process/manager_stacktraces.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 process diff --git a/modules/process/manager_test.go b/modules/process/manager_test.go index 30eabeb37a4..527072713ff 100644 --- a/modules/process/manager_test.go +++ b/modules/process/manager_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 process diff --git a/modules/process/manager_unix.go b/modules/process/manager_unix.go index 1e7c77fdbf9..c5be906b35e 100644 --- a/modules/process/manager_unix.go +++ b/modules/process/manager_unix.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 //go:build !windows diff --git a/modules/process/manager_windows.go b/modules/process/manager_windows.go index 35f66d9fa5b..44a84f22031 100644 --- a/modules/process/manager_windows.go +++ b/modules/process/manager_windows.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 //go:build windows diff --git a/modules/process/process.go b/modules/process/process.go index 2f7ea183732..06a28c4a601 100644 --- a/modules/process/process.go +++ b/modules/process/process.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 process diff --git a/modules/proxy/proxy.go b/modules/proxy/proxy.go index 61730544b07..f0cd366c128 100644 --- a/modules/proxy/proxy.go +++ b/modules/proxy/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 proxy diff --git a/modules/proxyprotocol/conn.go b/modules/proxyprotocol/conn.go index 10333b204d6..f437f13683c 100644 --- a/modules/proxyprotocol/conn.go +++ b/modules/proxyprotocol/conn.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 proxyprotocol diff --git a/modules/proxyprotocol/errors.go b/modules/proxyprotocol/errors.go index 2acf9d84b0c..5439a86bd8f 100644 --- a/modules/proxyprotocol/errors.go +++ b/modules/proxyprotocol/errors.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 proxyprotocol diff --git a/modules/proxyprotocol/listener.go b/modules/proxyprotocol/listener.go index 64d9b323e51..ec85c425d3a 100644 --- a/modules/proxyprotocol/listener.go +++ b/modules/proxyprotocol/listener.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 proxyprotocol diff --git a/modules/proxyprotocol/util.go b/modules/proxyprotocol/util.go index b12771b686a..a280663b27e 100644 --- a/modules/proxyprotocol/util.go +++ b/modules/proxyprotocol/util.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 proxyprotocol diff --git a/modules/public/mime_types.go b/modules/public/mime_types.go index f8c92e824fd..32bdf3bfa25 100644 --- a/modules/public/mime_types.go +++ b/modules/public/mime_types.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 public diff --git a/modules/public/public.go b/modules/public/public.go index ac1d80c860f..42026f9b105 100644 --- a/modules/public/public.go +++ b/modules/public/public.go @@ -1,6 +1,5 @@ // Copyright 2016 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 public diff --git a/modules/public/public_bindata.go b/modules/public/public_bindata.go index fe250c64543..4878f88ad1d 100644 --- a/modules/public/public_bindata.go +++ b/modules/public/public_bindata.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 //go:build bindata diff --git a/modules/public/public_test.go b/modules/public/public_test.go index 8b58d6af336..5e4bf5d6711 100644 --- a/modules/public/public_test.go +++ b/modules/public/public_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 public diff --git a/modules/public/serve_dynamic.go b/modules/public/serve_dynamic.go index 672924a6365..cd74ee57436 100644 --- a/modules/public/serve_dynamic.go +++ b/modules/public/serve_dynamic.go @@ -1,6 +1,5 @@ // Copyright 2016 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 //go:build !bindata diff --git a/modules/public/serve_static.go b/modules/public/serve_static.go index 10120bf85de..e85ca79253f 100644 --- a/modules/public/serve_static.go +++ b/modules/public/serve_static.go @@ -1,6 +1,5 @@ // Copyright 2016 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 //go:build bindata diff --git a/modules/queue/bytefifo.go b/modules/queue/bytefifo.go index bb98d468fb0..c33b79426ed 100644 --- a/modules/queue/bytefifo.go +++ b/modules/queue/bytefifo.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 queue diff --git a/modules/queue/helper.go b/modules/queue/helper.go index 9ad95badeb9..c6fb9447b70 100644 --- a/modules/queue/helper.go +++ b/modules/queue/helper.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 queue diff --git a/modules/queue/manager.go b/modules/queue/manager.go index bba2c54ad21..6975e029077 100644 --- a/modules/queue/manager.go +++ b/modules/queue/manager.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 queue diff --git a/modules/queue/queue.go b/modules/queue/queue.go index a166a935a67..22ee64f8e20 100644 --- a/modules/queue/queue.go +++ b/modules/queue/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 queue diff --git a/modules/queue/queue_bytefifo.go b/modules/queue/queue_bytefifo.go index 79f69f07ce8..ee00a5428ab 100644 --- a/modules/queue/queue_bytefifo.go +++ b/modules/queue/queue_bytefifo.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 queue diff --git a/modules/queue/queue_channel.go b/modules/queue/queue_channel.go index 028023d5003..431f48390c8 100644 --- a/modules/queue/queue_channel.go +++ b/modules/queue/queue_channel.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 queue diff --git a/modules/queue/queue_channel_test.go b/modules/queue/queue_channel_test.go index 949c4528931..9b92398bacd 100644 --- a/modules/queue/queue_channel_test.go +++ b/modules/queue/queue_channel_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 queue diff --git a/modules/queue/queue_disk.go b/modules/queue/queue_disk.go index 2691ab02f51..fbedb8e5b93 100644 --- a/modules/queue/queue_disk.go +++ b/modules/queue/queue_disk.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 queue diff --git a/modules/queue/queue_disk_channel.go b/modules/queue/queue_disk_channel.go index c00f6202766..c7526714c65 100644 --- a/modules/queue/queue_disk_channel.go +++ b/modules/queue/queue_disk_channel.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 queue diff --git a/modules/queue/queue_disk_channel_test.go b/modules/queue/queue_disk_channel_test.go index b1820e73aca..318610355e4 100644 --- a/modules/queue/queue_disk_channel_test.go +++ b/modules/queue/queue_disk_channel_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 queue diff --git a/modules/queue/queue_disk_test.go b/modules/queue/queue_disk_test.go index b0835c896fe..8f83abf42c0 100644 --- a/modules/queue/queue_disk_test.go +++ b/modules/queue/queue_disk_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 queue diff --git a/modules/queue/queue_redis.go b/modules/queue/queue_redis.go index 84ab235d5ef..039e95241cf 100644 --- a/modules/queue/queue_redis.go +++ b/modules/queue/queue_redis.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 queue diff --git a/modules/queue/queue_test.go b/modules/queue/queue_test.go index 65fb816537d..42d34c806ce 100644 --- a/modules/queue/queue_test.go +++ b/modules/queue/queue_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 queue diff --git a/modules/queue/queue_wrapped.go b/modules/queue/queue_wrapped.go index e581ba75f30..84d6dd98a5a 100644 --- a/modules/queue/queue_wrapped.go +++ b/modules/queue/queue_wrapped.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 queue diff --git a/modules/queue/setting.go b/modules/queue/setting.go index 880770f0739..1e5259fcfba 100644 --- a/modules/queue/setting.go +++ b/modules/queue/setting.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 queue diff --git a/modules/queue/unique_queue.go b/modules/queue/unique_queue.go index 87e0594ecfb..8f8215c71d8 100644 --- a/modules/queue/unique_queue.go +++ b/modules/queue/unique_queue.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 queue diff --git a/modules/queue/unique_queue_channel.go b/modules/queue/unique_queue_channel.go index d1bf7239eb9..f2d3dbdc970 100644 --- a/modules/queue/unique_queue_channel.go +++ b/modules/queue/unique_queue_channel.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 queue diff --git a/modules/queue/unique_queue_channel_test.go b/modules/queue/unique_queue_channel_test.go index 6daf3fc96ec..9372694b87a 100644 --- a/modules/queue/unique_queue_channel_test.go +++ b/modules/queue/unique_queue_channel_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 queue diff --git a/modules/queue/unique_queue_disk.go b/modules/queue/unique_queue_disk.go index dae32f75a85..406f64784ce 100644 --- a/modules/queue/unique_queue_disk.go +++ b/modules/queue/unique_queue_disk.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 queue diff --git a/modules/queue/unique_queue_disk_channel.go b/modules/queue/unique_queue_disk_channel.go index 8e0322bb906..405726182dc 100644 --- a/modules/queue/unique_queue_disk_channel.go +++ b/modules/queue/unique_queue_disk_channel.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 queue diff --git a/modules/queue/unique_queue_redis.go b/modules/queue/unique_queue_redis.go index 477d5dd81f1..491ae5d15ea 100644 --- a/modules/queue/unique_queue_redis.go +++ b/modules/queue/unique_queue_redis.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 queue diff --git a/modules/queue/unique_queue_wrapped.go b/modules/queue/unique_queue_wrapped.go index 5245a35f771..22eeb75c401 100644 --- a/modules/queue/unique_queue_wrapped.go +++ b/modules/queue/unique_queue_wrapped.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 queue diff --git a/modules/queue/workerpool.go b/modules/queue/workerpool.go index bdf04a363b7..244927880e9 100644 --- a/modules/queue/workerpool.go +++ b/modules/queue/workerpool.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 queue diff --git a/modules/recaptcha/recaptcha.go b/modules/recaptcha/recaptcha.go index 91b70dc588a..1777d169c10 100644 --- a/modules/recaptcha/recaptcha.go +++ b/modules/recaptcha/recaptcha.go @@ -1,6 +1,5 @@ // Copyright 2018 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 recaptcha diff --git a/modules/references/references.go b/modules/references/references.go index 8fd0c8f055b..5cbbf8313c9 100644 --- a/modules/references/references.go +++ b/modules/references/references.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 references diff --git a/modules/references/references_test.go b/modules/references/references_test.go index 507adadb1fa..835cee3a364 100644 --- a/modules/references/references_test.go +++ b/modules/references/references_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 references diff --git a/modules/regexplru/regexplru.go b/modules/regexplru/regexplru.go index 97c7cff4c10..dd3c5df82db 100644 --- a/modules/regexplru/regexplru.go +++ b/modules/regexplru/regexplru.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 regexplru diff --git a/modules/regexplru/regexplru_test.go b/modules/regexplru/regexplru_test.go index 041f0dcfb92..9c24b23fa93 100644 --- a/modules/regexplru/regexplru_test.go +++ b/modules/regexplru/regexplru_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 regexplru diff --git a/modules/repository/collaborator.go b/modules/repository/collaborator.go index b83d8199b9d..44c03f999ee 100644 --- a/modules/repository/collaborator.go +++ b/modules/repository/collaborator.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 repository diff --git a/modules/repository/collaborator_test.go b/modules/repository/collaborator_test.go index 1b927aa3b67..ad835ae4d42 100644 --- a/modules/repository/collaborator_test.go +++ b/modules/repository/collaborator_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 repository diff --git a/modules/repository/commits.go b/modules/repository/commits.go index 7d6eec151f4..a47f9b2dc83 100644 --- a/modules/repository/commits.go +++ b/modules/repository/commits.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 repository diff --git a/modules/repository/commits_test.go b/modules/repository/commits_test.go index 7bd741d0c8b..2ae4bc73d2e 100644 --- a/modules/repository/commits_test.go +++ b/modules/repository/commits_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 repository diff --git a/modules/repository/create.go b/modules/repository/create.go index c43f1e09898..8bee890aadb 100644 --- a/modules/repository/create.go +++ b/modules/repository/create.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 repository diff --git a/modules/repository/create_test.go b/modules/repository/create_test.go index 30407828458..94a9b26aa69 100644 --- a/modules/repository/create_test.go +++ b/modules/repository/create_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 repository diff --git a/modules/repository/delete.go b/modules/repository/delete.go index 25fb15e300f..c7e05e66696 100644 --- a/modules/repository/delete.go +++ b/modules/repository/delete.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 repository diff --git a/modules/repository/env.go b/modules/repository/env.go index e86e0d4535e..646bf35cc67 100644 --- a/modules/repository/env.go +++ b/modules/repository/env.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 repository diff --git a/modules/repository/fork.go b/modules/repository/fork.go index c967d3b741b..8e9f3a8976f 100644 --- a/modules/repository/fork.go +++ b/modules/repository/fork.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 repository diff --git a/modules/repository/generate.go b/modules/repository/generate.go index c5fd7d60bfc..5726a8fb1b4 100644 --- a/modules/repository/generate.go +++ b/modules/repository/generate.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 repository diff --git a/modules/repository/generate_test.go b/modules/repository/generate_test.go index 139fa4c918d..1cb9a50f673 100644 --- a/modules/repository/generate_test.go +++ b/modules/repository/generate_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 repository diff --git a/modules/repository/hooks.go b/modules/repository/hooks.go index 4d7d294a921..a95b9c2e994 100644 --- a/modules/repository/hooks.go +++ b/modules/repository/hooks.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 repository diff --git a/modules/repository/init.go b/modules/repository/init.go index 65072a95994..cd7176c238d 100644 --- a/modules/repository/init.go +++ b/modules/repository/init.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 repository diff --git a/modules/repository/main_test.go b/modules/repository/main_test.go index 42134fa7ada..007790f2a96 100644 --- a/modules/repository/main_test.go +++ b/modules/repository/main_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 repository diff --git a/modules/repository/push.go b/modules/repository/push.go index 4e4b4000b1a..1fa711b359c 100644 --- a/modules/repository/push.go +++ b/modules/repository/push.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 repository diff --git a/modules/repository/repo.go b/modules/repository/repo.go index f1360f44788..a90eb8a764a 100644 --- a/modules/repository/repo.go +++ b/modules/repository/repo.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 repository diff --git a/modules/repository/temp.go b/modules/repository/temp.go index 21af0394690..53646718e09 100644 --- a/modules/repository/temp.go +++ b/modules/repository/temp.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 repository diff --git a/modules/secret/secret.go b/modules/secret/secret.go index e7edc7a95e5..b84d1cfea87 100644 --- a/modules/secret/secret.go +++ b/modules/secret/secret.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 secret diff --git a/modules/secret/secret_test.go b/modules/secret/secret_test.go index b1c99d85136..0a189ecebf9 100644 --- a/modules/secret/secret_test.go +++ b/modules/secret/secret_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 secret diff --git a/modules/session/db.go b/modules/session/db.go index f9de37210fe..6fdfb81e031 100644 --- a/modules/session/db.go +++ b/modules/session/db.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 session diff --git a/modules/session/store.go b/modules/session/store.go index 8c5d7d82eb4..7b0c550ace3 100644 --- a/modules/session/store.go +++ b/modules/session/store.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 session diff --git a/modules/session/virtual.go b/modules/session/virtual.go index 928dd497401..fcbc44249dc 100644 --- a/modules/session/virtual.go +++ b/modules/session/virtual.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 session diff --git a/modules/setting/attachment.go b/modules/setting/attachment.go index 474b73293cc..68a2e87204e 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 9a449651244..2da79adb3be 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 74ec6618a53..ae0736e8307 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 9475887ecc7..a76de2797ff 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 cb397d81c45..29cdca8fbfd 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 4e554573959..be06c47478f 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 1f18868d8ea..c1037cfb27e 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 a90be2a6875..481ca969b1f 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 26415102860..a80df47ab48 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 583d9a6e2bc..acab3eb5800 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 266bbc3c5aa..a05f77a97e0 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 8b8587e09bb..0e67b18a3e3 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 46d4027d145..1b1c8f7e7f5 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 0ff1d814abc..8f0437be8a0 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 686b0436574..6f8e875c1d4 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 1d9535360a0..7372fc998d9 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 5a9b7054b9d..7324328ee30 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 fd41bdd7cc3..c262234b6a2 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 4b10f3dc6e5..2f6d08b6b88 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 8e5b864e241..6a0847bd7e2 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 2bd0322d06f..9ddce97dafe 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 6cfd99156f0..6492af82d2c 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 62201032c74..120fbb5bda8 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 059273dce4b..04d6e558346 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 af9041ade36..9d16a2360bc 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 56505b0ca41..53e09e8dad8 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 53fb0066d99..fed33395ede 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 d3bb33b2483..a67d0d849a0 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 d0406dbf902..19594369be6 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 d2eb6ebcd7e..7b4bfc5c7b6 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 62ca1d82e88..082538c3858 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 df7310b09b4..68892a21982 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 0e7f5a55ab1..f77ee659748 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 075152db59c..32f74aa072c 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 ffd8b7aa014..256bbb7a528 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 c39d4411086..cfb0f546684 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 0bfd7dcb4dd..51e36c3419b 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 diff --git a/modules/sitemap/sitemap.go b/modules/sitemap/sitemap.go index 14953765abb..ceb65c1c8d2 100644 --- a/modules/sitemap/sitemap.go +++ b/modules/sitemap/sitemap.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 sitemap diff --git a/modules/sitemap/sitemap_test.go b/modules/sitemap/sitemap_test.go index 63007b84791..ab879b272e7 100644 --- a/modules/sitemap/sitemap_test.go +++ b/modules/sitemap/sitemap_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 sitemap diff --git a/modules/ssh/init.go b/modules/ssh/init.go index 72cb6df7a43..21d4f899361 100644 --- a/modules/ssh/init.go +++ b/modules/ssh/init.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 ssh diff --git a/modules/ssh/ssh.go b/modules/ssh/ssh.go index 6b601c008fe..9ec14f2caa7 100644 --- a/modules/ssh/ssh.go +++ b/modules/ssh/ssh.go @@ -1,6 +1,5 @@ // 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 ssh diff --git a/modules/ssh/ssh_graceful.go b/modules/ssh/ssh_graceful.go index 166ea0b9829..cad2c685bd6 100644 --- a/modules/ssh/ssh_graceful.go +++ b/modules/ssh/ssh_graceful.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 ssh diff --git a/modules/storage/helper.go b/modules/storage/helper.go index 1a25716ccb7..5aaa2a9e643 100644 --- a/modules/storage/helper.go +++ b/modules/storage/helper.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 storage diff --git a/modules/storage/local.go b/modules/storage/local.go index 5d5b06b648d..a439a245922 100644 --- a/modules/storage/local.go +++ b/modules/storage/local.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 storage diff --git a/modules/storage/local_test.go b/modules/storage/local_test.go index 0749036cb7e..994c54e8590 100644 --- a/modules/storage/local_test.go +++ b/modules/storage/local_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 storage diff --git a/modules/storage/minio.go b/modules/storage/minio.go index f7b42d674c0..912f820ede0 100644 --- a/modules/storage/minio.go +++ b/modules/storage/minio.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 storage diff --git a/modules/storage/storage.go b/modules/storage/storage.go index 1b83e3271f0..a7d3b9ce1f6 100644 --- a/modules/storage/storage.go +++ b/modules/storage/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 storage diff --git a/modules/structs/activitypub.go b/modules/structs/activitypub.go index 86681bf9d75..117eb0bed29 100644 --- a/modules/structs/activitypub.go +++ b/modules/structs/activitypub.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 structs diff --git a/modules/structs/admin_user.go b/modules/structs/admin_user.go index 2f6f502af63..0739653eea4 100644 --- a/modules/structs/admin_user.go +++ b/modules/structs/admin_user.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 structs diff --git a/modules/structs/attachment.go b/modules/structs/attachment.go index 7becd943354..38beca5e99a 100644 --- a/modules/structs/attachment.go +++ b/modules/structs/attachment.go @@ -1,6 +1,5 @@ // 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 structs // import "code.gitea.io/gitea/modules/structs" diff --git a/modules/structs/commit_status.go b/modules/structs/commit_status.go index 23e0c383b8b..dfde79190c3 100644 --- a/modules/structs/commit_status.go +++ b/modules/structs/commit_status.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 structs diff --git a/modules/structs/cron.go b/modules/structs/cron.go index f52a5ed3c90..39c6a06a422 100644 --- a/modules/structs/cron.go +++ b/modules/structs/cron.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 structs diff --git a/modules/structs/doc.go b/modules/structs/doc.go index 4c2fdbf73db..0db0a25fd44 100644 --- a/modules/structs/doc.go +++ b/modules/structs/doc.go @@ -1,5 +1,4 @@ // Copyright 2016 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 structs diff --git a/modules/structs/fork.go b/modules/structs/fork.go index 21afd636c74..eb7774afbcb 100644 --- a/modules/structs/fork.go +++ b/modules/structs/fork.go @@ -1,6 +1,5 @@ // Copyright 2016 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 structs diff --git a/modules/structs/git_blob.go b/modules/structs/git_blob.go index 5715f2585b9..96c7a271a92 100644 --- a/modules/structs/git_blob.go +++ b/modules/structs/git_blob.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 structs diff --git a/modules/structs/git_hook.go b/modules/structs/git_hook.go index 8a36b0b266a..20230250ec3 100644 --- a/modules/structs/git_hook.go +++ b/modules/structs/git_hook.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 structs diff --git a/modules/structs/hook.go b/modules/structs/hook.go index f0600a192d9..b722e32ca07 100644 --- a/modules/structs/hook.go +++ b/modules/structs/hook.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 structs diff --git a/modules/structs/issue.go b/modules/structs/issue.go index 45c3f6294ab..00166b7a07e 100644 --- a/modules/structs/issue.go +++ b/modules/structs/issue.go @@ -1,6 +1,5 @@ // Copyright 2016 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 structs diff --git a/modules/structs/issue_comment.go b/modules/structs/issue_comment.go index e13ec05d018..4a1085ba501 100644 --- a/modules/structs/issue_comment.go +++ b/modules/structs/issue_comment.go @@ -1,6 +1,5 @@ // Copyright 2016 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 structs diff --git a/modules/structs/issue_label.go b/modules/structs/issue_label.go index 2aadd8638e5..5c622797f44 100644 --- a/modules/structs/issue_label.go +++ b/modules/structs/issue_label.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // 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 structs diff --git a/modules/structs/issue_milestone.go b/modules/structs/issue_milestone.go index ace783ebbcf..a840cf1820c 100644 --- a/modules/structs/issue_milestone.go +++ b/modules/structs/issue_milestone.go @@ -1,6 +1,5 @@ // Copyright 2016 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 structs diff --git a/modules/structs/issue_reaction.go b/modules/structs/issue_reaction.go index 56408313ee4..8d907a47e56 100644 --- a/modules/structs/issue_reaction.go +++ b/modules/structs/issue_reaction.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 structs diff --git a/modules/structs/issue_stopwatch.go b/modules/structs/issue_stopwatch.go index 15d17cdda7e..ceade1ddd2f 100644 --- a/modules/structs/issue_stopwatch.go +++ b/modules/structs/issue_stopwatch.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 structs diff --git a/modules/structs/issue_test.go b/modules/structs/issue_test.go index 72b40f7cf24..fa7a20db8b5 100644 --- a/modules/structs/issue_test.go +++ b/modules/structs/issue_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 structs diff --git a/modules/structs/issue_tracked_time.go b/modules/structs/issue_tracked_time.go index 7e150687ef0..a3904af80ee 100644 --- a/modules/structs/issue_tracked_time.go +++ b/modules/structs/issue_tracked_time.go @@ -1,6 +1,5 @@ // 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 structs diff --git a/modules/structs/lfs_lock.go b/modules/structs/lfs_lock.go index 3709106315f..6b4c0bc111a 100644 --- a/modules/structs/lfs_lock.go +++ b/modules/structs/lfs_lock.go @@ -1,6 +1,5 @@ // 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 structs diff --git a/modules/structs/mirror.go b/modules/structs/mirror.go index 8e8a8a2705d..21e7751f765 100644 --- a/modules/structs/mirror.go +++ b/modules/structs/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 structs diff --git a/modules/structs/miscellaneous.go b/modules/structs/miscellaneous.go index c21c466cb07..596a551e0d4 100644 --- a/modules/structs/miscellaneous.go +++ b/modules/structs/miscellaneous.go @@ -1,6 +1,5 @@ // Copyright 2015 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 structs diff --git a/modules/structs/nodeinfo.go b/modules/structs/nodeinfo.go index 6fd1eb624a7..802c8d3e576 100644 --- a/modules/structs/nodeinfo.go +++ b/modules/structs/nodeinfo.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 structs diff --git a/modules/structs/notifications.go b/modules/structs/notifications.go index 3fd9088ce38..7fbf4cb46d8 100644 --- a/modules/structs/notifications.go +++ b/modules/structs/notifications.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 structs diff --git a/modules/structs/org.go b/modules/structs/org.go index 1e98c59ba49..b4c58623fd2 100644 --- a/modules/structs/org.go +++ b/modules/structs/org.go @@ -1,6 +1,5 @@ // Copyright 2015 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 structs diff --git a/modules/structs/org_member.go b/modules/structs/org_member.go index 3b2a8b599a5..2df5099de96 100644 --- a/modules/structs/org_member.go +++ b/modules/structs/org_member.go @@ -1,6 +1,5 @@ // Copyright 2016 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 structs diff --git a/modules/structs/org_team.go b/modules/structs/org_team.go index 10bd9e62ceb..95db0debadc 100644 --- a/modules/structs/org_team.go +++ b/modules/structs/org_team.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2018 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 structs diff --git a/modules/structs/org_type.go b/modules/structs/org_type.go index 4401a2801c1..69f323fa990 100644 --- a/modules/structs/org_type.go +++ b/modules/structs/org_type.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 structs diff --git a/modules/structs/package.go b/modules/structs/package.go index fbdd6c90aa8..0059535bea8 100644 --- a/modules/structs/package.go +++ b/modules/structs/package.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 structs diff --git a/modules/structs/pull.go b/modules/structs/pull.go index f627241b263..f64bb83af9b 100644 --- a/modules/structs/pull.go +++ b/modules/structs/pull.go @@ -1,6 +1,5 @@ // Copyright 2016 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 structs diff --git a/modules/structs/pull_review.go b/modules/structs/pull_review.go index ca2af486573..810be8f521d 100644 --- a/modules/structs/pull_review.go +++ b/modules/structs/pull_review.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 structs diff --git a/modules/structs/release.go b/modules/structs/release.go index 38ce60bbe22..3fe40389b1f 100644 --- a/modules/structs/release.go +++ b/modules/structs/release.go @@ -1,6 +1,5 @@ // Copyright 2016 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 structs diff --git a/modules/structs/repo.go b/modules/structs/repo.go index cf6601704ed..16f3d9dd26b 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -1,6 +1,5 @@ // 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 structs diff --git a/modules/structs/repo_branch.go b/modules/structs/repo_branch.go index 1f3bc04e864..864cb8f50a3 100644 --- a/modules/structs/repo_branch.go +++ b/modules/structs/repo_branch.go @@ -1,6 +1,5 @@ // Copyright 2016 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 structs diff --git a/modules/structs/repo_collaborator.go b/modules/structs/repo_collaborator.go index 2f9c8992a16..946a6ec7e78 100644 --- a/modules/structs/repo_collaborator.go +++ b/modules/structs/repo_collaborator.go @@ -1,6 +1,5 @@ // Copyright 2016 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 structs diff --git a/modules/structs/repo_commit.go b/modules/structs/repo_commit.go index 55a516a975a..b3e98df1953 100644 --- a/modules/structs/repo_commit.go +++ b/modules/structs/repo_commit.go @@ -1,7 +1,6 @@ // Copyright 2018 The Gogs Authors. All rights reserved. // 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 structs diff --git a/modules/structs/repo_file.go b/modules/structs/repo_file.go index ce1a9fe4be3..328d7e47c8e 100644 --- a/modules/structs/repo_file.go +++ b/modules/structs/repo_file.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 structs diff --git a/modules/structs/repo_key.go b/modules/structs/repo_key.go index 29928bd97e5..27b9d05a75c 100644 --- a/modules/structs/repo_key.go +++ b/modules/structs/repo_key.go @@ -1,6 +1,5 @@ // Copyright 2015 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 structs diff --git a/modules/structs/repo_note.go b/modules/structs/repo_note.go index bddc945a5c7..4eaf5a255d1 100644 --- a/modules/structs/repo_note.go +++ b/modules/structs/repo_note.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 structs diff --git a/modules/structs/repo_refs.go b/modules/structs/repo_refs.go index 0bf4b94ae1f..6ffbc74a519 100644 --- a/modules/structs/repo_refs.go +++ b/modules/structs/repo_refs.go @@ -1,6 +1,5 @@ // Copyright 2018 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 structs diff --git a/modules/structs/repo_tag.go b/modules/structs/repo_tag.go index 80ee1ccf177..4a7d8952880 100644 --- a/modules/structs/repo_tag.go +++ b/modules/structs/repo_tag.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 structs diff --git a/modules/structs/repo_topic.go b/modules/structs/repo_topic.go index 294d56a953d..fea193e86b5 100644 --- a/modules/structs/repo_topic.go +++ b/modules/structs/repo_topic.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 structs diff --git a/modules/structs/repo_tree.go b/modules/structs/repo_tree.go index 58aa3b83390..86b221e1feb 100644 --- a/modules/structs/repo_tree.go +++ b/modules/structs/repo_tree.go @@ -1,6 +1,5 @@ // Copyright 2018 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 structs diff --git a/modules/structs/repo_watch.go b/modules/structs/repo_watch.go index 606785a4fda..2e89a9eefcf 100644 --- a/modules/structs/repo_watch.go +++ b/modules/structs/repo_watch.go @@ -1,6 +1,5 @@ // 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 structs diff --git a/modules/structs/repo_wiki.go b/modules/structs/repo_wiki.go index 09e21387df4..3df5a0be991 100644 --- a/modules/structs/repo_wiki.go +++ b/modules/structs/repo_wiki.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 structs diff --git a/modules/structs/settings.go b/modules/structs/settings.go index 90c4a2107bb..e48b1a493db 100644 --- a/modules/structs/settings.go +++ b/modules/structs/settings.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 structs diff --git a/modules/structs/status.go b/modules/structs/status.go index ed42b24be81..c1d8b902ec3 100644 --- a/modules/structs/status.go +++ b/modules/structs/status.go @@ -1,6 +1,5 @@ // 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 structs diff --git a/modules/structs/task.go b/modules/structs/task.go index e83d0437cef..c73e51b1ab0 100644 --- a/modules/structs/task.go +++ b/modules/structs/task.go @@ -1,6 +1,5 @@ // Copyright 2019 Gitea. 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 structs diff --git a/modules/structs/user.go b/modules/structs/user.go index 81516894a58..c5e96f33569 100644 --- a/modules/structs/user.go +++ b/modules/structs/user.go @@ -1,6 +1,5 @@ // 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 structs diff --git a/modules/structs/user_app.go b/modules/structs/user_app.go index 4cfa5538c8f..3a5ae34df19 100644 --- a/modules/structs/user_app.go +++ b/modules/structs/user_app.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 structs diff --git a/modules/structs/user_email.go b/modules/structs/user_email.go index a72b04119a9..6a11e040afb 100644 --- a/modules/structs/user_email.go +++ b/modules/structs/user_email.go @@ -1,6 +1,5 @@ // Copyright 2015 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 structs diff --git a/modules/structs/user_gpgkey.go b/modules/structs/user_gpgkey.go index a2ebf7df93b..ff9b0aea1d6 100644 --- a/modules/structs/user_gpgkey.go +++ b/modules/structs/user_gpgkey.go @@ -1,6 +1,5 @@ // Copyright 2017 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 structs diff --git a/modules/structs/user_key.go b/modules/structs/user_key.go index ee487607c3b..08eed59a89c 100644 --- a/modules/structs/user_key.go +++ b/modules/structs/user_key.go @@ -1,6 +1,5 @@ // Copyright 2015 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 structs diff --git a/modules/svg/discover_bindata.go b/modules/svg/discover_bindata.go index cca1de76a7d..b6abd294f17 100644 --- a/modules/svg/discover_bindata.go +++ b/modules/svg/discover_bindata.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 //go:build bindata diff --git a/modules/svg/discover_nobindata.go b/modules/svg/discover_nobindata.go index ef01fbcc3e8..da7ab7b98f5 100644 --- a/modules/svg/discover_nobindata.go +++ b/modules/svg/discover_nobindata.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 //go:build !bindata diff --git a/modules/svg/svg.go b/modules/svg/svg.go index 4e13d92d414..e0f0a263f30 100644 --- a/modules/svg/svg.go +++ b/modules/svg/svg.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 svg diff --git a/modules/sync/exclusive_pool.go b/modules/sync/exclusive_pool.go index 7c1a8930cee..fbfc1f22924 100644 --- a/modules/sync/exclusive_pool.go +++ b/modules/sync/exclusive_pool.go @@ -1,6 +1,5 @@ // Copyright 2016 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 sync diff --git a/modules/sync/status_pool.go b/modules/sync/status_pool.go index 99e5ce9cb3a..6f075d54b79 100644 --- a/modules/sync/status_pool.go +++ b/modules/sync/status_pool.go @@ -1,6 +1,5 @@ // Copyright 2016 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 sync diff --git a/modules/sync/status_pool_test.go b/modules/sync/status_pool_test.go index b388c50db2b..e2e48862f58 100644 --- a/modules/sync/status_pool_test.go +++ b/modules/sync/status_pool_test.go @@ -1,6 +1,5 @@ // 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 sync diff --git a/modules/system/appstate.go b/modules/system/appstate.go index deee8cd0296..765501d4321 100644 --- a/modules/system/appstate.go +++ b/modules/system/appstate.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 system diff --git a/modules/system/appstate_test.go b/modules/system/appstate_test.go index fb0c2aaf9f4..65a6e500033 100644 --- a/modules/system/appstate_test.go +++ b/modules/system/appstate_test.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 system diff --git a/modules/system/db.go b/modules/system/db.go index b1c283c488d..3f2e4c59bbd 100644 --- a/modules/system/db.go +++ b/modules/system/db.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 system diff --git a/modules/system/item_runtime.go b/modules/system/item_runtime.go index e022a0daad8..ded52c14268 100644 --- a/modules/system/item_runtime.go +++ b/modules/system/item_runtime.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 system diff --git a/modules/templates/base.go b/modules/templates/base.go index d234d531f3d..e0f8350afb1 100644 --- a/modules/templates/base.go +++ b/modules/templates/base.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 templates diff --git a/modules/templates/dynamic.go b/modules/templates/dynamic.go index a86e71a8c8b..7d25a61fedf 100644 --- a/modules/templates/dynamic.go +++ b/modules/templates/dynamic.go @@ -1,6 +1,5 @@ // Copyright 2016 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 //go:build !bindata diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 95671e791a4..5fa9e17c8a1 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -1,7 +1,6 @@ // Copyright 2018 The Gitea Authors. All rights reserved. // 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 templates diff --git a/modules/templates/helper_test.go b/modules/templates/helper_test.go index 5ebae7afef3..ec83e9ac331 100644 --- a/modules/templates/helper_test.go +++ b/modules/templates/helper_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 templates diff --git a/modules/templates/htmlrenderer.go b/modules/templates/htmlrenderer.go index 81ea6601614..7ab523822b4 100644 --- a/modules/templates/htmlrenderer.go +++ b/modules/templates/htmlrenderer.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 templates diff --git a/modules/templates/mailer.go b/modules/templates/mailer.go index 0cac1280f34..a257e7c1da3 100644 --- a/modules/templates/mailer.go +++ b/modules/templates/mailer.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 templates diff --git a/modules/templates/static.go b/modules/templates/static.go index 7f7cbe702fb..7ebb327ae6e 100644 --- a/modules/templates/static.go +++ b/modules/templates/static.go @@ -1,6 +1,5 @@ // Copyright 2016 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 //go:build bindata diff --git a/modules/templates/templates_bindata.go b/modules/templates/templates_bindata.go index bcb2cbaf3fe..6f1d3cf5395 100644 --- a/modules/templates/templates_bindata.go +++ b/modules/templates/templates_bindata.go @@ -1,6 +1,5 @@ // Copyright 2016 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 //go:build bindata diff --git a/modules/templates/vars/vars.go b/modules/templates/vars/vars.go index a22ea4d777f..cc9d0e976f4 100644 --- a/modules/templates/vars/vars.go +++ b/modules/templates/vars/vars.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 vars diff --git a/modules/templates/vars/vars_test.go b/modules/templates/vars/vars_test.go index 1cd7669c009..8f421d9e4bf 100644 --- a/modules/templates/vars/vars_test.go +++ b/modules/templates/vars/vars_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 vars diff --git a/modules/test/context_tests.go b/modules/test/context_tests.go index 963f79c3c6b..61e49adb765 100644 --- a/modules/test/context_tests.go +++ b/modules/test/context_tests.go @@ -1,6 +1,5 @@ // 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 test diff --git a/modules/test/utils.go b/modules/test/utils.go index ed1628ab473..7686d3f289f 100644 --- a/modules/test/utils.go +++ b/modules/test/utils.go @@ -1,6 +1,5 @@ // 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 test diff --git a/modules/timeutil/executable.go b/modules/timeutil/executable.go index 1875b633495..57ae8b2a9df 100644 --- a/modules/timeutil/executable.go +++ b/modules/timeutil/executable.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 timeutil diff --git a/modules/timeutil/language.go b/modules/timeutil/language.go index d0380cac3d8..c2f7a0e5793 100644 --- a/modules/timeutil/language.go +++ b/modules/timeutil/language.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 timeutil diff --git a/modules/timeutil/since.go b/modules/timeutil/since.go index 8473d450510..295ba7c10e7 100644 --- a/modules/timeutil/since.go +++ b/modules/timeutil/since.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 timeutil diff --git a/modules/timeutil/since_test.go b/modules/timeutil/since_test.go index 9350b5e96b9..2e1dde00f6a 100644 --- a/modules/timeutil/since_test.go +++ b/modules/timeutil/since_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 timeutil diff --git a/modules/timeutil/timestamp.go b/modules/timeutil/timestamp.go index 36b2aff575f..4618db9a769 100644 --- a/modules/timeutil/timestamp.go +++ b/modules/timeutil/timestamp.go @@ -1,6 +1,5 @@ // 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 timeutil diff --git a/modules/translation/i18n/errors.go b/modules/translation/i18n/errors.go index a81b0bc1acd..7f64ccf908e 100644 --- a/modules/translation/i18n/errors.go +++ b/modules/translation/i18n/errors.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 i18n diff --git a/modules/translation/i18n/format.go b/modules/translation/i18n/format.go index 3fb9e6d6d05..637209ad807 100644 --- a/modules/translation/i18n/format.go +++ b/modules/translation/i18n/format.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 i18n diff --git a/modules/translation/i18n/i18n.go b/modules/translation/i18n/i18n.go index d8ed43a1cd2..4048c9acd2d 100644 --- a/modules/translation/i18n/i18n.go +++ b/modules/translation/i18n/i18n.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 i18n diff --git a/modules/translation/i18n/i18n_test.go b/modules/translation/i18n/i18n_test.go index 0f4605c1bbb..76a91522bad 100644 --- a/modules/translation/i18n/i18n_test.go +++ b/modules/translation/i18n/i18n_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 i18n diff --git a/modules/translation/i18n/localestore.go b/modules/translation/i18n/localestore.go index 853519e2241..90f574127d1 100644 --- a/modules/translation/i18n/localestore.go +++ b/modules/translation/i18n/localestore.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 i18n diff --git a/modules/translation/translation.go b/modules/translation/translation.go index fc311aa61b4..5a1009bfa3d 100644 --- a/modules/translation/translation.go +++ b/modules/translation/translation.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 translation diff --git a/modules/typesniffer/typesniffer.go b/modules/typesniffer/typesniffer.go index e50928e8c26..c9fef953ce7 100644 --- a/modules/typesniffer/typesniffer.go +++ b/modules/typesniffer/typesniffer.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 typesniffer diff --git a/modules/typesniffer/typesniffer_test.go b/modules/typesniffer/typesniffer_test.go index a3b47c45986..dbce94fc3bd 100644 --- a/modules/typesniffer/typesniffer_test.go +++ b/modules/typesniffer/typesniffer_test.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 typesniffer diff --git a/modules/updatechecker/update_checker.go b/modules/updatechecker/update_checker.go index 816fb3764c5..bc3f93aad7d 100644 --- a/modules/updatechecker/update_checker.go +++ b/modules/updatechecker/update_checker.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 updatechecker diff --git a/modules/upload/upload.go b/modules/upload/upload.go index 734b3a6acc2..cd107158644 100644 --- a/modules/upload/upload.go +++ b/modules/upload/upload.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 upload diff --git a/modules/upload/upload_test.go b/modules/upload/upload_test.go index d258b04f774..f2c3242e9a4 100644 --- a/modules/upload/upload_test.go +++ b/modules/upload/upload_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 upload diff --git a/modules/uri/uri.go b/modules/uri/uri.go index 74410f43f9f..768bc662cef 100644 --- a/modules/uri/uri.go +++ b/modules/uri/uri.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 uri diff --git a/modules/uri/uri_test.go b/modules/uri/uri_test.go index 8cadd6b918f..11b915c2617 100644 --- a/modules/uri/uri_test.go +++ b/modules/uri/uri_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 uri diff --git a/modules/user/user.go b/modules/user/user.go index af49d7b06a4..eee401a23f4 100644 --- a/modules/user/user.go +++ b/modules/user/user.go @@ -1,6 +1,5 @@ // 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 user diff --git a/modules/user/user_test.go b/modules/user/user_test.go index 3b3758efc04..9129ae79a13 100644 --- a/modules/user/user_test.go +++ b/modules/user/user_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 user diff --git a/modules/util/compare.go b/modules/util/compare.go index 49891ef0249..9ac778dfd3e 100644 --- a/modules/util/compare.go +++ b/modules/util/compare.go @@ -1,6 +1,5 @@ // 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 util diff --git a/modules/util/error.go b/modules/util/error.go index 08e491dbaf2..63bd447bf3e 100644 --- a/modules/util/error.go +++ b/modules/util/error.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 util diff --git a/modules/util/file_unix.go b/modules/util/file_unix.go index ec9d4ec167a..79a29c8b3b6 100644 --- a/modules/util/file_unix.go +++ b/modules/util/file_unix.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 //go:build !windows diff --git a/modules/util/file_unix_test.go b/modules/util/file_unix_test.go index 41311aa13f3..87d6c2f09a9 100644 --- a/modules/util/file_unix_test.go +++ b/modules/util/file_unix_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 //go:build !windows diff --git a/modules/util/file_windows.go b/modules/util/file_windows.go index 6ad3e88ba5e..77a33d3c49d 100644 --- a/modules/util/file_windows.go +++ b/modules/util/file_windows.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 //go:build windows diff --git a/modules/util/filebuffer/file_backed_buffer.go b/modules/util/filebuffer/file_backed_buffer.go index 8e3e138e04b..bfddf90e92b 100644 --- a/modules/util/filebuffer/file_backed_buffer.go +++ b/modules/util/filebuffer/file_backed_buffer.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 filebuffer diff --git a/modules/util/filebuffer/file_backed_buffer_test.go b/modules/util/filebuffer/file_backed_buffer_test.go index 83ef58561de..16d5a1965f6 100644 --- a/modules/util/filebuffer/file_backed_buffer_test.go +++ b/modules/util/filebuffer/file_backed_buffer_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 filebuffer diff --git a/modules/util/io.go b/modules/util/io.go index d765e27733f..e5d7561beff 100644 --- a/modules/util/io.go +++ b/modules/util/io.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 util diff --git a/modules/util/legacy.go b/modules/util/legacy.go index d319faad098..2ea293a2be8 100644 --- a/modules/util/legacy.go +++ b/modules/util/legacy.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 util diff --git a/modules/util/legacy_test.go b/modules/util/legacy_test.go index c41f7a008c2..e732094c298 100644 --- a/modules/util/legacy_test.go +++ b/modules/util/legacy_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 util diff --git a/modules/util/paginate.go b/modules/util/paginate.go index 2baa71664ed..f2721df1adb 100644 --- a/modules/util/paginate.go +++ b/modules/util/paginate.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 util diff --git a/modules/util/paginate_test.go b/modules/util/paginate_test.go index 3657efc919e..6e69dd19cc0 100644 --- a/modules/util/paginate_test.go +++ b/modules/util/paginate_test.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 util diff --git a/modules/util/path.go b/modules/util/path.go index 3d4ddec21cb..03013f71339 100644 --- a/modules/util/path.go +++ b/modules/util/path.go @@ -1,6 +1,5 @@ // 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 util diff --git a/modules/util/path_test.go b/modules/util/path_test.go index b0ea448a1ce..5794df1ebf3 100644 --- a/modules/util/path_test.go +++ b/modules/util/path_test.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 util diff --git a/modules/util/remove.go b/modules/util/remove.go index d05ee9fe4af..d1e38faf5f1 100644 --- a/modules/util/remove.go +++ b/modules/util/remove.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 util diff --git a/modules/util/sanitize.go b/modules/util/sanitize.go index 685b2699b06..f1ea2574f18 100644 --- a/modules/util/sanitize.go +++ b/modules/util/sanitize.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 util diff --git a/modules/util/sanitize_test.go b/modules/util/sanitize_test.go index 78166cfdff4..0bcfd45ca41 100644 --- a/modules/util/sanitize_test.go +++ b/modules/util/sanitize_test.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 util diff --git a/modules/util/sec_to_time.go b/modules/util/sec_to_time.go index 13461915e6f..017ed45f8c0 100644 --- a/modules/util/sec_to_time.go +++ b/modules/util/sec_to_time.go @@ -1,6 +1,5 @@ // Copyright 2022 Gitea. 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 util diff --git a/modules/util/sec_to_time_test.go b/modules/util/sec_to_time_test.go index 1e256aa8650..4d1213a52c0 100644 --- a/modules/util/sec_to_time_test.go +++ b/modules/util/sec_to_time_test.go @@ -1,6 +1,5 @@ // Copyright 2022 Gitea. 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 util diff --git a/modules/util/shellquote.go b/modules/util/shellquote.go index 5a12c2e2618..434dc4236e0 100644 --- a/modules/util/shellquote.go +++ b/modules/util/shellquote.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 util diff --git a/modules/util/shellquote_test.go b/modules/util/shellquote_test.go index be6ba372fdf..969998c5926 100644 --- a/modules/util/shellquote_test.go +++ b/modules/util/shellquote_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 util diff --git a/modules/util/slice.go b/modules/util/slice.go index 552f5b866a5..17345cbc49d 100644 --- a/modules/util/slice.go +++ b/modules/util/slice.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 util diff --git a/modules/util/string.go b/modules/util/string.go index 2da2bc5dc4e..f2def7b0ece 100644 --- a/modules/util/string.go +++ b/modules/util/string.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 util diff --git a/modules/util/string_test.go b/modules/util/string_test.go index 49de29ab67a..0a4a8bbcfbf 100644 --- a/modules/util/string_test.go +++ b/modules/util/string_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 util diff --git a/modules/util/timer.go b/modules/util/timer.go index b682f376d9a..daf96bda7e2 100644 --- a/modules/util/timer.go +++ b/modules/util/timer.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 util diff --git a/modules/util/truncate.go b/modules/util/truncate.go index 2e6f7f68b0c..032a6c0872c 100644 --- a/modules/util/truncate.go +++ b/modules/util/truncate.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 util diff --git a/modules/util/truncate_test.go b/modules/util/truncate_test.go index e505a6ee4aa..912bfb3d5fd 100644 --- a/modules/util/truncate_test.go +++ b/modules/util/truncate_test.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 util diff --git a/modules/util/url.go b/modules/util/url.go index 96c66df92b2..75fcf634a96 100644 --- a/modules/util/url.go +++ b/modules/util/url.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 util diff --git a/modules/util/util.go b/modules/util/util.go index 6df47ca5682..9d3a8dcfac2 100644 --- a/modules/util/util.go +++ b/modules/util/util.go @@ -1,6 +1,5 @@ // 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 util diff --git a/modules/util/util_test.go b/modules/util/util_test.go index 91b0ef9455e..34fe070d22d 100644 --- a/modules/util/util_test.go +++ b/modules/util/util_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 util diff --git a/modules/validation/binding.go b/modules/validation/binding.go index c054fbe7b6c..ef0d01e80f1 100644 --- a/modules/validation/binding.go +++ b/modules/validation/binding.go @@ -1,6 +1,5 @@ // 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 validation diff --git a/modules/validation/binding_test.go b/modules/validation/binding_test.go index aa8a7655244..9ca93784a85 100644 --- a/modules/validation/binding_test.go +++ b/modules/validation/binding_test.go @@ -1,6 +1,5 @@ // 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 validation diff --git a/modules/validation/glob_pattern_test.go b/modules/validation/glob_pattern_test.go index cbaed7e66ac..1bf622e61d6 100644 --- a/modules/validation/glob_pattern_test.go +++ b/modules/validation/glob_pattern_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 validation diff --git a/modules/validation/helpers.go b/modules/validation/helpers.go index 8e49c7855e5..3381846b863 100644 --- a/modules/validation/helpers.go +++ b/modules/validation/helpers.go @@ -1,6 +1,5 @@ // Copyright 2018 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 validation diff --git a/modules/validation/helpers_test.go b/modules/validation/helpers_test.go index 9bdbdb4a775..52f383f6983 100644 --- a/modules/validation/helpers_test.go +++ b/modules/validation/helpers_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 validation diff --git a/modules/validation/refname_test.go b/modules/validation/refname_test.go index 2d6458b9b5a..3af7387c474 100644 --- a/modules/validation/refname_test.go +++ b/modules/validation/refname_test.go @@ -1,6 +1,5 @@ // 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 validation diff --git a/modules/validation/regex_pattern_test.go b/modules/validation/regex_pattern_test.go index afe1bcf425d..efcb2767340 100644 --- a/modules/validation/regex_pattern_test.go +++ b/modules/validation/regex_pattern_test.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 validation diff --git a/modules/validation/validurl_test.go b/modules/validation/validurl_test.go index 3cb62066020..39f7fa5d65a 100644 --- a/modules/validation/validurl_test.go +++ b/modules/validation/validurl_test.go @@ -1,6 +1,5 @@ // 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 validation diff --git a/modules/watcher/watcher.go b/modules/watcher/watcher.go index d737f6ccbbc..75d062d7aaa 100644 --- a/modules/watcher/watcher.go +++ b/modules/watcher/watcher.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 watcher diff --git a/modules/web/middleware/binding.go b/modules/web/middleware/binding.go index cced9717be0..733f00a1d56 100644 --- a/modules/web/middleware/binding.go +++ b/modules/web/middleware/binding.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 middleware diff --git a/modules/web/middleware/cookie.go b/modules/web/middleware/cookie.go index b5904d6713a..7c1aaf6daf7 100644 --- a/modules/web/middleware/cookie.go +++ b/modules/web/middleware/cookie.go @@ -1,7 +1,6 @@ // Copyright 2020 The Macaron Authors // 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 middleware diff --git a/modules/web/middleware/data.go b/modules/web/middleware/data.go index 7de686498a2..43189940ee2 100644 --- a/modules/web/middleware/data.go +++ b/modules/web/middleware/data.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 middleware diff --git a/modules/web/middleware/flash.go b/modules/web/middleware/flash.go index d1d4a864e36..f2d7cc692d2 100644 --- a/modules/web/middleware/flash.go +++ b/modules/web/middleware/flash.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 middleware diff --git a/modules/web/middleware/locale.go b/modules/web/middleware/locale.go index f4018527c02..f60be4bbdb4 100644 --- a/modules/web/middleware/locale.go +++ b/modules/web/middleware/locale.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 middleware diff --git a/modules/web/middleware/request.go b/modules/web/middleware/request.go index f620da5eea5..34add27214b 100644 --- a/modules/web/middleware/request.go +++ b/modules/web/middleware/request.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 middleware diff --git a/modules/web/route.go b/modules/web/route.go index 4341b1bf5d1..cd72aabae5e 100644 --- a/modules/web/route.go +++ b/modules/web/route.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 web diff --git a/modules/web/route_test.go b/modules/web/route_test.go index 801afe92c92..232444cb837 100644 --- a/modules/web/route_test.go +++ b/modules/web/route_test.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 web diff --git a/modules/web/routing/context.go b/modules/web/routing/context.go index 7e263db5a26..0d5e7655431 100644 --- a/modules/web/routing/context.go +++ b/modules/web/routing/context.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 routing diff --git a/modules/web/routing/funcinfo.go b/modules/web/routing/funcinfo.go index 9bb38af1c8b..499bc2c7aad 100644 --- a/modules/web/routing/funcinfo.go +++ b/modules/web/routing/funcinfo.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 routing diff --git a/modules/web/routing/funcinfo_test.go b/modules/web/routing/funcinfo_test.go index 9cea7e28178..2ab5960373c 100644 --- a/modules/web/routing/funcinfo_test.go +++ b/modules/web/routing/funcinfo_test.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 routing diff --git a/modules/web/routing/logger.go b/modules/web/routing/logger.go index cf3b50725d8..d1b0ff0cda6 100644 --- a/modules/web/routing/logger.go +++ b/modules/web/routing/logger.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 routing diff --git a/modules/web/routing/logger_manager.go b/modules/web/routing/logger_manager.go index 7715b0b5d37..aa25ec3a271 100644 --- a/modules/web/routing/logger_manager.go +++ b/modules/web/routing/logger_manager.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 routing diff --git a/modules/web/routing/requestrecord.go b/modules/web/routing/requestrecord.go index 5e225f32e4e..34a2d338930 100644 --- a/modules/web/routing/requestrecord.go +++ b/modules/web/routing/requestrecord.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 routing diff --git a/modules/web/wrap.go b/modules/web/wrap.go index b55b8760698..0ff9529fae9 100644 --- a/modules/web/wrap.go +++ b/modules/web/wrap.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 web diff --git a/modules/web/wrap_convert.go b/modules/web/wrap_convert.go index 9084cfa0747..6778e208cf3 100644 --- a/modules/web/wrap_convert.go +++ b/modules/web/wrap_convert.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 web diff --git a/routers/api/packages/api.go b/routers/api/packages/api.go index 0d8b9ce61ee..b523725c489 100644 --- a/routers/api/packages/api.go +++ b/routers/api/packages/api.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 packages diff --git a/routers/api/packages/composer/api.go b/routers/api/packages/composer/api.go index ed52d165135..a3bcf80417c 100644 --- a/routers/api/packages/composer/api.go +++ b/routers/api/packages/composer/api.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 composer diff --git a/routers/api/packages/composer/composer.go b/routers/api/packages/composer/composer.go index a19433c6f09..c6e0593b42f 100644 --- a/routers/api/packages/composer/composer.go +++ b/routers/api/packages/composer/composer.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 composer diff --git a/routers/api/packages/conan/auth.go b/routers/api/packages/conan/auth.go index 00855a97a47..fe33e2c7404 100644 --- a/routers/api/packages/conan/auth.go +++ b/routers/api/packages/conan/auth.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 conan diff --git a/routers/api/packages/conan/conan.go b/routers/api/packages/conan/conan.go index e7c891b35f9..d538cc7d397 100644 --- a/routers/api/packages/conan/conan.go +++ b/routers/api/packages/conan/conan.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 conan diff --git a/routers/api/packages/conan/search.go b/routers/api/packages/conan/search.go index 39dd6362aa4..2bcf9df162b 100644 --- a/routers/api/packages/conan/search.go +++ b/routers/api/packages/conan/search.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 conan diff --git a/routers/api/packages/container/auth.go b/routers/api/packages/container/auth.go index 770068a3bfb..948001dcad7 100644 --- a/routers/api/packages/container/auth.go +++ b/routers/api/packages/container/auth.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 container diff --git a/routers/api/packages/container/blob.go b/routers/api/packages/container/blob.go index 06b450de02d..fd5819d506f 100644 --- a/routers/api/packages/container/blob.go +++ b/routers/api/packages/container/blob.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 container diff --git a/routers/api/packages/container/container.go b/routers/api/packages/container/container.go index 7af06a9171c..cbbdf8eb880 100644 --- a/routers/api/packages/container/container.go +++ b/routers/api/packages/container/container.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 container diff --git a/routers/api/packages/container/errors.go b/routers/api/packages/container/errors.go index 0efbb081ca2..1a9b0f32d2f 100644 --- a/routers/api/packages/container/errors.go +++ b/routers/api/packages/container/errors.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 container diff --git a/routers/api/packages/container/manifest.go b/routers/api/packages/container/manifest.go index 64c958c2d06..350933f3d2f 100644 --- a/routers/api/packages/container/manifest.go +++ b/routers/api/packages/container/manifest.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 container diff --git a/routers/api/packages/generic/generic.go b/routers/api/packages/generic/generic.go index 1c233da20f6..5fba02cacd4 100644 --- a/routers/api/packages/generic/generic.go +++ b/routers/api/packages/generic/generic.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 generic diff --git a/routers/api/packages/helm/helm.go b/routers/api/packages/helm/helm.go index 11291ca14e0..af863bc4b91 100644 --- a/routers/api/packages/helm/helm.go +++ b/routers/api/packages/helm/helm.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 helm diff --git a/routers/api/packages/helper/helper.go b/routers/api/packages/helper/helper.go index 8cde84023f0..660aaec1a3a 100644 --- a/routers/api/packages/helper/helper.go +++ b/routers/api/packages/helper/helper.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 helper diff --git a/routers/api/packages/maven/api.go b/routers/api/packages/maven/api.go index 4ca541dd6f3..167fe42b56d 100644 --- a/routers/api/packages/maven/api.go +++ b/routers/api/packages/maven/api.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 maven diff --git a/routers/api/packages/maven/maven.go b/routers/api/packages/maven/maven.go index 3125062b920..0ca3fa17939 100644 --- a/routers/api/packages/maven/maven.go +++ b/routers/api/packages/maven/maven.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 maven diff --git a/routers/api/packages/npm/api.go b/routers/api/packages/npm/api.go index 490387a0e4f..f8d50f03cf5 100644 --- a/routers/api/packages/npm/api.go +++ b/routers/api/packages/npm/api.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 npm diff --git a/routers/api/packages/npm/npm.go b/routers/api/packages/npm/npm.go index 6c11286a86c..4306d5ba363 100644 --- a/routers/api/packages/npm/npm.go +++ b/routers/api/packages/npm/npm.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 npm diff --git a/routers/api/packages/nuget/api_v2.go b/routers/api/packages/nuget/api_v2.go index 60a5d9c0e48..c545d0fc4e9 100644 --- a/routers/api/packages/nuget/api_v2.go +++ b/routers/api/packages/nuget/api_v2.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 nuget diff --git a/routers/api/packages/nuget/api_v3.go b/routers/api/packages/nuget/api_v3.go index bb3e447bd64..b5900b6c0b7 100644 --- a/routers/api/packages/nuget/api_v3.go +++ b/routers/api/packages/nuget/api_v3.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 nuget diff --git a/routers/api/packages/nuget/auth.go b/routers/api/packages/nuget/auth.go index 1dad4526485..2be102a38ba 100644 --- a/routers/api/packages/nuget/auth.go +++ b/routers/api/packages/nuget/auth.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 nuget diff --git a/routers/api/packages/nuget/links.go b/routers/api/packages/nuget/links.go index 618b54ae8de..1b02e461846 100644 --- a/routers/api/packages/nuget/links.go +++ b/routers/api/packages/nuget/links.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 nuget diff --git a/routers/api/packages/nuget/nuget.go b/routers/api/packages/nuget/nuget.go index 06aaca596d5..d6f7d1d7f66 100644 --- a/routers/api/packages/nuget/nuget.go +++ b/routers/api/packages/nuget/nuget.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 nuget diff --git a/routers/api/packages/pub/pub.go b/routers/api/packages/pub/pub.go index 26cb9fbb9a6..247950a214a 100644 --- a/routers/api/packages/pub/pub.go +++ b/routers/api/packages/pub/pub.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 pub diff --git a/routers/api/packages/pypi/pypi.go b/routers/api/packages/pypi/pypi.go index 76801a92e12..826f58095e7 100644 --- a/routers/api/packages/pypi/pypi.go +++ b/routers/api/packages/pypi/pypi.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 pypi diff --git a/routers/api/packages/pypi/pypi_test.go b/routers/api/packages/pypi/pypi_test.go index 56e327a3472..3023692177f 100644 --- a/routers/api/packages/pypi/pypi_test.go +++ b/routers/api/packages/pypi/pypi_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 pypi diff --git a/routers/api/packages/rubygems/rubygems.go b/routers/api/packages/rubygems/rubygems.go index f0b00f42c36..c1a10b5e78f 100644 --- a/routers/api/packages/rubygems/rubygems.go +++ b/routers/api/packages/rubygems/rubygems.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 rubygems diff --git a/routers/api/packages/vagrant/vagrant.go b/routers/api/packages/vagrant/vagrant.go index 746a2b19ba3..7b76ab79b05 100644 --- a/routers/api/packages/vagrant/vagrant.go +++ b/routers/api/packages/vagrant/vagrant.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 vagrant diff --git a/routers/api/v1/activitypub/person.go b/routers/api/v1/activitypub/person.go index 542ae7e1206..80855809856 100644 --- a/routers/api/v1/activitypub/person.go +++ b/routers/api/v1/activitypub/person.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 activitypub diff --git a/routers/api/v1/activitypub/reqsignature.go b/routers/api/v1/activitypub/reqsignature.go index 649cb488b39..2d945c27a51 100644 --- a/routers/api/v1/activitypub/reqsignature.go +++ b/routers/api/v1/activitypub/reqsignature.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 activitypub diff --git a/routers/api/v1/admin/adopt.go b/routers/api/v1/admin/adopt.go index 48222f89ebb..0e4e498e982 100644 --- a/routers/api/v1/admin/adopt.go +++ b/routers/api/v1/admin/adopt.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 admin diff --git a/routers/api/v1/admin/cron.go b/routers/api/v1/admin/cron.go index 0c4333b892a..cc8c6c9e239 100644 --- a/routers/api/v1/admin/cron.go +++ b/routers/api/v1/admin/cron.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 admin diff --git a/routers/api/v1/admin/org.go b/routers/api/v1/admin/org.go index 727f3193cf3..9d0725e3e85 100644 --- a/routers/api/v1/admin/org.go +++ b/routers/api/v1/admin/org.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 admin diff --git a/routers/api/v1/admin/repo.go b/routers/api/v1/admin/repo.go index 712ced89c99..83ed06e49bc 100644 --- a/routers/api/v1/admin/repo.go +++ b/routers/api/v1/admin/repo.go @@ -1,6 +1,5 @@ // Copyright 2015 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 admin diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go index 1a4b0200113..183ade8a0a5 100644 --- a/routers/api/v1/admin/user.go +++ b/routers/api/v1/admin/user.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 admin diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index e41fccb635d..3f5cf431f82 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2016 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 v1 Gitea API. // diff --git a/routers/api/v1/auth.go b/routers/api/v1/auth.go index becf45f6433..e44271ba148 100644 --- a/routers/api/v1/auth.go +++ b/routers/api/v1/auth.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 //go:build !windows diff --git a/routers/api/v1/auth_windows.go b/routers/api/v1/auth_windows.go index d41c4bb223f..3514e21baac 100644 --- a/routers/api/v1/auth_windows.go +++ b/routers/api/v1/auth_windows.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 v1 diff --git a/routers/api/v1/misc/markdown.go b/routers/api/v1/misc/markdown.go index eb0b78a5bab..3ff42f08d68 100644 --- a/routers/api/v1/misc/markdown.go +++ b/routers/api/v1/misc/markdown.go @@ -1,6 +1,5 @@ // 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 misc diff --git a/routers/api/v1/misc/markdown_test.go b/routers/api/v1/misc/markdown_test.go index 65ce0602780..025f2f44b01 100644 --- a/routers/api/v1/misc/markdown_test.go +++ b/routers/api/v1/misc/markdown_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 misc diff --git a/routers/api/v1/misc/nodeinfo.go b/routers/api/v1/misc/nodeinfo.go index a4ba440356b..319c3483e10 100644 --- a/routers/api/v1/misc/nodeinfo.go +++ b/routers/api/v1/misc/nodeinfo.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 misc diff --git a/routers/api/v1/misc/signing.go b/routers/api/v1/misc/signing.go index 1070cc78cb4..2ca9813e15c 100644 --- a/routers/api/v1/misc/signing.go +++ b/routers/api/v1/misc/signing.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 misc diff --git a/routers/api/v1/misc/version.go b/routers/api/v1/misc/version.go index b8c7d4f9ada..83fa35219ab 100644 --- a/routers/api/v1/misc/version.go +++ b/routers/api/v1/misc/version.go @@ -1,6 +1,5 @@ // 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 misc diff --git a/routers/api/v1/notify/notifications.go b/routers/api/v1/notify/notifications.go index 9948f90a120..3b6a9bfdc29 100644 --- a/routers/api/v1/notify/notifications.go +++ b/routers/api/v1/notify/notifications.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 notify diff --git a/routers/api/v1/notify/repo.go b/routers/api/v1/notify/repo.go index 6d9664400a5..a2e72cb48de 100644 --- a/routers/api/v1/notify/repo.go +++ b/routers/api/v1/notify/repo.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 notify diff --git a/routers/api/v1/notify/threads.go b/routers/api/v1/notify/threads.go index f8e49609124..47d0e497214 100644 --- a/routers/api/v1/notify/threads.go +++ b/routers/api/v1/notify/threads.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 notify diff --git a/routers/api/v1/notify/user.go b/routers/api/v1/notify/user.go index 5f4d8b35c2d..725eeff017f 100644 --- a/routers/api/v1/notify/user.go +++ b/routers/api/v1/notify/user.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 notify diff --git a/routers/api/v1/org/hook.go b/routers/api/v1/org/hook.go index f8ea5a876cf..2e9d7c656a7 100644 --- a/routers/api/v1/org/hook.go +++ b/routers/api/v1/org/hook.go @@ -1,6 +1,5 @@ // Copyright 2016 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 org diff --git a/routers/api/v1/org/label.go b/routers/api/v1/org/label.go index a67bd56dfcf..c95a6be3d20 100644 --- a/routers/api/v1/org/label.go +++ b/routers/api/v1/org/label.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 org diff --git a/routers/api/v1/org/member.go b/routers/api/v1/org/member.go index 85fe2ded4d5..fe071439588 100644 --- a/routers/api/v1/org/member.go +++ b/routers/api/v1/org/member.go @@ -1,6 +1,5 @@ // 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 org diff --git a/routers/api/v1/org/org.go b/routers/api/v1/org/org.go index 5a8b253a207..cf985d44fbb 100644 --- a/routers/api/v1/org/org.go +++ b/routers/api/v1/org/org.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2018 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 org diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go index b2bcc4d5860..f233494fa52 100644 --- a/routers/api/v1/org/team.go +++ b/routers/api/v1/org/team.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // 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 org diff --git a/routers/api/v1/packages/package.go b/routers/api/v1/packages/package.go index 29fa6c85a5b..433a79939cc 100644 --- a/routers/api/v1/packages/package.go +++ b/routers/api/v1/packages/package.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 packages diff --git a/routers/api/v1/repo/blob.go b/routers/api/v1/repo/blob.go index 035f2dc1e1d..d0004f06860 100644 --- a/routers/api/v1/repo/blob.go +++ b/routers/api/v1/repo/blob.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 repo diff --git a/routers/api/v1/repo/branch.go b/routers/api/v1/repo/branch.go index d10a308df3a..f5b1eb1c42c 100644 --- a/routers/api/v1/repo/branch.go +++ b/routers/api/v1/repo/branch.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // 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 repo diff --git a/routers/api/v1/repo/collaborators.go b/routers/api/v1/repo/collaborators.go index 0e6236216c2..383193daa71 100644 --- a/routers/api/v1/repo/collaborators.go +++ b/routers/api/v1/repo/collaborators.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2018 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 repo diff --git a/routers/api/v1/repo/commits.go b/routers/api/v1/repo/commits.go index 4e77c3f2f5d..682044407df 100644 --- a/routers/api/v1/repo/commits.go +++ b/routers/api/v1/repo/commits.go @@ -1,7 +1,6 @@ // Copyright 2018 The Gogs Authors. All rights reserved. // 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 repo diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go index aba5b1f9e7f..623fe18e5d2 100644 --- a/routers/api/v1/repo/file.go +++ b/routers/api/v1/repo/file.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 repo diff --git a/routers/api/v1/repo/fork.go b/routers/api/v1/repo/fork.go index c0a79d1a632..e2cb4400f59 100644 --- a/routers/api/v1/repo/fork.go +++ b/routers/api/v1/repo/fork.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// 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 repo diff --git a/routers/api/v1/repo/git_hook.go b/routers/api/v1/repo/git_hook.go index 0b4e09cadd2..963cbc719f4 100644 --- a/routers/api/v1/repo/git_hook.go +++ b/routers/api/v1/repo/git_hook.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 repo diff --git a/routers/api/v1/repo/git_ref.go b/routers/api/v1/repo/git_ref.go index 47f46df339f..34d2dcfcc81 100644 --- a/routers/api/v1/repo/git_ref.go +++ b/routers/api/v1/repo/git_ref.go @@ -1,6 +1,5 @@ // Copyright 2018 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 repo diff --git a/routers/api/v1/repo/hook.go b/routers/api/v1/repo/hook.go index 57fff7d3261..9b84fb2b301 100644 --- a/routers/api/v1/repo/hook.go +++ b/routers/api/v1/repo/hook.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// 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 repo diff --git a/routers/api/v1/repo/hook_test.go b/routers/api/v1/repo/hook_test.go index fd9a165bf35..34dc990c3da 100644 --- a/routers/api/v1/repo/hook_test.go +++ b/routers/api/v1/repo/hook_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 repo diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index 60f9859e107..c539a362388 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2018 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 repo diff --git a/routers/api/v1/repo/issue_comment.go b/routers/api/v1/repo/issue_comment.go index a5da0917279..7f6f24605d0 100644 --- a/routers/api/v1/repo/issue_comment.go +++ b/routers/api/v1/repo/issue_comment.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// 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 repo diff --git a/routers/api/v1/repo/issue_label.go b/routers/api/v1/repo/issue_label.go index 091f1ce27c6..04d70913c7a 100644 --- a/routers/api/v1/repo/issue_label.go +++ b/routers/api/v1/repo/issue_label.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2018 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 repo diff --git a/routers/api/v1/repo/issue_reaction.go b/routers/api/v1/repo/issue_reaction.go index fb7fd713b38..dcfe7967b58 100644 --- a/routers/api/v1/repo/issue_reaction.go +++ b/routers/api/v1/repo/issue_reaction.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 repo diff --git a/routers/api/v1/repo/issue_stopwatch.go b/routers/api/v1/repo/issue_stopwatch.go index 941b22e4545..110139cc36b 100644 --- a/routers/api/v1/repo/issue_stopwatch.go +++ b/routers/api/v1/repo/issue_stopwatch.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 repo diff --git a/routers/api/v1/repo/issue_subscription.go b/routers/api/v1/repo/issue_subscription.go index 5e03e42b4c5..32832d83f79 100644 --- a/routers/api/v1/repo/issue_subscription.go +++ b/routers/api/v1/repo/issue_subscription.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 repo diff --git a/routers/api/v1/repo/issue_tracked_time.go b/routers/api/v1/repo/issue_tracked_time.go index e3abb973be4..6786d23a932 100644 --- a/routers/api/v1/repo/issue_tracked_time.go +++ b/routers/api/v1/repo/issue_tracked_time.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/api/v1/repo/key.go b/routers/api/v1/repo/key.go index 14f6aa61486..cff68504694 100644 --- a/routers/api/v1/repo/key.go +++ b/routers/api/v1/repo/key.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// 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 repo diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go index 8b1e2986688..8b49becd37b 100644 --- a/routers/api/v1/repo/label.go +++ b/routers/api/v1/repo/label.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2018 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 repo diff --git a/routers/api/v1/repo/language.go b/routers/api/v1/repo/language.go index ca803cb68b8..12f1761ad08 100644 --- a/routers/api/v1/repo/language.go +++ b/routers/api/v1/repo/language.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 repo diff --git a/routers/api/v1/repo/main_test.go b/routers/api/v1/repo/main_test.go index 1f91a249371..543fb922d6b 100644 --- a/routers/api/v1/repo/main_test.go +++ b/routers/api/v1/repo/main_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 repo diff --git a/routers/api/v1/repo/migrate.go b/routers/api/v1/repo/migrate.go index aeef862b1f8..a0316c9a78f 100644 --- a/routers/api/v1/repo/migrate.go +++ b/routers/api/v1/repo/migrate.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 repo diff --git a/routers/api/v1/repo/milestone.go b/routers/api/v1/repo/milestone.go index 0e8800510b5..2b80b4df734 100644 --- a/routers/api/v1/repo/milestone.go +++ b/routers/api/v1/repo/milestone.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// 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 repo diff --git a/routers/api/v1/repo/mirror.go b/routers/api/v1/repo/mirror.go index 91e5e0c0316..b693c0e7db4 100644 --- a/routers/api/v1/repo/mirror.go +++ b/routers/api/v1/repo/mirror.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 repo diff --git a/routers/api/v1/repo/notes.go b/routers/api/v1/repo/notes.go index ee3133adece..91eebb4c724 100644 --- a/routers/api/v1/repo/notes.go +++ b/routers/api/v1/repo/notes.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 repo diff --git a/routers/api/v1/repo/patch.go b/routers/api/v1/repo/patch.go index 40afe2d92b1..6fbb9e7b3a7 100644 --- a/routers/api/v1/repo/patch.go +++ b/routers/api/v1/repo/patch.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 repo diff --git a/routers/api/v1/repo/pull.go b/routers/api/v1/repo/pull.go index fba7ed64627..53505e998c2 100644 --- a/routers/api/v1/repo/pull.go +++ b/routers/api/v1/repo/pull.go @@ -1,6 +1,5 @@ // Copyright 2016 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 repo diff --git a/routers/api/v1/repo/pull_review.go b/routers/api/v1/repo/pull_review.go index df88e2a57bf..2f357afb79f 100644 --- a/routers/api/v1/repo/pull_review.go +++ b/routers/api/v1/repo/pull_review.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 repo diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go index 60cc19d5653..4e1927ea3d9 100644 --- a/routers/api/v1/repo/release.go +++ b/routers/api/v1/repo/release.go @@ -1,6 +1,5 @@ // Copyright 2016 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 repo diff --git a/routers/api/v1/repo/release_attachment.go b/routers/api/v1/repo/release_attachment.go index 02f85d384a3..88632b46377 100644 --- a/routers/api/v1/repo/release_attachment.go +++ b/routers/api/v1/repo/release_attachment.go @@ -1,6 +1,5 @@ // Copyright 2018 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 repo diff --git a/routers/api/v1/repo/release_tags.go b/routers/api/v1/repo/release_tags.go index 77395bb4692..5e1f1860ae7 100644 --- a/routers/api/v1/repo/release_tags.go +++ b/routers/api/v1/repo/release_tags.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 repo diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index 29febe751cb..e8603d19172 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 repo diff --git a/routers/api/v1/repo/repo_test.go b/routers/api/v1/repo/repo_test.go index 9acc0ee7d21..59c3bde8193 100644 --- a/routers/api/v1/repo/repo_test.go +++ b/routers/api/v1/repo/repo_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 repo diff --git a/routers/api/v1/repo/star.go b/routers/api/v1/repo/star.go index c78c3cc512f..a3d11058739 100644 --- a/routers/api/v1/repo/star.go +++ b/routers/api/v1/repo/star.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/api/v1/repo/status.go b/routers/api/v1/repo/status.go index 97ef69a6ea6..84827a91adf 100644 --- a/routers/api/v1/repo/status.go +++ b/routers/api/v1/repo/status.go @@ -1,6 +1,5 @@ // Copyright 2017 Gitea. 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 repo diff --git a/routers/api/v1/repo/subscriber.go b/routers/api/v1/repo/subscriber.go index c1aaa241937..5cc94abd487 100644 --- a/routers/api/v1/repo/subscriber.go +++ b/routers/api/v1/repo/subscriber.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/api/v1/repo/tag.go b/routers/api/v1/repo/tag.go index ab318661625..6b38a08c2f7 100644 --- a/routers/api/v1/repo/tag.go +++ b/routers/api/v1/repo/tag.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 repo diff --git a/routers/api/v1/repo/teams.go b/routers/api/v1/repo/teams.go index f485f2086ee..1ea3ae0008a 100644 --- a/routers/api/v1/repo/teams.go +++ b/routers/api/v1/repo/teams.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 repo diff --git a/routers/api/v1/repo/topic.go b/routers/api/v1/repo/topic.go index 64dc763dc38..316b1902598 100644 --- a/routers/api/v1/repo/topic.go +++ b/routers/api/v1/repo/topic.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 repo diff --git a/routers/api/v1/repo/transfer.go b/routers/api/v1/repo/transfer.go index 067a4ebe194..a40419e13e3 100644 --- a/routers/api/v1/repo/transfer.go +++ b/routers/api/v1/repo/transfer.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 repo diff --git a/routers/api/v1/repo/tree.go b/routers/api/v1/repo/tree.go index b8294ebe312..9df96204cbe 100644 --- a/routers/api/v1/repo/tree.go +++ b/routers/api/v1/repo/tree.go @@ -1,6 +1,5 @@ // Copyright 2018 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 repo diff --git a/routers/api/v1/repo/wiki.go b/routers/api/v1/repo/wiki.go index 734a550a715..0b55a9b2818 100644 --- a/routers/api/v1/repo/wiki.go +++ b/routers/api/v1/repo/wiki.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 repo diff --git a/routers/api/v1/settings/settings.go b/routers/api/v1/settings/settings.go index 36f93893a88..02bda1309d7 100644 --- a/routers/api/v1/settings/settings.go +++ b/routers/api/v1/settings/settings.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 settings diff --git a/routers/api/v1/swagger/activitypub.go b/routers/api/v1/swagger/activitypub.go index afc0c05057d..91341669da9 100644 --- a/routers/api/v1/swagger/activitypub.go +++ b/routers/api/v1/swagger/activitypub.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 swagger diff --git a/routers/api/v1/swagger/app.go b/routers/api/v1/swagger/app.go index 9783abe1a08..6a08b118745 100644 --- a/routers/api/v1/swagger/app.go +++ b/routers/api/v1/swagger/app.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 swagger diff --git a/routers/api/v1/swagger/cron.go b/routers/api/v1/swagger/cron.go index 85f2ed0e352..00cfbe0adba 100644 --- a/routers/api/v1/swagger/cron.go +++ b/routers/api/v1/swagger/cron.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 swagger diff --git a/routers/api/v1/swagger/issue.go b/routers/api/v1/swagger/issue.go index 09e7077b200..62458a34243 100644 --- a/routers/api/v1/swagger/issue.go +++ b/routers/api/v1/swagger/issue.go @@ -1,6 +1,5 @@ // 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 swagger diff --git a/routers/api/v1/swagger/key.go b/routers/api/v1/swagger/key.go index c3da37af636..83908335896 100644 --- a/routers/api/v1/swagger/key.go +++ b/routers/api/v1/swagger/key.go @@ -1,6 +1,5 @@ // 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 swagger diff --git a/routers/api/v1/swagger/misc.go b/routers/api/v1/swagger/misc.go index 1d3c257efac..a4052a6a763 100644 --- a/routers/api/v1/swagger/misc.go +++ b/routers/api/v1/swagger/misc.go @@ -1,6 +1,5 @@ // 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 swagger diff --git a/routers/api/v1/swagger/nodeinfo.go b/routers/api/v1/swagger/nodeinfo.go index c1ecf3a3f36..8650dfa0923 100644 --- a/routers/api/v1/swagger/nodeinfo.go +++ b/routers/api/v1/swagger/nodeinfo.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 swagger diff --git a/routers/api/v1/swagger/notify.go b/routers/api/v1/swagger/notify.go index cd30d496e0d..743d807a0a9 100644 --- a/routers/api/v1/swagger/notify.go +++ b/routers/api/v1/swagger/notify.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 swagger diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go index e8cfc0706f5..979b1840759 100644 --- a/routers/api/v1/swagger/options.go +++ b/routers/api/v1/swagger/options.go @@ -1,6 +1,5 @@ // 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 swagger diff --git a/routers/api/v1/swagger/org.go b/routers/api/v1/swagger/org.go index d98e821ba74..0105446b00a 100644 --- a/routers/api/v1/swagger/org.go +++ b/routers/api/v1/swagger/org.go @@ -1,6 +1,5 @@ // 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 swagger diff --git a/routers/api/v1/swagger/package.go b/routers/api/v1/swagger/package.go index 2a1f0573147..eada12d1eae 100644 --- a/routers/api/v1/swagger/package.go +++ b/routers/api/v1/swagger/package.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 swagger diff --git a/routers/api/v1/swagger/repo.go b/routers/api/v1/swagger/repo.go index 642b1b7b910..bd867213a62 100644 --- a/routers/api/v1/swagger/repo.go +++ b/routers/api/v1/swagger/repo.go @@ -1,6 +1,5 @@ // 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 swagger diff --git a/routers/api/v1/swagger/settings.go b/routers/api/v1/swagger/settings.go index 4bf153cb9c5..a9466699df3 100644 --- a/routers/api/v1/swagger/settings.go +++ b/routers/api/v1/swagger/settings.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 swagger diff --git a/routers/api/v1/swagger/user.go b/routers/api/v1/swagger/user.go index 857bdc2a14c..fb6d185ee7d 100644 --- a/routers/api/v1/swagger/user.go +++ b/routers/api/v1/swagger/user.go @@ -1,6 +1,5 @@ // 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 swagger diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go index 14f15925918..6cb7b812b23 100644 --- a/routers/api/v1/user/app.go +++ b/routers/api/v1/user/app.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 user diff --git a/routers/api/v1/user/email.go b/routers/api/v1/user/email.go index 31c13172fc0..84823aaed20 100644 --- a/routers/api/v1/user/email.go +++ b/routers/api/v1/user/email.go @@ -1,6 +1,5 @@ // Copyright 2015 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 user diff --git a/routers/api/v1/user/follower.go b/routers/api/v1/user/follower.go index 22f8f40e1c8..38ddf990c47 100644 --- a/routers/api/v1/user/follower.go +++ b/routers/api/v1/user/follower.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// 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 user diff --git a/routers/api/v1/user/gpg_key.go b/routers/api/v1/user/gpg_key.go index b87cf0041e1..7c91d2ac656 100644 --- a/routers/api/v1/user/gpg_key.go +++ b/routers/api/v1/user/gpg_key.go @@ -1,6 +1,5 @@ // 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 user diff --git a/routers/api/v1/user/helper.go b/routers/api/v1/user/helper.go index ae7fa5248e4..28f600ad92a 100644 --- a/routers/api/v1/user/helper.go +++ b/routers/api/v1/user/helper.go @@ -1,6 +1,5 @@ // Copyright 2021 The Gitea Authors. -// 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 user diff --git a/routers/api/v1/user/key.go b/routers/api/v1/user/key.go index 71a2c910a6a..d00eec85e49 100644 --- a/routers/api/v1/user/key.go +++ b/routers/api/v1/user/key.go @@ -1,6 +1,5 @@ // Copyright 2015 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 user diff --git a/routers/api/v1/user/repo.go b/routers/api/v1/user/repo.go index d1917a9938b..2af70f9ad39 100644 --- a/routers/api/v1/user/repo.go +++ b/routers/api/v1/user/repo.go @@ -1,6 +1,5 @@ // 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 user diff --git a/routers/api/v1/user/settings.go b/routers/api/v1/user/settings.go index f00bf8c2687..89bfd83efc1 100644 --- a/routers/api/v1/user/settings.go +++ b/routers/api/v1/user/settings.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 user diff --git a/routers/api/v1/user/star.go b/routers/api/v1/user/star.go index 96748c630d6..2ef5806974e 100644 --- a/routers/api/v1/user/star.go +++ b/routers/api/v1/user/star.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// 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 user diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go index 69197aef23e..8a21c2c7cac 100644 --- a/routers/api/v1/user/user.go +++ b/routers/api/v1/user/user.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// 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 user diff --git a/routers/api/v1/user/watch.go b/routers/api/v1/user/watch.go index 7765a399f38..43c097444ec 100644 --- a/routers/api/v1/user/watch.go +++ b/routers/api/v1/user/watch.go @@ -1,6 +1,5 @@ // Copyright 2016 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 user diff --git a/routers/api/v1/utils/git.go b/routers/api/v1/utils/git.go index 816f8b3595f..2801dee8bab 100644 --- a/routers/api/v1/utils/git.go +++ b/routers/api/v1/utils/git.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 utils diff --git a/routers/api/v1/utils/hook.go b/routers/api/v1/utils/hook.go index aa922f4f5b1..7faf609ae81 100644 --- a/routers/api/v1/utils/hook.go +++ b/routers/api/v1/utils/hook.go @@ -1,6 +1,5 @@ // Copyright 2016 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 utils diff --git a/routers/api/v1/utils/page.go b/routers/api/v1/utils/page.go index 608bec73957..ef5806fa921 100644 --- a/routers/api/v1/utils/page.go +++ b/routers/api/v1/utils/page.go @@ -1,6 +1,5 @@ // 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 utils diff --git a/routers/common/db.go b/routers/common/db.go index 99d66f93e89..ac082ab36f9 100644 --- a/routers/common/db.go +++ b/routers/common/db.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 common diff --git a/routers/common/middleware.go b/routers/common/middleware.go index 6ea1e1dfbe5..0c7838b0ef5 100644 --- a/routers/common/middleware.go +++ b/routers/common/middleware.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 common diff --git a/routers/common/repo.go b/routers/common/repo.go index 340eb1809f5..4b04ddae347 100644 --- a/routers/common/repo.go +++ b/routers/common/repo.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 common diff --git a/routers/init.go b/routers/init.go index fecc5c439c6..670191debc6 100644 --- a/routers/init.go +++ b/routers/init.go @@ -1,6 +1,5 @@ // Copyright 2016 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 routers diff --git a/routers/install/install.go b/routers/install/install.go index 184dc5bae18..ab37f9ba35f 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 install diff --git a/routers/install/routes.go b/routers/install/routes.go index 7617477827c..9aa5a88d24b 100644 --- a/routers/install/routes.go +++ b/routers/install/routes.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 install diff --git a/routers/install/routes_test.go b/routers/install/routes_test.go index e69d2d15dfa..35b5e5e9160 100644 --- a/routers/install/routes_test.go +++ b/routers/install/routes_test.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 install diff --git a/routers/install/setting.go b/routers/install/setting.go index c4912f1124f..b76219f45d3 100644 --- a/routers/install/setting.go +++ b/routers/install/setting.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 install diff --git a/routers/private/default_branch.go b/routers/private/default_branch.go index 55ffef43f3f..268ebbe4431 100644 --- a/routers/private/default_branch.go +++ b/routers/private/default_branch.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 private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/hook_post_receive.go b/routers/private/hook_post_receive.go index 1370e5302b7..9c69f9c3458 100644 --- a/routers/private/hook_post_receive.go +++ b/routers/private/hook_post_receive.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 private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/hook_pre_receive.go b/routers/private/hook_pre_receive.go index 86bdf60ab98..52a82bfa445 100644 --- a/routers/private/hook_pre_receive.go +++ b/routers/private/hook_pre_receive.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 private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/hook_proc_receive.go b/routers/private/hook_proc_receive.go index 0653f8b0d27..05921e6f584 100644 --- a/routers/private/hook_proc_receive.go +++ b/routers/private/hook_proc_receive.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 private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/hook_verification.go b/routers/private/hook_verification.go index 8a2d1cf33db..7b9550dfddd 100644 --- a/routers/private/hook_verification.go +++ b/routers/private/hook_verification.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 private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/internal.go b/routers/private/internal.go index f8e451e80f0..d5c85480a77 100644 --- a/routers/private/internal.go +++ b/routers/private/internal.go @@ -1,6 +1,5 @@ // 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 private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/internal_repo.go b/routers/private/internal_repo.go index c50d2a01a72..2e6f87d6b08 100644 --- a/routers/private/internal_repo.go +++ b/routers/private/internal_repo.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 private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/key.go b/routers/private/key.go index 9977492c635..b536019dd7a 100644 --- a/routers/private/key.go +++ b/routers/private/key.go @@ -1,6 +1,5 @@ // Copyright 2018 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 private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/mail.go b/routers/private/mail.go index 255e1d901df..622a01dd8fe 100644 --- a/routers/private/mail.go +++ b/routers/private/mail.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 private diff --git a/routers/private/manager.go b/routers/private/manager.go index e7f08ac4554..f15da298d6a 100644 --- a/routers/private/manager.go +++ b/routers/private/manager.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 private diff --git a/routers/private/manager_process.go b/routers/private/manager_process.go index e12bbee18b4..a5993bf3718 100644 --- a/routers/private/manager_process.go +++ b/routers/private/manager_process.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 private diff --git a/routers/private/manager_unix.go b/routers/private/manager_unix.go index 43cbdec01c0..09ced33b8d7 100644 --- a/routers/private/manager_unix.go +++ b/routers/private/manager_unix.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 //go:build !windows diff --git a/routers/private/manager_windows.go b/routers/private/manager_windows.go index 2b72ee952d4..b5382c7d916 100644 --- a/routers/private/manager_windows.go +++ b/routers/private/manager_windows.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 //go:build windows diff --git a/routers/private/restore_repo.go b/routers/private/restore_repo.go index 34e06e51c29..97ac9a3c5ad 100644 --- a/routers/private/restore_repo.go +++ b/routers/private/restore_repo.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 private diff --git a/routers/private/serv.go b/routers/private/serv.go index ddb2e6aa8bf..676d83d9e13 100644 --- a/routers/private/serv.go +++ b/routers/private/serv.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 private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead. package private diff --git a/routers/private/ssh_log.go b/routers/private/ssh_log.go index 2f1793a0e0f..54604ad5546 100644 --- a/routers/private/ssh_log.go +++ b/routers/private/ssh_log.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 private diff --git a/routers/utils/utils.go b/routers/utils/utils.go index 66eaa1d9ce1..d6856fceacd 100644 --- a/routers/utils/utils.go +++ b/routers/utils/utils.go @@ -1,6 +1,5 @@ // 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 utils diff --git a/routers/utils/utils_test.go b/routers/utils/utils_test.go index 42cf948e309..6d19214c88e 100644 --- a/routers/utils/utils_test.go +++ b/routers/utils/utils_test.go @@ -1,6 +1,5 @@ // 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 utils diff --git a/routers/web/admin/admin.go b/routers/web/admin/admin.go index d0664eb7809..0a51000c70c 100644 --- a/routers/web/admin/admin.go +++ b/routers/web/admin/admin.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 admin diff --git a/routers/web/admin/admin_test.go b/routers/web/admin/admin_test.go index 1bc43998b25..2b65ab3ea37 100644 --- a/routers/web/admin/admin_test.go +++ b/routers/web/admin/admin_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 admin diff --git a/routers/web/admin/applications.go b/routers/web/admin/applications.go index c7a9c3100fa..745d17ff2a4 100644 --- a/routers/web/admin/applications.go +++ b/routers/web/admin/applications.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 admin diff --git a/routers/web/admin/auths.go b/routers/web/admin/auths.go index 7ea8a52809e..1bc166902c7 100644 --- a/routers/web/admin/auths.go +++ b/routers/web/admin/auths.go @@ -1,6 +1,5 @@ // 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 admin diff --git a/routers/web/admin/config.go b/routers/web/admin/config.go index 792eec8d568..eaa02588ca5 100644 --- a/routers/web/admin/config.go +++ b/routers/web/admin/config.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 admin diff --git a/routers/web/admin/emails.go b/routers/web/admin/emails.go index 9482ae01235..c16158c6ae4 100644 --- a/routers/web/admin/emails.go +++ b/routers/web/admin/emails.go @@ -1,6 +1,5 @@ // Copyright 2020 The Gitea Authors. -// 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 admin diff --git a/routers/web/admin/hooks.go b/routers/web/admin/hooks.go index bf71cb5595f..e8db9a3ded7 100644 --- a/routers/web/admin/hooks.go +++ b/routers/web/admin/hooks.go @@ -1,6 +1,5 @@ // Copyright 2018 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 admin diff --git a/routers/web/admin/main_test.go b/routers/web/admin/main_test.go index 4e6ad4d743f..ea79830fa13 100644 --- a/routers/web/admin/main_test.go +++ b/routers/web/admin/main_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 admin diff --git a/routers/web/admin/notice.go b/routers/web/admin/notice.go index f5ec294cc36..f60cf90b3c7 100644 --- a/routers/web/admin/notice.go +++ b/routers/web/admin/notice.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 admin diff --git a/routers/web/admin/orgs.go b/routers/web/admin/orgs.go index 6081ab9b1c6..a4eb0af58d0 100644 --- a/routers/web/admin/orgs.go +++ b/routers/web/admin/orgs.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// 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 admin diff --git a/routers/web/admin/packages.go b/routers/web/admin/packages.go index 5de8922e6f3..80cec51275c 100644 --- a/routers/web/admin/packages.go +++ b/routers/web/admin/packages.go @@ -1,6 +1,5 @@ // 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 admin diff --git a/routers/web/admin/repos.go b/routers/web/admin/repos.go index 17b00975ec0..b488bbbd140 100644 --- a/routers/web/admin/repos.go +++ b/routers/web/admin/repos.go @@ -1,6 +1,5 @@ // 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 admin diff --git a/routers/web/admin/users.go b/routers/web/admin/users.go index 5cdfb8142ee..399633e39fe 100644 --- a/routers/web/admin/users.go +++ b/routers/web/admin/users.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// 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 admin diff --git a/routers/web/admin/users_test.go b/routers/web/admin/users_test.go index da67cd5cb45..ed58a54eef9 100644 --- a/routers/web/admin/users_test.go +++ b/routers/web/admin/users_test.go @@ -1,6 +1,5 @@ // 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 admin diff --git a/routers/web/auth.go b/routers/web/auth.go index a771643b663..1ca860ecc8d 100644 --- a/routers/web/auth.go +++ b/routers/web/auth.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 //go:build !windows diff --git a/routers/web/auth/2fa.go b/routers/web/auth/2fa.go index c61922cd9da..2aacf230371 100644 --- a/routers/web/auth/2fa.go +++ b/routers/web/auth/2fa.go @@ -1,6 +1,5 @@ // 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 auth diff --git a/routers/web/auth/auth.go b/routers/web/auth/auth.go index 133a7cced16..565a15bc11a 100644 --- a/routers/web/auth/auth.go +++ b/routers/web/auth/auth.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 auth diff --git a/routers/web/auth/linkaccount.go b/routers/web/auth/linkaccount.go index c36eaee0782..6c409c6b9df 100644 --- a/routers/web/auth/linkaccount.go +++ b/routers/web/auth/linkaccount.go @@ -1,6 +1,5 @@ // 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 auth diff --git a/routers/web/auth/main_test.go b/routers/web/auth/main_test.go index 71f522fb075..8295515ba95 100644 --- a/routers/web/auth/main_test.go +++ b/routers/web/auth/main_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 auth diff --git a/routers/web/auth/oauth.go b/routers/web/auth/oauth.go index d845f21a330..2b872178cac 100644 --- a/routers/web/auth/oauth.go +++ b/routers/web/auth/oauth.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 auth diff --git a/routers/web/auth/oauth_test.go b/routers/web/auth/oauth_test.go index 48400846d24..5116b4fc713 100644 --- a/routers/web/auth/oauth_test.go +++ b/routers/web/auth/oauth_test.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 auth diff --git a/routers/web/auth/openid.go b/routers/web/auth/openid.go index eedf3f5c1ba..f544b653568 100644 --- a/routers/web/auth/openid.go +++ b/routers/web/auth/openid.go @@ -1,6 +1,5 @@ // 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 auth diff --git a/routers/web/auth/password.go b/routers/web/auth/password.go index c21ca9cf694..e546c77bc91 100644 --- a/routers/web/auth/password.go +++ b/routers/web/auth/password.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 auth diff --git a/routers/web/auth/webauthn.go b/routers/web/auth/webauthn.go index 917cbdd57bf..b60007bc032 100644 --- a/routers/web/auth/webauthn.go +++ b/routers/web/auth/webauthn.go @@ -1,6 +1,5 @@ // Copyright 2018 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 auth diff --git a/routers/web/auth_windows.go b/routers/web/auth_windows.go index f404fd37716..3125d7ce9a7 100644 --- a/routers/web/auth_windows.go +++ b/routers/web/auth_windows.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 web diff --git a/routers/web/base.go b/routers/web/base.go index 2441d6d5171..b0d8a7c3f1e 100644 --- a/routers/web/base.go +++ b/routers/web/base.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 web diff --git a/routers/web/events/events.go b/routers/web/events/events.go index d8c6f38d02a..1a5a162c1a2 100644 --- a/routers/web/events/events.go +++ b/routers/web/events/events.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 events diff --git a/routers/web/explore/code.go b/routers/web/explore/code.go index 38474255d19..942b1f83789 100644 --- a/routers/web/explore/code.go +++ b/routers/web/explore/code.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 explore diff --git a/routers/web/explore/org.go b/routers/web/explore/org.go index eb6972fad33..c9fb05ff3a8 100644 --- a/routers/web/explore/org.go +++ b/routers/web/explore/org.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 explore diff --git a/routers/web/explore/repo.go b/routers/web/explore/repo.go index 8d4ecf1bc08..5271e39bbc9 100644 --- a/routers/web/explore/repo.go +++ b/routers/web/explore/repo.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 explore diff --git a/routers/web/explore/topic.go b/routers/web/explore/topic.go index 39b87f24980..50df9d1113e 100644 --- a/routers/web/explore/topic.go +++ b/routers/web/explore/topic.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 explore diff --git a/routers/web/explore/user.go b/routers/web/explore/user.go index ea3d83e8d6c..bb6aa3dc77c 100644 --- a/routers/web/explore/user.go +++ b/routers/web/explore/user.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 explore diff --git a/routers/web/feed/convert.go b/routers/web/feed/convert.go index c6fc352b647..e0e481d1a56 100644 --- a/routers/web/feed/convert.go +++ b/routers/web/feed/convert.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 feed diff --git a/routers/web/feed/profile.go b/routers/web/feed/profile.go index ffa34572bce..7641769192c 100644 --- a/routers/web/feed/profile.go +++ b/routers/web/feed/profile.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 feed diff --git a/routers/web/feed/repo.go b/routers/web/feed/repo.go index 027f90872fa..1d24b588005 100644 --- a/routers/web/feed/repo.go +++ b/routers/web/feed/repo.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 feed diff --git a/routers/web/goget.go b/routers/web/goget.go index a58739fe42a..b8e264c4415 100644 --- a/routers/web/goget.go +++ b/routers/web/goget.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 web diff --git a/routers/web/healthcheck/check.go b/routers/web/healthcheck/check.go index 57707b61212..1142a0aec5d 100644 --- a/routers/web/healthcheck/check.go +++ b/routers/web/healthcheck/check.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 healthcheck diff --git a/routers/web/home.go b/routers/web/home.go index 7640243ba07..ecfecf6e67e 100644 --- a/routers/web/home.go +++ b/routers/web/home.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 web diff --git a/routers/web/metrics.go b/routers/web/metrics.go index c7e01b8faaf..46c13f0a244 100644 --- a/routers/web/metrics.go +++ b/routers/web/metrics.go @@ -1,6 +1,5 @@ // Copyright 2018 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 web diff --git a/routers/web/misc/markdown.go b/routers/web/misc/markdown.go index 0567cbb30c2..aaa3ed0781f 100644 --- a/routers/web/misc/markdown.go +++ b/routers/web/misc/markdown.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 misc diff --git a/routers/web/misc/swagger.go b/routers/web/misc/swagger.go index e46d4194b46..72c09a37801 100644 --- a/routers/web/misc/swagger.go +++ b/routers/web/misc/swagger.go @@ -1,6 +1,5 @@ // 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 misc diff --git a/routers/web/nodeinfo.go b/routers/web/nodeinfo.go index 2ee94e35e86..01b71e7086b 100644 --- a/routers/web/nodeinfo.go +++ b/routers/web/nodeinfo.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 web diff --git a/routers/web/org/home.go b/routers/web/org/home.go index 6bd8a89d123..4cc364acd3a 100644 --- a/routers/web/org/home.go +++ b/routers/web/org/home.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 org diff --git a/routers/web/org/members.go b/routers/web/org/members.go index ec5a98fc6a2..3be2a39c2e3 100644 --- a/routers/web/org/members.go +++ b/routers/web/org/members.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// 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 org diff --git a/routers/web/org/org.go b/routers/web/org/org.go index 32d8787995d..f67e7edb4c7 100644 --- a/routers/web/org/org.go +++ b/routers/web/org/org.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 org diff --git a/routers/web/org/org_labels.go b/routers/web/org/org_labels.go index 185e1eee310..1c910a93a50 100644 --- a/routers/web/org/org_labels.go +++ b/routers/web/org/org_labels.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 org diff --git a/routers/web/org/setting.go b/routers/web/org/setting.go index 3f7bc59856f..899e554ba0d 100644 --- a/routers/web/org/setting.go +++ b/routers/web/org/setting.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 org diff --git a/routers/web/org/setting_oauth2.go b/routers/web/org/setting_oauth2.go index 47d1141f34b..9bf4280b07e 100644 --- a/routers/web/org/setting_oauth2.go +++ b/routers/web/org/setting_oauth2.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 org diff --git a/routers/web/org/teams.go b/routers/web/org/teams.go index 399d07fe47b..d12e2fcc453 100644 --- a/routers/web/org/teams.go +++ b/routers/web/org/teams.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 org diff --git a/routers/web/repo/activity.go b/routers/web/repo/activity.go index 316cbcd95f3..3d030edaca0 100644 --- a/routers/web/repo/activity.go +++ b/routers/web/repo/activity.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/web/repo/attachment.go b/routers/web/repo/attachment.go index 190dc6c2c75..d12fa60dafc 100644 --- a/routers/web/repo/attachment.go +++ b/routers/web/repo/attachment.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/web/repo/blame.go b/routers/web/repo/blame.go index 52d5c3c6e62..50bfa9d3bd2 100644 --- a/routers/web/repo/blame.go +++ b/routers/web/repo/blame.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 repo diff --git a/routers/web/repo/branch.go b/routers/web/repo/branch.go index 43e6d43134c..61fb24d0587 100644 --- a/routers/web/repo/branch.go +++ b/routers/web/repo/branch.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 repo diff --git a/routers/web/repo/cherry_pick.go b/routers/web/repo/cherry_pick.go index d2a4e19d0ea..2056ad1b379 100644 --- a/routers/web/repo/cherry_pick.go +++ b/routers/web/repo/cherry_pick.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 repo diff --git a/routers/web/repo/commit.go b/routers/web/repo/commit.go index a6553256b08..efc216661ca 100644 --- a/routers/web/repo/commit.go +++ b/routers/web/repo/commit.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 repo diff --git a/routers/web/repo/compare.go b/routers/web/repo/compare.go index 0fb8e447252..a9d6eea1ebe 100644 --- a/routers/web/repo/compare.go +++ b/routers/web/repo/compare.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 repo diff --git a/routers/web/repo/download.go b/routers/web/repo/download.go index cd2d305de66..c1e9ba58b91 100644 --- a/routers/web/repo/download.go +++ b/routers/web/repo/download.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 repo diff --git a/routers/web/repo/editor.go b/routers/web/repo/editor.go index e8fc020450a..7b064adfc5e 100644 --- a/routers/web/repo/editor.go +++ b/routers/web/repo/editor.go @@ -1,6 +1,5 @@ // Copyright 2016 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 repo diff --git a/routers/web/repo/editor_test.go b/routers/web/repo/editor_test.go index ac0c3858979..1e53aac9b09 100644 --- a/routers/web/repo/editor_test.go +++ b/routers/web/repo/editor_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 repo diff --git a/routers/web/repo/find.go b/routers/web/repo/find.go index 7117c00076d..daefe59c8f2 100644 --- a/routers/web/repo/find.go +++ b/routers/web/repo/find.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 repo diff --git a/routers/web/repo/http.go b/routers/web/repo/http.go index 1ec781bb13d..d2450066e34 100644 --- a/routers/web/repo/http.go +++ b/routers/web/repo/http.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 repo diff --git a/routers/web/repo/http_test.go b/routers/web/repo/http_test.go index 58ac1c07a12..5ba8de3d63c 100644 --- a/routers/web/repo/http_test.go +++ b/routers/web/repo/http_test.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 repo diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index 318d9af7035..2a0a849b5ba 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 repo diff --git a/routers/web/repo/issue_content_history.go b/routers/web/repo/issue_content_history.go index a9386d274a7..dee506deacf 100644 --- a/routers/web/repo/issue_content_history.go +++ b/routers/web/repo/issue_content_history.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 repo diff --git a/routers/web/repo/issue_dependency.go b/routers/web/repo/issue_dependency.go index d8d934ea1c2..41c127be91f 100644 --- a/routers/web/repo/issue_dependency.go +++ b/routers/web/repo/issue_dependency.go @@ -1,6 +1,5 @@ // Copyright 2018 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 repo diff --git a/routers/web/repo/issue_label.go b/routers/web/repo/issue_label.go index 560f25a0af7..01421dc9276 100644 --- a/routers/web/repo/issue_label.go +++ b/routers/web/repo/issue_label.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/web/repo/issue_label_test.go b/routers/web/repo/issue_label_test.go index ea078e215c0..a62d2afaa83 100644 --- a/routers/web/repo/issue_label_test.go +++ b/routers/web/repo/issue_label_test.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/web/repo/issue_lock.go b/routers/web/repo/issue_lock.go index a89ea47571e..10db968a211 100644 --- a/routers/web/repo/issue_lock.go +++ b/routers/web/repo/issue_lock.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 repo diff --git a/routers/web/repo/issue_stopwatch.go b/routers/web/repo/issue_stopwatch.go index 97d4441a270..d2a7a12a1f8 100644 --- a/routers/web/repo/issue_stopwatch.go +++ b/routers/web/repo/issue_stopwatch.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/web/repo/issue_test.go b/routers/web/repo/issue_test.go index ad82fe0f36b..f1d0aac72ff 100644 --- a/routers/web/repo/issue_test.go +++ b/routers/web/repo/issue_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 repo diff --git a/routers/web/repo/issue_timetrack.go b/routers/web/repo/issue_timetrack.go index 817a2c6d208..6e9d3673cf9 100644 --- a/routers/web/repo/issue_timetrack.go +++ b/routers/web/repo/issue_timetrack.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/web/repo/issue_watch.go b/routers/web/repo/issue_watch.go index 5210ecf777a..c23dbf06229 100644 --- a/routers/web/repo/issue_watch.go +++ b/routers/web/repo/issue_watch.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/web/repo/lfs.go b/routers/web/repo/lfs.go index 9bf4307bfe0..82e0055ab2a 100644 --- a/routers/web/repo/lfs.go +++ b/routers/web/repo/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 repo diff --git a/routers/web/repo/main_test.go b/routers/web/repo/main_test.go index a1ca3c3bc71..e3a09a95bd3 100644 --- a/routers/web/repo/main_test.go +++ b/routers/web/repo/main_test.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/web/repo/middlewares.go b/routers/web/repo/middlewares.go index c9e8eb4a89e..9a4aa3382cb 100644 --- a/routers/web/repo/middlewares.go +++ b/routers/web/repo/middlewares.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 repo diff --git a/routers/web/repo/migrate.go b/routers/web/repo/migrate.go index 393f8ed3d93..bbc349a0a54 100644 --- a/routers/web/repo/migrate.go +++ b/routers/web/repo/migrate.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 repo diff --git a/routers/web/repo/milestone.go b/routers/web/repo/milestone.go index 1e75bd79fb2..04271563973 100644 --- a/routers/web/repo/milestone.go +++ b/routers/web/repo/milestone.go @@ -1,6 +1,5 @@ // Copyright 2018 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 repo diff --git a/routers/web/repo/packages.go b/routers/web/repo/packages.go index 57db19aa325..83324711da7 100644 --- a/routers/web/repo/packages.go +++ b/routers/web/repo/packages.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 repo diff --git a/routers/web/repo/patch.go b/routers/web/repo/patch.go index cd731337baa..27199ba4109 100644 --- a/routers/web/repo/patch.go +++ b/routers/web/repo/patch.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 repo diff --git a/routers/web/repo/projects.go b/routers/web/repo/projects.go index fb2d25a22b8..73f0916346b 100644 --- a/routers/web/repo/projects.go +++ b/routers/web/repo/projects.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 repo diff --git a/routers/web/repo/projects_test.go b/routers/web/repo/projects_test.go index 62fb0457400..c712902ea9f 100644 --- a/routers/web/repo/projects_test.go +++ b/routers/web/repo/projects_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 repo diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go index 870bc1773b9..682bc64ca29 100644 --- a/routers/web/repo/pull.go +++ b/routers/web/repo/pull.go @@ -1,8 +1,7 @@ // Copyright 2018 The Gitea Authors. // 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 repo diff --git a/routers/web/repo/pull_review.go b/routers/web/repo/pull_review.go index bbaacc234c0..9f4cdde864b 100644 --- a/routers/web/repo/pull_review.go +++ b/routers/web/repo/pull_review.go @@ -1,6 +1,5 @@ // Copyright 2018 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 repo diff --git a/routers/web/repo/release.go b/routers/web/repo/release.go index 0373d5b158d..9ef44eb5823 100644 --- a/routers/web/repo/release.go +++ b/routers/web/repo/release.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 repo diff --git a/routers/web/repo/release_test.go b/routers/web/repo/release_test.go index 16371fc860c..81ae58178fa 100644 --- a/routers/web/repo/release_test.go +++ b/routers/web/repo/release_test.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/web/repo/render.go b/routers/web/repo/render.go index 28a6d2f4293..f07b4e8c113 100644 --- a/routers/web/repo/render.go +++ b/routers/web/repo/render.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 repo diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go index 17e600182d4..0a8a1eb4e8b 100644 --- a/routers/web/repo/repo.go +++ b/routers/web/repo/repo.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 repo diff --git a/routers/web/repo/search.go b/routers/web/repo/search.go index 3d1835c7c32..137f38d4091 100644 --- a/routers/web/repo/search.go +++ b/routers/web/repo/search.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/web/repo/setting.go b/routers/web/repo/setting.go index 2b5691ce885..9e47d0bb124 100644 --- a/routers/web/repo/setting.go +++ b/routers/web/repo/setting.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 repo diff --git a/routers/web/repo/setting_protected_branch.go b/routers/web/repo/setting_protected_branch.go index c4cd3486aaa..975873a9ef0 100644 --- a/routers/web/repo/setting_protected_branch.go +++ b/routers/web/repo/setting_protected_branch.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/web/repo/settings_test.go b/routers/web/repo/settings_test.go index 4acd7df5b81..3bb202505c4 100644 --- a/routers/web/repo/settings_test.go +++ b/routers/web/repo/settings_test.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/web/repo/tag.go b/routers/web/repo/tag.go index 4d46716c303..26df1dbf6cc 100644 --- a/routers/web/repo/tag.go +++ b/routers/web/repo/tag.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 repo diff --git a/routers/web/repo/topic.go b/routers/web/repo/topic.go index efbfc62d56b..4c0b38bd910 100644 --- a/routers/web/repo/topic.go +++ b/routers/web/repo/topic.go @@ -1,6 +1,5 @@ // Copyright 2018 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 repo diff --git a/routers/web/repo/treelist.go b/routers/web/repo/treelist.go index 80f43a0c402..c364e7090f7 100644 --- a/routers/web/repo/treelist.go +++ b/routers/web/repo/treelist.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 repo diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go index 1d1ba250646..c7f97410ff6 100644 --- a/routers/web/repo/view.go +++ b/routers/web/repo/view.go @@ -1,7 +1,6 @@ // Copyright 2017 The Gitea Authors. All rights reserved. // 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 repo diff --git a/routers/web/repo/view_test.go b/routers/web/repo/view_test.go index 803906b2177..73ba118823b 100644 --- a/routers/web/repo/view_test.go +++ b/routers/web/repo/view_test.go @@ -1,7 +1,6 @@ // Copyright 2017 The Gitea Authors. All rights reserved. // 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 repo diff --git a/routers/web/repo/webhook.go b/routers/web/repo/webhook.go index 5496496e80f..677fbc92ed3 100644 --- a/routers/web/repo/webhook.go +++ b/routers/web/repo/webhook.go @@ -1,7 +1,6 @@ // Copyright 2015 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 repo diff --git a/routers/web/repo/wiki.go b/routers/web/repo/wiki.go index 24d851762b2..885f84543c8 100644 --- a/routers/web/repo/wiki.go +++ b/routers/web/repo/wiki.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2018 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 repo diff --git a/routers/web/repo/wiki_test.go b/routers/web/repo/wiki_test.go index 34f466854fe..4699f5379ad 100644 --- a/routers/web/repo/wiki_test.go +++ b/routers/web/repo/wiki_test.go @@ -1,6 +1,5 @@ // 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 repo diff --git a/routers/web/swagger_json.go b/routers/web/swagger_json.go index 82d72698c60..2d626c558ed 100644 --- a/routers/web/swagger_json.go +++ b/routers/web/swagger_json.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 web diff --git a/routers/web/user/avatar.go b/routers/web/user/avatar.go index 05896299d25..20c2ef3e47b 100644 --- a/routers/web/user/avatar.go +++ b/routers/web/user/avatar.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 user diff --git a/routers/web/user/code.go b/routers/web/user/code.go index 89bd23588b8..0f959320615 100644 --- a/routers/web/user/code.go +++ b/routers/web/user/code.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 user diff --git a/routers/web/user/home.go b/routers/web/user/home.go index e67202b284e..fc4c919de35 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 user diff --git a/routers/web/user/home_test.go b/routers/web/user/home_test.go index 36e99bba5e0..a75b3573a00 100644 --- a/routers/web/user/home_test.go +++ b/routers/web/user/home_test.go @@ -1,6 +1,5 @@ // 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 user diff --git a/routers/web/user/main_test.go b/routers/web/user/main_test.go index 517957a85cd..925482a1d2b 100644 --- a/routers/web/user/main_test.go +++ b/routers/web/user/main_test.go @@ -1,6 +1,5 @@ // 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 user diff --git a/routers/web/user/notification.go b/routers/web/user/notification.go index 323422a1b9d..b21d52bbfde 100644 --- a/routers/web/user/notification.go +++ b/routers/web/user/notification.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 user diff --git a/routers/web/user/package.go b/routers/web/user/package.go index 7be37b6a50a..ae4c239c70c 100644 --- a/routers/web/user/package.go +++ b/routers/web/user/package.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 user diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index 982290e0ab2..0002d56de01 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 user diff --git a/routers/web/user/search.go b/routers/web/user/search.go index 328c7bade4f..093de406a97 100644 --- a/routers/web/user/search.go +++ b/routers/web/user/search.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 user diff --git a/routers/web/user/setting/account.go b/routers/web/user/setting/account.go index 8b95caf2fcb..95b3b4040d9 100644 --- a/routers/web/user/setting/account.go +++ b/routers/web/user/setting/account.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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/routers/web/user/setting/account_test.go b/routers/web/user/setting/account_test.go index 005603e7ac8..5fce41f065b 100644 --- a/routers/web/user/setting/account_test.go +++ b/routers/web/user/setting/account_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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/routers/web/user/setting/adopt.go b/routers/web/user/setting/adopt.go index a92aa6e989e..0aaf5920bc6 100644 --- a/routers/web/user/setting/adopt.go +++ b/routers/web/user/setting/adopt.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/routers/web/user/setting/applications.go b/routers/web/user/setting/applications.go index e9572a07a6c..23c215738d0 100644 --- a/routers/web/user/setting/applications.go +++ b/routers/web/user/setting/applications.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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/routers/web/user/setting/keys.go b/routers/web/user/setting/keys.go index a8d07ea47a9..89be795599b 100644 --- a/routers/web/user/setting/keys.go +++ b/routers/web/user/setting/keys.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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/routers/web/user/setting/main_test.go b/routers/web/user/setting/main_test.go index d4df464abd8..c3938b32011 100644 --- a/routers/web/user/setting/main_test.go +++ b/routers/web/user/setting/main_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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/routers/web/user/setting/oauth2.go b/routers/web/user/setting/oauth2.go index 0cc05dd040d..93142c21fcf 100644 --- a/routers/web/user/setting/oauth2.go +++ b/routers/web/user/setting/oauth2.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/routers/web/user/setting/oauth2_common.go b/routers/web/user/setting/oauth2_common.go index 49ee5c7c2fd..f6ad1b2b381 100644 --- a/routers/web/user/setting/oauth2_common.go +++ b/routers/web/user/setting/oauth2_common.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/routers/web/user/setting/profile.go b/routers/web/user/setting/profile.go index ba3f5b5080d..e46724f2e74 100644 --- a/routers/web/user/setting/profile.go +++ b/routers/web/user/setting/profile.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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/routers/web/user/setting/security/2fa.go b/routers/web/user/setting/security/2fa.go index 5fd81bae418..0cecb1aa37f 100644 --- a/routers/web/user/setting/security/2fa.go +++ b/routers/web/user/setting/security/2fa.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 security diff --git a/routers/web/user/setting/security/openid.go b/routers/web/user/setting/security/openid.go index a378c8bf64c..08fcb6b6234 100644 --- a/routers/web/user/setting/security/openid.go +++ b/routers/web/user/setting/security/openid.go @@ -1,6 +1,5 @@ // Copyright 2018 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 security diff --git a/routers/web/user/setting/security/security.go b/routers/web/user/setting/security/security.go index 57ea24eeb14..db6faaed6e1 100644 --- a/routers/web/user/setting/security/security.go +++ b/routers/web/user/setting/security/security.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 security diff --git a/routers/web/user/setting/security/webauthn.go b/routers/web/user/setting/security/webauthn.go index bb2d1f733e0..ba05996a1cd 100644 --- a/routers/web/user/setting/security/webauthn.go +++ b/routers/web/user/setting/security/webauthn.go @@ -1,6 +1,5 @@ // Copyright 2018 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 security diff --git a/routers/web/user/stop_watch.go b/routers/web/user/stop_watch.go index f40d850fc13..26c7558c115 100644 --- a/routers/web/user/stop_watch.go +++ b/routers/web/user/stop_watch.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 user diff --git a/routers/web/user/task.go b/routers/web/user/task.go index 7f5ef792ad4..3818682403d 100644 --- a/routers/web/user/task.go +++ b/routers/web/user/task.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 user diff --git a/routers/web/web.go b/routers/web/web.go index fe5007abb76..889a89f0d4a 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -1,6 +1,5 @@ // 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 web diff --git a/routers/web/webfinger.go b/routers/web/webfinger.go index 972182becee..935832aa1f2 100644 --- a/routers/web/webfinger.go +++ b/routers/web/webfinger.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 web diff --git a/services/agit/agit.go b/services/agit/agit.go index 803ff696b0e..e21a1ea29d9 100644 --- a/services/agit/agit.go +++ b/services/agit/agit.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 agit diff --git a/services/asymkey/deploy_key.go b/services/asymkey/deploy_key.go index 4feeadd9525..f5ca54b7238 100644 --- a/services/asymkey/deploy_key.go +++ b/services/asymkey/deploy_key.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 asymkey diff --git a/services/asymkey/main_test.go b/services/asymkey/main_test.go index cb3d0594565..3fa88340fd7 100644 --- a/services/asymkey/main_test.go +++ b/services/asymkey/main_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 asymkey diff --git a/services/asymkey/sign.go b/services/asymkey/sign.go index a9d1e179aed..227e0bbf338 100644 --- a/services/asymkey/sign.go +++ b/services/asymkey/sign.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 asymkey diff --git a/services/asymkey/ssh_key.go b/services/asymkey/ssh_key.go index 06b20001fd2..0809458107b 100644 --- a/services/asymkey/ssh_key.go +++ b/services/asymkey/ssh_key.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 asymkey diff --git a/services/asymkey/ssh_key_test.go b/services/asymkey/ssh_key_test.go index 9bc23a719c6..32c31a43323 100644 --- a/services/asymkey/ssh_key_test.go +++ b/services/asymkey/ssh_key_test.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 asymkey diff --git a/services/attachment/attachment.go b/services/attachment/attachment.go index cc329f568bc..522acd00a32 100644 --- a/services/attachment/attachment.go +++ b/services/attachment/attachment.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 attachment diff --git a/services/attachment/attachment_test.go b/services/attachment/attachment_test.go index 561792db2f2..72d1b2ab3a4 100644 --- a/services/attachment/attachment_test.go +++ b/services/attachment/attachment_test.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 attachment diff --git a/services/auth/auth.go b/services/auth/auth.go index 3a5bb9d27e6..00e277c41ab 100644 --- a/services/auth/auth.go +++ b/services/auth/auth.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 auth diff --git a/services/auth/auth_test.go b/services/auth/auth_test.go index 8a9dee6cefe..f4e3cdf0d32 100644 --- a/services/auth/auth_test.go +++ b/services/auth/auth_test.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 auth diff --git a/services/auth/basic.go b/services/auth/basic.go index 9b32ad29af8..0a82fc5b723 100644 --- a/services/auth/basic.go +++ b/services/auth/basic.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 auth diff --git a/services/auth/group.go b/services/auth/group.go index bbafe64b495..a9112029c54 100644 --- a/services/auth/group.go +++ b/services/auth/group.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 auth diff --git a/services/auth/httpsign.go b/services/auth/httpsign.go index 67053d2b777..dcdc2de83a8 100644 --- a/services/auth/httpsign.go +++ b/services/auth/httpsign.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 auth diff --git a/services/auth/interface.go b/services/auth/interface.go index ecc9ad2ca6b..d238a408560 100644 --- a/services/auth/interface.go +++ b/services/auth/interface.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 auth diff --git a/services/auth/oauth2.go b/services/auth/oauth2.go index 8f038d61041..da8c526382d 100644 --- a/services/auth/oauth2.go +++ b/services/auth/oauth2.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 auth diff --git a/services/auth/reverseproxy.go b/services/auth/reverseproxy.go index 8dec1c8ea77..2d5b6611b58 100644 --- a/services/auth/reverseproxy.go +++ b/services/auth/reverseproxy.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 auth diff --git a/services/auth/session.go b/services/auth/session.go index 1ec94aa0af7..f35fad1a0c2 100644 --- a/services/auth/session.go +++ b/services/auth/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 auth diff --git a/services/auth/signin.go b/services/auth/signin.go index 3ccf68c3a7e..2af15c4133c 100644 --- a/services/auth/signin.go +++ b/services/auth/signin.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 auth diff --git a/services/auth/source.go b/services/auth/source.go index b7108292d57..aae3a781024 100644 --- a/services/auth/source.go +++ b/services/auth/source.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 auth diff --git a/services/auth/source/db/assert_interface_test.go b/services/auth/source/db/assert_interface_test.go index f39aaeb1e41..62387c78f07 100644 --- a/services/auth/source/db/assert_interface_test.go +++ b/services/auth/source/db/assert_interface_test.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 db_test diff --git a/services/auth/source/db/authenticate.go b/services/auth/source/db/authenticate.go index f062f66ae03..ec899844998 100644 --- a/services/auth/source/db/authenticate.go +++ b/services/auth/source/db/authenticate.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 db diff --git a/services/auth/source/db/source.go b/services/auth/source/db/source.go index ecab6d5f357..3f4113c7904 100644 --- a/services/auth/source/db/source.go +++ b/services/auth/source/db/source.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 db diff --git a/services/auth/source/ldap/assert_interface_test.go b/services/auth/source/ldap/assert_interface_test.go index 8fc6903cf37..33347687dc0 100644 --- a/services/auth/source/ldap/assert_interface_test.go +++ b/services/auth/source/ldap/assert_interface_test.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 ldap_test diff --git a/services/auth/source/ldap/security_protocol.go b/services/auth/source/ldap/security_protocol.go index bb0c7770a1d..af83ce191d7 100644 --- a/services/auth/source/ldap/security_protocol.go +++ b/services/auth/source/ldap/security_protocol.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 ldap diff --git a/services/auth/source/ldap/source.go b/services/auth/source/ldap/source.go index ad97e2dd499..dc4cb2c9403 100644 --- a/services/auth/source/ldap/source.go +++ b/services/auth/source/ldap/source.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 ldap diff --git a/services/auth/source/ldap/source_authenticate.go b/services/auth/source/ldap/source_authenticate.go index 785cb8ed317..321cf5540d9 100644 --- a/services/auth/source/ldap/source_authenticate.go +++ b/services/auth/source/ldap/source_authenticate.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 ldap diff --git a/services/auth/source/ldap/source_group_sync.go b/services/auth/source/ldap/source_group_sync.go index e797e015b23..95a60849228 100644 --- a/services/auth/source/ldap/source_group_sync.go +++ b/services/auth/source/ldap/source_group_sync.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 ldap diff --git a/services/auth/source/ldap/source_search.go b/services/auth/source/ldap/source_search.go index 6ea84ec2884..6b6b56db2f0 100644 --- a/services/auth/source/ldap/source_search.go +++ b/services/auth/source/ldap/source_search.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 ldap diff --git a/services/auth/source/ldap/source_sync.go b/services/auth/source/ldap/source_sync.go index eb5ee8463f7..73e8309acaa 100644 --- a/services/auth/source/ldap/source_sync.go +++ b/services/auth/source/ldap/source_sync.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 ldap diff --git a/services/auth/source/ldap/util.go b/services/auth/source/ldap/util.go index f27de37c87e..bd11e2d1193 100644 --- a/services/auth/source/ldap/util.go +++ b/services/auth/source/ldap/util.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 ldap diff --git a/services/auth/source/oauth2/assert_interface_test.go b/services/auth/source/oauth2/assert_interface_test.go index 0ec7361ca83..56fe0e4aa81 100644 --- a/services/auth/source/oauth2/assert_interface_test.go +++ b/services/auth/source/oauth2/assert_interface_test.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 oauth2_test diff --git a/services/auth/source/oauth2/init.go b/services/auth/source/oauth2/init.go index e4eedd34cbd..32fe545c906 100644 --- a/services/auth/source/oauth2/init.go +++ b/services/auth/source/oauth2/init.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 oauth2 diff --git a/services/auth/source/oauth2/jwtsigningkey.go b/services/auth/source/oauth2/jwtsigningkey.go index 352f932746d..93c15743798 100644 --- a/services/auth/source/oauth2/jwtsigningkey.go +++ b/services/auth/source/oauth2/jwtsigningkey.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 oauth2 diff --git a/services/auth/source/oauth2/providers.go b/services/auth/source/oauth2/providers.go index aa3ee3842dd..7ba370855a9 100644 --- a/services/auth/source/oauth2/providers.go +++ b/services/auth/source/oauth2/providers.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 oauth2 diff --git a/services/auth/source/oauth2/providers_base.go b/services/auth/source/oauth2/providers_base.go index b6b6d0bbd25..61654d8eaa9 100644 --- a/services/auth/source/oauth2/providers_base.go +++ b/services/auth/source/oauth2/providers_base.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 oauth2 diff --git a/services/auth/source/oauth2/providers_custom.go b/services/auth/source/oauth2/providers_custom.go index c3ebdf9df0a..b5fe1794418 100644 --- a/services/auth/source/oauth2/providers_custom.go +++ b/services/auth/source/oauth2/providers_custom.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 oauth2 diff --git a/services/auth/source/oauth2/providers_openid.go b/services/auth/source/oauth2/providers_openid.go index 80ee56d4a46..2433cd3c7f1 100644 --- a/services/auth/source/oauth2/providers_openid.go +++ b/services/auth/source/oauth2/providers_openid.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 oauth2 diff --git a/services/auth/source/oauth2/providers_simple.go b/services/auth/source/oauth2/providers_simple.go index 39d3d74f6dd..731c1b59a95 100644 --- a/services/auth/source/oauth2/providers_simple.go +++ b/services/auth/source/oauth2/providers_simple.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 oauth2 diff --git a/services/auth/source/oauth2/source.go b/services/auth/source/oauth2/source.go index 457686ba1fd..0abebc04ecf 100644 --- a/services/auth/source/oauth2/source.go +++ b/services/auth/source/oauth2/source.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 oauth2 diff --git a/services/auth/source/oauth2/source_authenticate.go b/services/auth/source/oauth2/source_authenticate.go index fdc18411a75..e3e2a9e192f 100644 --- a/services/auth/source/oauth2/source_authenticate.go +++ b/services/auth/source/oauth2/source_authenticate.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 oauth2 diff --git a/services/auth/source/oauth2/source_callout.go b/services/auth/source/oauth2/source_callout.go index 7447e5d453a..8d70bee248a 100644 --- a/services/auth/source/oauth2/source_callout.go +++ b/services/auth/source/oauth2/source_callout.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 oauth2 diff --git a/services/auth/source/oauth2/source_name.go b/services/auth/source/oauth2/source_name.go index 0b794ad6509..eee789eff73 100644 --- a/services/auth/source/oauth2/source_name.go +++ b/services/auth/source/oauth2/source_name.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 oauth2 diff --git a/services/auth/source/oauth2/source_register.go b/services/auth/source/oauth2/source_register.go index f61de7e1d69..3527d54b65c 100644 --- a/services/auth/source/oauth2/source_register.go +++ b/services/auth/source/oauth2/source_register.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 oauth2 diff --git a/services/auth/source/oauth2/store.go b/services/auth/source/oauth2/store.go index f00264f997d..394bf994635 100644 --- a/services/auth/source/oauth2/store.go +++ b/services/auth/source/oauth2/store.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 oauth2 diff --git a/services/auth/source/oauth2/token.go b/services/auth/source/oauth2/token.go index 0c69913ff48..c5a064054e5 100644 --- a/services/auth/source/oauth2/token.go +++ b/services/auth/source/oauth2/token.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 oauth2 diff --git a/services/auth/source/oauth2/urlmapping.go b/services/auth/source/oauth2/urlmapping.go index 43c8dde9a5d..d0442d58a8b 100644 --- a/services/auth/source/oauth2/urlmapping.go +++ b/services/auth/source/oauth2/urlmapping.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 oauth2 diff --git a/services/auth/source/pam/assert_interface_test.go b/services/auth/source/pam/assert_interface_test.go index d8754cdf77e..8e7648b8d3c 100644 --- a/services/auth/source/pam/assert_interface_test.go +++ b/services/auth/source/pam/assert_interface_test.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 pam_test diff --git a/services/auth/source/pam/source.go b/services/auth/source/pam/source.go index 957c89dc85e..96b182e1852 100644 --- a/services/auth/source/pam/source.go +++ b/services/auth/source/pam/source.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 pam diff --git a/services/auth/source/pam/source_authenticate.go b/services/auth/source/pam/source_authenticate.go index 16ddc0598e4..48cd905a0a5 100644 --- a/services/auth/source/pam/source_authenticate.go +++ b/services/auth/source/pam/source_authenticate.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 pam diff --git a/services/auth/source/smtp/assert_interface_test.go b/services/auth/source/smtp/assert_interface_test.go index c7fae6431fa..6c9cde66e14 100644 --- a/services/auth/source/smtp/assert_interface_test.go +++ b/services/auth/source/smtp/assert_interface_test.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 smtp_test diff --git a/services/auth/source/smtp/auth.go b/services/auth/source/smtp/auth.go index e8453fde690..6446fcd7060 100644 --- a/services/auth/source/smtp/auth.go +++ b/services/auth/source/smtp/auth.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 smtp diff --git a/services/auth/source/smtp/source.go b/services/auth/source/smtp/source.go index 5e69f912da3..2a648e421e4 100644 --- a/services/auth/source/smtp/source.go +++ b/services/auth/source/smtp/source.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 smtp diff --git a/services/auth/source/smtp/source_authenticate.go b/services/auth/source/smtp/source_authenticate.go index dff24d494ee..00aaa8e084f 100644 --- a/services/auth/source/smtp/source_authenticate.go +++ b/services/auth/source/smtp/source_authenticate.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 smtp diff --git a/services/auth/source/sspi/assert_interface_test.go b/services/auth/source/sspi/assert_interface_test.go index 33442451867..03d836dd6f8 100644 --- a/services/auth/source/sspi/assert_interface_test.go +++ b/services/auth/source/sspi/assert_interface_test.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 sspi_test diff --git a/services/auth/source/sspi/source.go b/services/auth/source/sspi/source.go index e6e63ee1eb8..bdd6ef451cc 100644 --- a/services/auth/source/sspi/source.go +++ b/services/auth/source/sspi/source.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 sspi diff --git a/services/auth/sspi_windows.go b/services/auth/sspi_windows.go index 757d596c4c2..988afb47303 100644 --- a/services/auth/sspi_windows.go +++ b/services/auth/sspi_windows.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 auth diff --git a/services/auth/sync.go b/services/auth/sync.go index b7f3232a304..e42e8a51a75 100644 --- a/services/auth/sync.go +++ b/services/auth/sync.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 auth diff --git a/services/automerge/automerge.go b/services/automerge/automerge.go index 3291ed31f0d..f5bf1f4491a 100644 --- a/services/automerge/automerge.go +++ b/services/automerge/automerge.go @@ -1,6 +1,5 @@ // Copyright 2021 Gitea. 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 automerge diff --git a/services/comments/comments.go b/services/comments/comments.go index 190b8a6725b..21640d90b4e 100644 --- a/services/comments/comments.go +++ b/services/comments/comments.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 comments diff --git a/services/context/user.go b/services/context/user.go index 1c92d24d4a3..9dc84c3ac15 100644 --- a/services/context/user.go +++ b/services/context/user.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 context diff --git a/services/cron/cron.go b/services/cron/cron.go index 8e19e04416d..bda8f12f122 100644 --- a/services/cron/cron.go +++ b/services/cron/cron.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 cron diff --git a/services/cron/setting.go b/services/cron/setting.go index eb13242e941..952a4d17ab6 100644 --- a/services/cron/setting.go +++ b/services/cron/setting.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 cron diff --git a/services/cron/tasks.go b/services/cron/tasks.go index 6ff5964d1ef..1c5493c8983 100644 --- a/services/cron/tasks.go +++ b/services/cron/tasks.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 cron diff --git a/services/cron/tasks_basic.go b/services/cron/tasks_basic.go index ca35f5be57d..acf3896b714 100644 --- a/services/cron/tasks_basic.go +++ b/services/cron/tasks_basic.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 cron diff --git a/services/cron/tasks_extended.go b/services/cron/tasks_extended.go index c730477cbd0..4486be0c2fa 100644 --- a/services/cron/tasks_extended.go +++ b/services/cron/tasks_extended.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 cron diff --git a/services/externalaccount/link.go b/services/externalaccount/link.go index 95ada225421..dcdc57ee489 100644 --- a/services/externalaccount/link.go +++ b/services/externalaccount/link.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 externalaccount diff --git a/services/externalaccount/user.go b/services/externalaccount/user.go index e5cd443770c..87d2e02b485 100644 --- a/services/externalaccount/user.go +++ b/services/externalaccount/user.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 externalaccount diff --git a/services/forms/admin.go b/services/forms/admin.go index 537b9f982cf..a749f863f3d 100644 --- a/services/forms/admin.go +++ b/services/forms/admin.go @@ -1,6 +1,5 @@ // 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 forms diff --git a/services/forms/auth_form.go b/services/forms/auth_form.go index 7e7c7567529..0cede07f951 100644 --- a/services/forms/auth_form.go +++ b/services/forms/auth_form.go @@ -1,6 +1,5 @@ // 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 forms diff --git a/services/forms/org.go b/services/forms/org.go index c7ee9113455..d7535313713 100644 --- a/services/forms/org.go +++ b/services/forms/org.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 forms diff --git a/services/forms/repo_branch_form.go b/services/forms/repo_branch_form.go index 011926092fd..bf1183fc434 100644 --- a/services/forms/repo_branch_form.go +++ b/services/forms/repo_branch_form.go @@ -1,6 +1,5 @@ // 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 forms diff --git a/services/forms/repo_form.go b/services/forms/repo_form.go index 64f47aadd5c..d4fb051d8da 100644 --- a/services/forms/repo_form.go +++ b/services/forms/repo_form.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 forms diff --git a/services/forms/repo_form_test.go b/services/forms/repo_form_test.go index 198437f7ea3..2c5a8e2c0fc 100644 --- a/services/forms/repo_form_test.go +++ b/services/forms/repo_form_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 forms diff --git a/services/forms/repo_tag_form.go b/services/forms/repo_tag_form.go index 337e7fe1ea6..1209d2346f4 100644 --- a/services/forms/repo_tag_form.go +++ b/services/forms/repo_tag_form.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 forms diff --git a/services/forms/user_form.go b/services/forms/user_form.go index da30ae94d6e..cd2c45261b9 100644 --- a/services/forms/user_form.go +++ b/services/forms/user_form.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 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 forms diff --git a/services/forms/user_form_auth_openid.go b/services/forms/user_form_auth_openid.go index 459c938f082..f95eb98405a 100644 --- a/services/forms/user_form_auth_openid.go +++ b/services/forms/user_form_auth_openid.go @@ -1,6 +1,5 @@ // 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 forms diff --git a/services/forms/user_form_hidden_comments.go b/services/forms/user_form_hidden_comments.go index 35c1a6dd2a7..7eb800a0201 100644 --- a/services/forms/user_form_hidden_comments.go +++ b/services/forms/user_form_hidden_comments.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 forms diff --git a/services/forms/user_form_test.go b/services/forms/user_form_test.go index 9f67143d12c..463b39d0bf0 100644 --- a/services/forms/user_form_test.go +++ b/services/forms/user_form_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 forms diff --git a/services/gitdiff/csv.go b/services/gitdiff/csv.go index 642c9937ddb..5781d7e9094 100644 --- a/services/gitdiff/csv.go +++ b/services/gitdiff/csv.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 gitdiff diff --git a/services/gitdiff/csv_test.go b/services/gitdiff/csv_test.go index 2c15b42d915..ac53e2d1efa 100644 --- a/services/gitdiff/csv_test.go +++ b/services/gitdiff/csv_test.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 gitdiff diff --git a/services/gitdiff/gitdiff.go b/services/gitdiff/gitdiff.go index d24c0ac0826..d3ee93ec945 100644 --- a/services/gitdiff/gitdiff.go +++ b/services/gitdiff/gitdiff.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 gitdiff diff --git a/services/gitdiff/gitdiff_test.go b/services/gitdiff/gitdiff_test.go index a7fd677fef0..267f0e4cff6 100644 --- a/services/gitdiff/gitdiff_test.go +++ b/services/gitdiff/gitdiff_test.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 gitdiff diff --git a/services/gitdiff/highlightdiff.go b/services/gitdiff/highlightdiff.go index 727827232d6..f1e2b1d3cb3 100644 --- a/services/gitdiff/highlightdiff.go +++ b/services/gitdiff/highlightdiff.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 gitdiff diff --git a/services/gitdiff/highlightdiff_test.go b/services/gitdiff/highlightdiff_test.go index 205f9a0773a..545a060e204 100644 --- a/services/gitdiff/highlightdiff_test.go +++ b/services/gitdiff/highlightdiff_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 gitdiff diff --git a/services/gitdiff/main_test.go b/services/gitdiff/main_test.go index 0d36a600f64..a5ac274b8fb 100644 --- a/services/gitdiff/main_test.go +++ b/services/gitdiff/main_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 gitdiff diff --git a/services/issue/assignee.go b/services/issue/assignee.go index 291fc316371..2e62f7cf1ce 100644 --- a/services/issue/assignee.go +++ b/services/issue/assignee.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 issue diff --git a/services/issue/assignee_test.go b/services/issue/assignee_test.go index 5c8b822499c..946085cb91e 100644 --- a/services/issue/assignee_test.go +++ b/services/issue/assignee_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 issue diff --git a/services/issue/commit.go b/services/issue/commit.go index c8cfa6cc8a6..f9d59b6bd0f 100644 --- a/services/issue/commit.go +++ b/services/issue/commit.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 issue diff --git a/services/issue/commit_test.go b/services/issue/commit_test.go index 8469bf1ac1b..590e7adce99 100644 --- a/services/issue/commit_test.go +++ b/services/issue/commit_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 issue diff --git a/services/issue/content.go b/services/issue/content.go index 851d986de30..819ac3f20f6 100644 --- a/services/issue/content.go +++ b/services/issue/content.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 issue diff --git a/services/issue/issue.go b/services/issue/issue.go index 9ec43f82646..23b48c28616 100644 --- a/services/issue/issue.go +++ b/services/issue/issue.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 issue diff --git a/services/issue/issue_test.go b/services/issue/issue_test.go index 20f3a3296cc..44168388e63 100644 --- a/services/issue/issue_test.go +++ b/services/issue/issue_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 issue diff --git a/services/issue/label.go b/services/issue/label.go index cd29fcebaeb..c18abbfcda3 100644 --- a/services/issue/label.go +++ b/services/issue/label.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 issue diff --git a/services/issue/label_test.go b/services/issue/label_test.go index 482db95139b..af220601f14 100644 --- a/services/issue/label_test.go +++ b/services/issue/label_test.go @@ -1,6 +1,5 @@ // 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 issue diff --git a/services/issue/main_test.go b/services/issue/main_test.go index 689ae744f68..0f2427122fe 100644 --- a/services/issue/main_test.go +++ b/services/issue/main_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 issue diff --git a/services/issue/milestone.go b/services/issue/milestone.go index 2be4a9e70a2..6019a28a998 100644 --- a/services/issue/milestone.go +++ b/services/issue/milestone.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 issue diff --git a/services/issue/milestone_test.go b/services/issue/milestone_test.go index 087c2567000..069117d1f1c 100644 --- a/services/issue/milestone_test.go +++ b/services/issue/milestone_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 issue diff --git a/services/issue/status.go b/services/issue/status.go index 2d4622324ca..782ce0bd967 100644 --- a/services/issue/status.go +++ b/services/issue/status.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 issue diff --git a/services/lfs/locks.go b/services/lfs/locks.go index 45ba8faacd2..aab4f1a44ed 100644 --- a/services/lfs/locks.go +++ b/services/lfs/locks.go @@ -1,6 +1,5 @@ // 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 lfs diff --git a/services/lfs/server.go b/services/lfs/server.go index 830112fac6e..32bd843ebfa 100644 --- a/services/lfs/server.go +++ b/services/lfs/server.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 lfs diff --git a/services/mailer/mail.go b/services/mailer/mail.go index a9e36e10f89..674011bede2 100644 --- a/services/mailer/mail.go +++ b/services/mailer/mail.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // 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 mailer diff --git a/services/mailer/mail_comment.go b/services/mailer/mail_comment.go index af07821c29f..1812441d5a2 100644 --- a/services/mailer/mail_comment.go +++ b/services/mailer/mail_comment.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 mailer diff --git a/services/mailer/mail_issue.go b/services/mailer/mail_issue.go index e7ff1d59d6c..be5279aac5c 100644 --- a/services/mailer/mail_issue.go +++ b/services/mailer/mail_issue.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 mailer diff --git a/services/mailer/mail_release.go b/services/mailer/mail_release.go index b15fc05ce92..96227270c87 100644 --- a/services/mailer/mail_release.go +++ b/services/mailer/mail_release.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 mailer diff --git a/services/mailer/mail_repo.go b/services/mailer/mail_repo.go index d3f5120929d..5fa13f50440 100644 --- a/services/mailer/mail_repo.go +++ b/services/mailer/mail_repo.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 mailer diff --git a/services/mailer/mail_team_invite.go b/services/mailer/mail_team_invite.go index c2b2a00e760..f01d6f47dd1 100644 --- a/services/mailer/mail_team_invite.go +++ b/services/mailer/mail_team_invite.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 mailer diff --git a/services/mailer/mail_test.go b/services/mailer/mail_test.go index acb1f699611..6ed4fed9bda 100644 --- a/services/mailer/mail_test.go +++ b/services/mailer/mail_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 mailer diff --git a/services/mailer/mailer.go b/services/mailer/mailer.go index 2663b6b2bab..6149644600e 100644 --- a/services/mailer/mailer.go +++ b/services/mailer/mailer.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 mailer diff --git a/services/mailer/mailer_test.go b/services/mailer/mailer_test.go index b94fce8443a..79c5231218d 100644 --- a/services/mailer/mailer_test.go +++ b/services/mailer/mailer_test.go @@ -1,6 +1,5 @@ // Copyright 2021 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 mailer diff --git a/services/mailer/main_test.go b/services/mailer/main_test.go index 0bd154113f0..16a6a265456 100644 --- a/services/mailer/main_test.go +++ b/services/mailer/main_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 mailer diff --git a/services/markup/main_test.go b/services/markup/main_test.go index 8efd08e69d6..ce892435a1a 100644 --- a/services/markup/main_test.go +++ b/services/markup/main_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 markup diff --git a/services/markup/processorhelper.go b/services/markup/processorhelper.go index 5042884e5ef..2897f203a90 100644 --- a/services/markup/processorhelper.go +++ b/services/markup/processorhelper.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 markup diff --git a/services/markup/processorhelper_test.go b/services/markup/processorhelper_test.go index f7eab3d958b..6c9c1c27e72 100644 --- a/services/markup/processorhelper_test.go +++ b/services/markup/processorhelper_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 markup diff --git a/services/migrations/codebase.go b/services/migrations/codebase.go index edeb2767734..c02c8e13a2e 100644 --- a/services/migrations/codebase.go +++ b/services/migrations/codebase.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 migrations diff --git a/services/migrations/codebase_test.go b/services/migrations/codebase_test.go index 03b5946d715..68721e06410 100644 --- a/services/migrations/codebase_test.go +++ b/services/migrations/codebase_test.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 migrations diff --git a/services/migrations/common.go b/services/migrations/common.go index 052975c9e73..34d7c93ddf0 100644 --- a/services/migrations/common.go +++ b/services/migrations/common.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 migrations diff --git a/services/migrations/dump.go b/services/migrations/dump.go index 8103e2faacd..cc8518d4a25 100644 --- a/services/migrations/dump.go +++ b/services/migrations/dump.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 migrations diff --git a/services/migrations/error.go b/services/migrations/error.go index d26fa8112cb..46d303ac8ee 100644 --- a/services/migrations/error.go +++ b/services/migrations/error.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migrations diff --git a/services/migrations/git.go b/services/migrations/git.go index 3198f934cae..22ffd5e7658 100644 --- a/services/migrations/git.go +++ b/services/migrations/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 migrations diff --git a/services/migrations/gitbucket.go b/services/migrations/gitbucket.go index 21d8c672ddf..65c138ed04a 100644 --- a/services/migrations/gitbucket.go +++ b/services/migrations/gitbucket.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 migrations diff --git a/services/migrations/gitea_downloader.go b/services/migrations/gitea_downloader.go index 9775af1cdc3..470090b5010 100644 --- a/services/migrations/gitea_downloader.go +++ b/services/migrations/gitea_downloader.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 migrations diff --git a/services/migrations/gitea_downloader_test.go b/services/migrations/gitea_downloader_test.go index 601b0a7c793..c37c70947e3 100644 --- a/services/migrations/gitea_downloader_test.go +++ b/services/migrations/gitea_downloader_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 migrations diff --git a/services/migrations/gitea_uploader.go b/services/migrations/gitea_uploader.go index 8a7533b3d17..ea9b1a71424 100644 --- a/services/migrations/gitea_uploader.go +++ b/services/migrations/gitea_uploader.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migrations diff --git a/services/migrations/gitea_uploader_test.go b/services/migrations/gitea_uploader_test.go index 362492631fa..6a942b9b576 100644 --- a/services/migrations/gitea_uploader_test.go +++ b/services/migrations/gitea_uploader_test.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migrations diff --git a/services/migrations/github.go b/services/migrations/github.go index e5683fb5304..48dd90323d5 100644 --- a/services/migrations/github.go +++ b/services/migrations/github.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migrations diff --git a/services/migrations/github_test.go b/services/migrations/github_test.go index 7bbbbb61688..2b89e6dc0fd 100644 --- a/services/migrations/github_test.go +++ b/services/migrations/github_test.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migrations diff --git a/services/migrations/gitlab.go b/services/migrations/gitlab.go index b8bb0c77b54..44e1d707134 100644 --- a/services/migrations/gitlab.go +++ b/services/migrations/gitlab.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 migrations diff --git a/services/migrations/gitlab_test.go b/services/migrations/gitlab_test.go index 829964b384e..1d8c5989bb5 100644 --- a/services/migrations/gitlab_test.go +++ b/services/migrations/gitlab_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 migrations diff --git a/services/migrations/gogs.go b/services/migrations/gogs.go index 14bc734c4e0..d01934ac6d5 100644 --- a/services/migrations/gogs.go +++ b/services/migrations/gogs.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 migrations diff --git a/services/migrations/gogs_test.go b/services/migrations/gogs_test.go index 501161b610d..610af183de2 100644 --- a/services/migrations/gogs_test.go +++ b/services/migrations/gogs_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 migrations diff --git a/services/migrations/http_client.go b/services/migrations/http_client.go index 0d683693a1b..9e3caec191f 100644 --- a/services/migrations/http_client.go +++ b/services/migrations/http_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 migrations diff --git a/services/migrations/main_test.go b/services/migrations/main_test.go index ad9bc9c731e..30875f6e5ba 100644 --- a/services/migrations/main_test.go +++ b/services/migrations/main_test.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migrations diff --git a/services/migrations/migrate.go b/services/migrations/migrate.go index dfb21b884bb..a3b9d1cfa8f 100644 --- a/services/migrations/migrate.go +++ b/services/migrations/migrate.go @@ -1,7 +1,6 @@ // Copyright 2019 The Gitea Authors. All rights reserved. // Copyright 2018 Jonas Franz. 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 migrations diff --git a/services/migrations/migrate_test.go b/services/migrations/migrate_test.go index 3fc4034777e..03efa6185b2 100644 --- a/services/migrations/migrate_test.go +++ b/services/migrations/migrate_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 migrations diff --git a/services/migrations/onedev.go b/services/migrations/onedev.go index 8cc826c3b4f..d4b1b73d37c 100644 --- a/services/migrations/onedev.go +++ b/services/migrations/onedev.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 migrations diff --git a/services/migrations/onedev_test.go b/services/migrations/onedev_test.go index 6a17eb334ba..48412fec64a 100644 --- a/services/migrations/onedev_test.go +++ b/services/migrations/onedev_test.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 migrations diff --git a/services/migrations/restore.go b/services/migrations/restore.go index 10fe8c4ee8c..fd337b22c7a 100644 --- a/services/migrations/restore.go +++ b/services/migrations/restore.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 migrations diff --git a/services/migrations/update.go b/services/migrations/update.go index cdec73cd1bb..48b61885e8d 100644 --- a/services/migrations/update.go +++ b/services/migrations/update.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 migrations diff --git a/services/mirror/mirror.go b/services/mirror/mirror.go index 3b4a8e5f8a6..9e569a70e3e 100644 --- a/services/mirror/mirror.go +++ b/services/mirror/mirror.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 mirror diff --git a/services/mirror/mirror_pull.go b/services/mirror/mirror_pull.go index 4a77569d869..98e8d122a5d 100644 --- a/services/mirror/mirror_pull.go +++ b/services/mirror/mirror_pull.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 mirror diff --git a/services/mirror/mirror_push.go b/services/mirror/mirror_push.go index 60611130ba8..c0c68a3f541 100644 --- a/services/mirror/mirror_push.go +++ b/services/mirror/mirror_push.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 mirror diff --git a/services/org/org.go b/services/org/org.go index d993f82bbf6..e45fb305deb 100644 --- a/services/org/org.go +++ b/services/org/org.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 org diff --git a/services/org/org_test.go b/services/org/org_test.go index c4e6088a713..cc22595c6f1 100644 --- a/services/org/org_test.go +++ b/services/org/org_test.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 org diff --git a/services/org/repo.go b/services/org/repo.go index 88520c819ff..179249c7a8d 100644 --- a/services/org/repo.go +++ b/services/org/repo.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 org diff --git a/services/org/repo_test.go b/services/org/repo_test.go index 21158bfa210..40b0d17077b 100644 --- a/services/org/repo_test.go +++ b/services/org/repo_test.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 org diff --git a/services/org/team_invite.go b/services/org/team_invite.go index 1108a46da5b..3f28044dbf6 100644 --- a/services/org/team_invite.go +++ b/services/org/team_invite.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 org diff --git a/services/packages/auth.go b/services/packages/auth.go index 50212fccfd3..9b84ac79a6c 100644 --- a/services/packages/auth.go +++ b/services/packages/auth.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 packages diff --git a/services/packages/container/blob_uploader.go b/services/packages/container/blob_uploader.go index 762f9e52598..ba92b050734 100644 --- a/services/packages/container/blob_uploader.go +++ b/services/packages/container/blob_uploader.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 container diff --git a/services/packages/container/cleanup.go b/services/packages/container/cleanup.go index e3d414d45c4..d6d4d152c83 100644 --- a/services/packages/container/cleanup.go +++ b/services/packages/container/cleanup.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 container diff --git a/services/packages/packages.go b/services/packages/packages.go index 7343ffc530d..f819949c969 100644 --- a/services/packages/packages.go +++ b/services/packages/packages.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 packages diff --git a/services/pull/check.go b/services/pull/check.go index faf3459f16f..af8f2df0b6a 100644 --- a/services/pull/check.go +++ b/services/pull/check.go @@ -1,7 +1,6 @@ // 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 pull diff --git a/services/pull/check_test.go b/services/pull/check_test.go index b4de02b5e23..590065250f3 100644 --- a/services/pull/check_test.go +++ b/services/pull/check_test.go @@ -1,7 +1,6 @@ // 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 pull diff --git a/services/pull/commit_status.go b/services/pull/commit_status.go index 10692221a41..7e4db311d9a 100644 --- a/services/pull/commit_status.go +++ b/services/pull/commit_status.go @@ -1,7 +1,6 @@ // 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 pull diff --git a/services/pull/edits.go b/services/pull/edits.go index 84f7c80da7b..c7550dcb073 100644 --- a/services/pull/edits.go +++ b/services/pull/edits.go @@ -1,7 +1,6 @@ // 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 pull diff --git a/services/pull/lfs.go b/services/pull/lfs.go index 8cca0a91b79..4b9826bedd5 100644 --- a/services/pull/lfs.go +++ b/services/pull/lfs.go @@ -1,7 +1,6 @@ // 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 pull diff --git a/services/pull/main_test.go b/services/pull/main_test.go index 5471686e729..2014b192754 100644 --- a/services/pull/main_test.go +++ b/services/pull/main_test.go @@ -1,7 +1,6 @@ // 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 pull diff --git a/services/pull/merge.go b/services/pull/merge.go index b29c9bc8599..afed98989b5 100644 --- a/services/pull/merge.go +++ b/services/pull/merge.go @@ -1,7 +1,6 @@ // 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 pull diff --git a/services/pull/patch.go b/services/pull/patch.go index 1046095ff11..925f310a2c0 100644 --- a/services/pull/patch.go +++ b/services/pull/patch.go @@ -1,7 +1,6 @@ // 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 pull diff --git a/services/pull/patch_unmerged.go b/services/pull/patch_unmerged.go index 3f1bb7d5234..c60c48d9232 100644 --- a/services/pull/patch_unmerged.go +++ b/services/pull/patch_unmerged.go @@ -1,7 +1,6 @@ // 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 pull diff --git a/services/pull/pull.go b/services/pull/pull.go index e0dcefe1410..ddb407b0538 100644 --- a/services/pull/pull.go +++ b/services/pull/pull.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 pull diff --git a/services/pull/pull_test.go b/services/pull/pull_test.go index 22eefd1624a..cbbdccce9c0 100644 --- a/services/pull/pull_test.go +++ b/services/pull/pull_test.go @@ -1,7 +1,6 @@ // 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 pull diff --git a/services/pull/review.go b/services/pull/review.go index 2555e1b3b35..1f2bc77e2cd 100644 --- a/services/pull/review.go +++ b/services/pull/review.go @@ -1,7 +1,6 @@ // 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 pull diff --git a/services/pull/temp_repo.go b/services/pull/temp_repo.go index 9c04aa1c92f..842719467f3 100644 --- a/services/pull/temp_repo.go +++ b/services/pull/temp_repo.go @@ -1,7 +1,6 @@ // 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 pull diff --git a/services/pull/update.go b/services/pull/update.go index 36e66bb7a9d..6ff554e612c 100644 --- a/services/pull/update.go +++ b/services/pull/update.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 pull diff --git a/services/release/release.go b/services/release/release.go index eb989381f0f..07e329cf43c 100644 --- a/services/release/release.go +++ b/services/release/release.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 release diff --git a/services/release/release_test.go b/services/release/release_test.go index 1ade9bed37a..9b8aaa36498 100644 --- a/services/release/release_test.go +++ b/services/release/release_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 release diff --git a/services/repository/adopt.go b/services/repository/adopt.go index 3895c54c7b9..fb7adcfd294 100644 --- a/services/repository/adopt.go +++ b/services/repository/adopt.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 repository diff --git a/services/repository/adopt_test.go b/services/repository/adopt_test.go index b450005f344..be8897693eb 100644 --- a/services/repository/adopt_test.go +++ b/services/repository/adopt_test.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 repository diff --git a/services/repository/archiver/archiver.go b/services/repository/archiver/archiver.go index f1c2693aeb1..94fff6ffa26 100644 --- a/services/repository/archiver/archiver.go +++ b/services/repository/archiver/archiver.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 archiver diff --git a/services/repository/archiver/archiver_test.go b/services/repository/archiver/archiver_test.go index 24437ce76c2..3cd6e813512 100644 --- a/services/repository/archiver/archiver_test.go +++ b/services/repository/archiver/archiver_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 archiver diff --git a/services/repository/avatar.go b/services/repository/avatar.go index e4c8da3ba2d..a829a1000ae 100644 --- a/services/repository/avatar.go +++ b/services/repository/avatar.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 repository diff --git a/services/repository/avatar_test.go b/services/repository/avatar_test.go index e5d9ac9d53e..3875302696d 100644 --- a/services/repository/avatar_test.go +++ b/services/repository/avatar_test.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 repository diff --git a/services/repository/branch.go b/services/repository/branch.go index e1f26b89afc..e5ffbbeb746 100644 --- a/services/repository/branch.go +++ b/services/repository/branch.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 repository diff --git a/services/repository/cache.go b/services/repository/cache.go index 855fe7f4a04..6fd4fa7250f 100644 --- a/services/repository/cache.go +++ b/services/repository/cache.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 repository diff --git a/services/repository/check.go b/services/repository/check.go index 5725f540b0c..6e29dc93d1e 100644 --- a/services/repository/check.go +++ b/services/repository/check.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 repository diff --git a/services/repository/files/cherry_pick.go b/services/repository/files/cherry_pick.go index a30d4f6025e..6bc67e26369 100644 --- a/services/repository/files/cherry_pick.go +++ b/services/repository/files/cherry_pick.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 files diff --git a/services/repository/files/commit.go b/services/repository/files/commit.go index bc5a4c8ed3a..c49b03d6085 100644 --- a/services/repository/files/commit.go +++ b/services/repository/files/commit.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 files diff --git a/services/repository/files/content.go b/services/repository/files/content.go index 34c8aeec25e..a311625f315 100644 --- a/services/repository/files/content.go +++ b/services/repository/files/content.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 files diff --git a/services/repository/files/content_test.go b/services/repository/files/content_test.go index 24fcd6c4c5d..a43b71cf31e 100644 --- a/services/repository/files/content_test.go +++ b/services/repository/files/content_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 files diff --git a/services/repository/files/delete.go b/services/repository/files/delete.go index f098052ad8a..faa60bb3bae 100644 --- a/services/repository/files/delete.go +++ b/services/repository/files/delete.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 files diff --git a/services/repository/files/diff.go b/services/repository/files/diff.go index dbe1bef52b7..373249b1145 100644 --- a/services/repository/files/diff.go +++ b/services/repository/files/diff.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 files diff --git a/services/repository/files/diff_test.go b/services/repository/files/diff_test.go index 310308ca88c..621816e97d4 100644 --- a/services/repository/files/diff_test.go +++ b/services/repository/files/diff_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 files diff --git a/services/repository/files/file.go b/services/repository/files/file.go index c6c626c9ced..ddd64a5399d 100644 --- a/services/repository/files/file.go +++ b/services/repository/files/file.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 files diff --git a/services/repository/files/file_test.go b/services/repository/files/file_test.go index e158c63de24..e1c7d5d7fb4 100644 --- a/services/repository/files/file_test.go +++ b/services/repository/files/file_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 files diff --git a/services/repository/files/patch.go b/services/repository/files/patch.go index 2be01f25be5..b5eef8c0913 100644 --- a/services/repository/files/patch.go +++ b/services/repository/files/patch.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 files diff --git a/services/repository/files/temp_repo.go b/services/repository/files/temp_repo.go index b96d9e7b3df..1f3375cdcc8 100644 --- a/services/repository/files/temp_repo.go +++ b/services/repository/files/temp_repo.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 files diff --git a/services/repository/files/tree.go b/services/repository/files/tree.go index 59e56909770..1aa6d0df36d 100644 --- a/services/repository/files/tree.go +++ b/services/repository/files/tree.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 files diff --git a/services/repository/files/tree_test.go b/services/repository/files/tree_test.go index e900480d354..a500dbdb224 100644 --- a/services/repository/files/tree_test.go +++ b/services/repository/files/tree_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 files diff --git a/services/repository/files/update.go b/services/repository/files/update.go index 1721b00b01e..f7a41ef24c9 100644 --- a/services/repository/files/update.go +++ b/services/repository/files/update.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 files diff --git a/services/repository/files/upload.go b/services/repository/files/upload.go index 37287809910..0ada3885b1e 100644 --- a/services/repository/files/upload.go +++ b/services/repository/files/upload.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 files diff --git a/services/repository/fork.go b/services/repository/fork.go index a9a2b33ed84..cf9b3992cd0 100644 --- a/services/repository/fork.go +++ b/services/repository/fork.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 repository diff --git a/services/repository/fork_test.go b/services/repository/fork_test.go index d4ba507351f..c809ed4529c 100644 --- a/services/repository/fork_test.go +++ b/services/repository/fork_test.go @@ -1,6 +1,5 @@ // 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 repository diff --git a/services/repository/hooks.go b/services/repository/hooks.go index d29384e0124..a8b6f7a6222 100644 --- a/services/repository/hooks.go +++ b/services/repository/hooks.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 repository diff --git a/services/repository/main_test.go b/services/repository/main_test.go index 42134fa7ada..007790f2a96 100644 --- a/services/repository/main_test.go +++ b/services/repository/main_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 repository diff --git a/services/repository/push.go b/services/repository/push.go index e2db18e1f75..bce01cb76a5 100644 --- a/services/repository/push.go +++ b/services/repository/push.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 repository diff --git a/services/repository/repository.go b/services/repository/repository.go index c369b98aae0..859c32cf8fd 100644 --- a/services/repository/repository.go +++ b/services/repository/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 repository diff --git a/services/repository/repository_test.go b/services/repository/repository_test.go index e0ffcac3cc7..5f5283bddb6 100644 --- a/services/repository/repository_test.go +++ b/services/repository/repository_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 repository diff --git a/services/repository/review.go b/services/repository/review.go index 9e8012978ea..d30d61ee066 100644 --- a/services/repository/review.go +++ b/services/repository/review.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 repository diff --git a/services/repository/review_test.go b/services/repository/review_test.go index badacf39a6f..2bf4cdbf5cd 100644 --- a/services/repository/review_test.go +++ b/services/repository/review_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 repository diff --git a/services/repository/template.go b/services/repository/template.go index 625bc305de7..13e07498693 100644 --- a/services/repository/template.go +++ b/services/repository/template.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 repository diff --git a/services/repository/transfer.go b/services/repository/transfer.go index 2778f2e7442..af28f5a4a54 100644 --- a/services/repository/transfer.go +++ b/services/repository/transfer.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 repository diff --git a/services/repository/transfer_test.go b/services/repository/transfer_test.go index bf2a0ce0a21..2bbc5abbd25 100644 --- a/services/repository/transfer_test.go +++ b/services/repository/transfer_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 repository diff --git a/services/task/migrate.go b/services/task/migrate.go index 307c60a09a3..03d083e5966 100644 --- a/services/task/migrate.go +++ b/services/task/migrate.go @@ -1,6 +1,5 @@ // Copyright 2019 Gitea. 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 task diff --git a/services/task/task.go b/services/task/task.go index 138dc88a045..41bc07f2f6e 100644 --- a/services/task/task.go +++ b/services/task/task.go @@ -1,6 +1,5 @@ // Copyright 2019 Gitea. 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 task diff --git a/services/user/user.go b/services/user/user.go index 9976bc7bd34..65db732bf91 100644 --- a/services/user/user.go +++ b/services/user/user.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 user diff --git a/services/user/user_test.go b/services/user/user_test.go index c07244e7e1e..5e052a9df26 100644 --- a/services/user/user_test.go +++ b/services/user/user_test.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 user diff --git a/services/webhook/deliver.go b/services/webhook/deliver.go index 07fdf18c834..eed711c5800 100644 --- a/services/webhook/deliver.go +++ b/services/webhook/deliver.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 webhook diff --git a/services/webhook/deliver_test.go b/services/webhook/deliver_test.go index 498cf7d159f..e7a042f4d2d 100644 --- a/services/webhook/deliver_test.go +++ b/services/webhook/deliver_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 webhook diff --git a/services/webhook/dingtalk.go b/services/webhook/dingtalk.go index e047e994c2f..7cb1fb75fc3 100644 --- a/services/webhook/dingtalk.go +++ b/services/webhook/dingtalk.go @@ -1,6 +1,5 @@ // 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 webhook diff --git a/services/webhook/dingtalk_test.go b/services/webhook/dingtalk_test.go index fc15380f4da..89b5f9d219d 100644 --- a/services/webhook/dingtalk_test.go +++ b/services/webhook/dingtalk_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 webhook diff --git a/services/webhook/discord.go b/services/webhook/discord.go index 22d75db8930..c9fdc953204 100644 --- a/services/webhook/discord.go +++ b/services/webhook/discord.go @@ -1,6 +1,5 @@ // 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 webhook diff --git a/services/webhook/discord_test.go b/services/webhook/discord_test.go index 8e4e60a7ff0..df3cdc15bdd 100644 --- a/services/webhook/discord_test.go +++ b/services/webhook/discord_test.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 webhook diff --git a/services/webhook/feishu.go b/services/webhook/feishu.go index 782684d0ffb..58b6fff3318 100644 --- a/services/webhook/feishu.go +++ b/services/webhook/feishu.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 webhook diff --git a/services/webhook/feishu_test.go b/services/webhook/feishu_test.go index 85cfb759fe1..df44fd1f724 100644 --- a/services/webhook/feishu_test.go +++ b/services/webhook/feishu_test.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 webhook diff --git a/services/webhook/general.go b/services/webhook/general.go index f6ef6739235..bec752cffe5 100644 --- a/services/webhook/general.go +++ b/services/webhook/general.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 webhook diff --git a/services/webhook/general_test.go b/services/webhook/general_test.go index da3123d3aba..ba58ca4f90d 100644 --- a/services/webhook/general_test.go +++ b/services/webhook/general_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 webhook diff --git a/services/webhook/main_test.go b/services/webhook/main_test.go index 5ddb6cf1f33..6cf9410735c 100644 --- a/services/webhook/main_test.go +++ b/services/webhook/main_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 webhook diff --git a/services/webhook/matrix.go b/services/webhook/matrix.go index 7ff8b1e6383..bd3efd46b27 100644 --- a/services/webhook/matrix.go +++ b/services/webhook/matrix.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 webhook diff --git a/services/webhook/matrix_test.go b/services/webhook/matrix_test.go index bbcdef35677..754234eccf9 100644 --- a/services/webhook/matrix_test.go +++ b/services/webhook/matrix_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 webhook diff --git a/services/webhook/msteams.go b/services/webhook/msteams.go index bf9e95edc57..ef8366f8d5c 100644 --- a/services/webhook/msteams.go +++ b/services/webhook/msteams.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 webhook diff --git a/services/webhook/msteams_test.go b/services/webhook/msteams_test.go index 8292beed7f8..8daf99f8670 100644 --- a/services/webhook/msteams_test.go +++ b/services/webhook/msteams_test.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 webhook diff --git a/services/webhook/packagist.go b/services/webhook/packagist.go index 5badc7462ac..815e1a93e9f 100644 --- a/services/webhook/packagist.go +++ b/services/webhook/packagist.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 webhook diff --git a/services/webhook/packagist_test.go b/services/webhook/packagist_test.go index 4a24b76523c..4941ae3f01c 100644 --- a/services/webhook/packagist_test.go +++ b/services/webhook/packagist_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 webhook diff --git a/services/webhook/payloader.go b/services/webhook/payloader.go index a9d01c98915..7b04f1dd36a 100644 --- a/services/webhook/payloader.go +++ b/services/webhook/payloader.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 webhook diff --git a/services/webhook/slack.go b/services/webhook/slack.go index f5c69d74b67..1814361a1cd 100644 --- a/services/webhook/slack.go +++ b/services/webhook/slack.go @@ -1,6 +1,5 @@ // 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 webhook diff --git a/services/webhook/slack_test.go b/services/webhook/slack_test.go index 3af38b5158c..db97b351c57 100644 --- a/services/webhook/slack_test.go +++ b/services/webhook/slack_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 webhook diff --git a/services/webhook/telegram.go b/services/webhook/telegram.go index 7ca5f61062c..8bc68490e50 100644 --- a/services/webhook/telegram.go +++ b/services/webhook/telegram.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 webhook diff --git a/services/webhook/telegram_test.go b/services/webhook/telegram_test.go index 5ca78d05081..b092f7e7320 100644 --- a/services/webhook/telegram_test.go +++ b/services/webhook/telegram_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 webhook diff --git a/services/webhook/webhook.go b/services/webhook/webhook.go index 5c9139b41f1..21173e7cd82 100644 --- a/services/webhook/webhook.go +++ b/services/webhook/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 webhook diff --git a/services/webhook/webhook_test.go b/services/webhook/webhook_test.go index 8d44aa504ae..a1f197d8093 100644 --- a/services/webhook/webhook_test.go +++ b/services/webhook/webhook_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 webhook diff --git a/services/webhook/wechatwork.go b/services/webhook/wechatwork.go index acaa12253bc..a77d871dd7f 100644 --- a/services/webhook/wechatwork.go +++ b/services/webhook/wechatwork.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 webhook diff --git a/services/wiki/wiki.go b/services/wiki/wiki.go index f6986cff860..e483416fda7 100644 --- a/services/wiki/wiki.go +++ b/services/wiki/wiki.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // 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 wiki diff --git a/services/wiki/wiki_test.go b/services/wiki/wiki_test.go index 774ef6c2834..268d8848c50 100644 --- a/services/wiki/wiki_test.go +++ b/services/wiki/wiki_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 wiki diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index 6028ff74fc3..697a828e019 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_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 // This is primarily coped from /tests/integration/integration_test.go // TODO: Move common functions to shared file diff --git a/tests/e2e/utils_e2e_test.go b/tests/e2e/utils_e2e_test.go index f8f3e94cda1..e6e35c47466 100644 --- a/tests/e2e/utils_e2e_test.go +++ b/tests/e2e/utils_e2e_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 e2e diff --git a/tests/integration/admin_user_test.go b/tests/integration/admin_user_test.go index ffe3f670fe8..dd6b9ccbbeb 100644 --- a/tests/integration/admin_user_test.go +++ b/tests/integration/admin_user_test.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 integration diff --git a/tests/integration/api_activitypub_person_test.go b/tests/integration/api_activitypub_person_test.go index e7ef79d156d..dadc417aa44 100644 --- a/tests/integration/api_activitypub_person_test.go +++ b/tests/integration/api_activitypub_person_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 integration diff --git a/tests/integration/api_admin_org_test.go b/tests/integration/api_admin_org_test.go index a8770db4ca4..97101633304 100644 --- a/tests/integration/api_admin_org_test.go +++ b/tests/integration/api_admin_org_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 integration diff --git a/tests/integration/api_admin_test.go b/tests/integration/api_admin_test.go index d6bc6016ff7..2a487fb83ad 100644 --- a/tests/integration/api_admin_test.go +++ b/tests/integration/api_admin_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/api_branch_test.go b/tests/integration/api_branch_test.go index bdfdd3c7520..1fa757d9d86 100644 --- a/tests/integration/api_branch_test.go +++ b/tests/integration/api_branch_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/api_comment_test.go b/tests/integration/api_comment_test.go index 9cac32b9b9d..ef21d7f9018 100644 --- a/tests/integration/api_comment_test.go +++ b/tests/integration/api_comment_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/api_feed_user_test.go b/tests/integration/api_feed_user_test.go index c137dd12091..c44f9a19511 100644 --- a/tests/integration/api_feed_user_test.go +++ b/tests/integration/api_feed_user_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 integration diff --git a/tests/integration/api_fork_test.go b/tests/integration/api_fork_test.go index 131dcf70bb9..7c231415a31 100644 --- a/tests/integration/api_fork_test.go +++ b/tests/integration/api_fork_test.go @@ -1,6 +1,5 @@ // Copyright 2017 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 integration diff --git a/tests/integration/api_gpg_keys_test.go b/tests/integration/api_gpg_keys_test.go index 0ad876c9b97..9e1641d3b91 100644 --- a/tests/integration/api_gpg_keys_test.go +++ b/tests/integration/api_gpg_keys_test.go @@ -1,6 +1,5 @@ // Copyright 2017 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 integration diff --git a/tests/integration/api_helper_for_declarative_test.go b/tests/integration/api_helper_for_declarative_test.go index 5a798f79f0f..dbfe502ec1d 100644 --- a/tests/integration/api_helper_for_declarative_test.go +++ b/tests/integration/api_helper_for_declarative_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 integration diff --git a/tests/integration/api_httpsig_test.go b/tests/integration/api_httpsig_test.go index 80b3c586b43..d5db5952c41 100644 --- a/tests/integration/api_httpsig_test.go +++ b/tests/integration/api_httpsig_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 integration diff --git a/tests/integration/api_issue_label_test.go b/tests/integration/api_issue_label_test.go index 586c50a55f1..8a324a6684e 100644 --- a/tests/integration/api_issue_label_test.go +++ b/tests/integration/api_issue_label_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/api_issue_milestone_test.go b/tests/integration/api_issue_milestone_test.go index e22a091bb8d..7adaa0a1ee6 100644 --- a/tests/integration/api_issue_milestone_test.go +++ b/tests/integration/api_issue_milestone_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 integration diff --git a/tests/integration/api_issue_reaction_test.go b/tests/integration/api_issue_reaction_test.go index 9afc7475e27..85a39fffea3 100644 --- a/tests/integration/api_issue_reaction_test.go +++ b/tests/integration/api_issue_reaction_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 integration diff --git a/tests/integration/api_issue_stopwatch_test.go b/tests/integration/api_issue_stopwatch_test.go index c2ad9c45e82..4539d0ff62a 100644 --- a/tests/integration/api_issue_stopwatch_test.go +++ b/tests/integration/api_issue_stopwatch_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 integration diff --git a/tests/integration/api_issue_subscription_test.go b/tests/integration/api_issue_subscription_test.go index f4588fbbc42..68b29f36417 100644 --- a/tests/integration/api_issue_subscription_test.go +++ b/tests/integration/api_issue_subscription_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 integration diff --git a/tests/integration/api_issue_test.go b/tests/integration/api_issue_test.go index 3e651c620b0..095ebb17730 100644 --- a/tests/integration/api_issue_test.go +++ b/tests/integration/api_issue_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/api_issue_tracked_time_test.go b/tests/integration/api_issue_tracked_time_test.go index 6e2c77030cb..aacf1e0fd02 100644 --- a/tests/integration/api_issue_tracked_time_test.go +++ b/tests/integration/api_issue_tracked_time_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 integration diff --git a/tests/integration/api_keys_test.go b/tests/integration/api_keys_test.go index 1cb0b20ffe1..e70fa4a4eab 100644 --- a/tests/integration/api_keys_test.go +++ b/tests/integration/api_keys_test.go @@ -1,6 +1,5 @@ // Copyright 2017 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 integration diff --git a/tests/integration/api_nodeinfo_test.go b/tests/integration/api_nodeinfo_test.go index 2446acec942..a7313f3b2cb 100644 --- a/tests/integration/api_nodeinfo_test.go +++ b/tests/integration/api_nodeinfo_test.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 integration diff --git a/tests/integration/api_notification_test.go b/tests/integration/api_notification_test.go index f1438022287..2ee4778ab5e 100644 --- a/tests/integration/api_notification_test.go +++ b/tests/integration/api_notification_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 integration diff --git a/tests/integration/api_oauth2_apps_test.go b/tests/integration/api_oauth2_apps_test.go index 6352449d6ac..59be697a147 100644 --- a/tests/integration/api_oauth2_apps_test.go +++ b/tests/integration/api_oauth2_apps_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.package models +// SPDX-License-Identifier: MIT package integration diff --git a/tests/integration/api_org_test.go b/tests/integration/api_org_test.go index 16e53d6b815..5cd138eee2f 100644 --- a/tests/integration/api_org_test.go +++ b/tests/integration/api_org_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 integration diff --git a/tests/integration/api_packages_composer_test.go b/tests/integration/api_packages_composer_test.go index 90285f78d3a..87647cc4753 100644 --- a/tests/integration/api_packages_composer_test.go +++ b/tests/integration/api_packages_composer_test.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 integration diff --git a/tests/integration/api_packages_conan_test.go b/tests/integration/api_packages_conan_test.go index 40c8b708838..5ced388b485 100644 --- a/tests/integration/api_packages_conan_test.go +++ b/tests/integration/api_packages_conan_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 integration diff --git a/tests/integration/api_packages_container_test.go b/tests/integration/api_packages_container_test.go index 60cbecd0675..851021da1b7 100644 --- a/tests/integration/api_packages_container_test.go +++ b/tests/integration/api_packages_container_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 integration diff --git a/tests/integration/api_packages_generic_test.go b/tests/integration/api_packages_generic_test.go index 4c5c0c615c5..875b9ed96ee 100644 --- a/tests/integration/api_packages_generic_test.go +++ b/tests/integration/api_packages_generic_test.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 integration diff --git a/tests/integration/api_packages_helm_test.go b/tests/integration/api_packages_helm_test.go index 3c30a6848e5..4a7d5634318 100644 --- a/tests/integration/api_packages_helm_test.go +++ b/tests/integration/api_packages_helm_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 integration diff --git a/tests/integration/api_packages_maven_test.go b/tests/integration/api_packages_maven_test.go index e71e1ff03ba..5c0dbfc99cc 100644 --- a/tests/integration/api_packages_maven_test.go +++ b/tests/integration/api_packages_maven_test.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 integration diff --git a/tests/integration/api_packages_npm_test.go b/tests/integration/api_packages_npm_test.go index 20412fe727c..39d1c91e87d 100644 --- a/tests/integration/api_packages_npm_test.go +++ b/tests/integration/api_packages_npm_test.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 integration diff --git a/tests/integration/api_packages_nuget_test.go b/tests/integration/api_packages_nuget_test.go index bf4217ef262..72329b66912 100644 --- a/tests/integration/api_packages_nuget_test.go +++ b/tests/integration/api_packages_nuget_test.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 integration diff --git a/tests/integration/api_packages_pub_test.go b/tests/integration/api_packages_pub_test.go index 9e4ce63fa10..325401fe758 100644 --- a/tests/integration/api_packages_pub_test.go +++ b/tests/integration/api_packages_pub_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 integration diff --git a/tests/integration/api_packages_pypi_test.go b/tests/integration/api_packages_pypi_test.go index 83719dcca0f..71197f92a8d 100644 --- a/tests/integration/api_packages_pypi_test.go +++ b/tests/integration/api_packages_pypi_test.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 integration diff --git a/tests/integration/api_packages_rubygems_test.go b/tests/integration/api_packages_rubygems_test.go index 6cf5af710b3..c85ff9aaf59 100644 --- a/tests/integration/api_packages_rubygems_test.go +++ b/tests/integration/api_packages_rubygems_test.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 integration diff --git a/tests/integration/api_packages_test.go b/tests/integration/api_packages_test.go index 8efb70848bf..8346e3bccca 100644 --- a/tests/integration/api_packages_test.go +++ b/tests/integration/api_packages_test.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 integration diff --git a/tests/integration/api_packages_vagrant_test.go b/tests/integration/api_packages_vagrant_test.go index 1d2952e1a20..d3e4449f295 100644 --- a/tests/integration/api_packages_vagrant_test.go +++ b/tests/integration/api_packages_vagrant_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 integration diff --git a/tests/integration/api_private_serv_test.go b/tests/integration/api_private_serv_test.go index 6fd6d616db8..d26935f4462 100644 --- a/tests/integration/api_private_serv_test.go +++ b/tests/integration/api_private_serv_test.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 integration diff --git a/tests/integration/api_pull_commits_test.go b/tests/integration/api_pull_commits_test.go index 6753ceaa973..3068ca2dd68 100644 --- a/tests/integration/api_pull_commits_test.go +++ b/tests/integration/api_pull_commits_test.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 integration diff --git a/tests/integration/api_pull_review_test.go b/tests/integration/api_pull_review_test.go index 6ebad106fb3..ac7982773d0 100644 --- a/tests/integration/api_pull_review_test.go +++ b/tests/integration/api_pull_review_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 integration diff --git a/tests/integration/api_pull_test.go b/tests/integration/api_pull_test.go index 81842b05fbb..5e987c441ef 100644 --- a/tests/integration/api_pull_test.go +++ b/tests/integration/api_pull_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/api_releases_test.go b/tests/integration/api_releases_test.go index 0c7f5e2d521..90691d81abe 100644 --- a/tests/integration/api_releases_test.go +++ b/tests/integration/api_releases_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 integration diff --git a/tests/integration/api_repo_archive_test.go b/tests/integration/api_repo_archive_test.go index 3707cb7c1c8..a3c03ba2fcb 100644 --- a/tests/integration/api_repo_archive_test.go +++ b/tests/integration/api_repo_archive_test.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 integration diff --git a/tests/integration/api_repo_collaborator_test.go b/tests/integration/api_repo_collaborator_test.go index 3527e16572d..cb834096cb4 100644 --- a/tests/integration/api_repo_collaborator_test.go +++ b/tests/integration/api_repo_collaborator_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 integration diff --git a/tests/integration/api_repo_edit_test.go b/tests/integration/api_repo_edit_test.go index 4dfae97e437..dcaecbd035c 100644 --- a/tests/integration/api_repo_edit_test.go +++ b/tests/integration/api_repo_edit_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 integration diff --git a/tests/integration/api_repo_file_create_test.go b/tests/integration/api_repo_file_create_test.go index f03efaa0ead..17e26d966ba 100644 --- a/tests/integration/api_repo_file_create_test.go +++ b/tests/integration/api_repo_file_create_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 integration diff --git a/tests/integration/api_repo_file_delete_test.go b/tests/integration/api_repo_file_delete_test.go index 2c8b1e381f7..1956c2a3a22 100644 --- a/tests/integration/api_repo_file_delete_test.go +++ b/tests/integration/api_repo_file_delete_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 integration diff --git a/tests/integration/api_repo_file_get_test.go b/tests/integration/api_repo_file_get_test.go index cca72c2b3ec..4fca55c93df 100644 --- a/tests/integration/api_repo_file_get_test.go +++ b/tests/integration/api_repo_file_get_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 integration diff --git a/tests/integration/api_repo_file_helpers.go b/tests/integration/api_repo_file_helpers.go index 298bae95c0d..d773bcd6293 100644 --- a/tests/integration/api_repo_file_helpers.go +++ b/tests/integration/api_repo_file_helpers.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 integration diff --git a/tests/integration/api_repo_file_update_test.go b/tests/integration/api_repo_file_update_test.go index a3be67ad844..eba1d78fe7f 100644 --- a/tests/integration/api_repo_file_update_test.go +++ b/tests/integration/api_repo_file_update_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 integration diff --git a/tests/integration/api_repo_get_contents_list_test.go b/tests/integration/api_repo_get_contents_list_test.go index 4f2f5cb528c..e0db8329dec 100644 --- a/tests/integration/api_repo_get_contents_list_test.go +++ b/tests/integration/api_repo_get_contents_list_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 integration diff --git a/tests/integration/api_repo_get_contents_test.go b/tests/integration/api_repo_get_contents_test.go index dddc316e1a9..ccbcfba4865 100644 --- a/tests/integration/api_repo_get_contents_test.go +++ b/tests/integration/api_repo_get_contents_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 integration diff --git a/tests/integration/api_repo_git_blobs_test.go b/tests/integration/api_repo_git_blobs_test.go index cb5116c743b..1dd59776c16 100644 --- a/tests/integration/api_repo_git_blobs_test.go +++ b/tests/integration/api_repo_git_blobs_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 integration diff --git a/tests/integration/api_repo_git_commits_test.go b/tests/integration/api_repo_git_commits_test.go index 99f83f943c3..90d17795c18 100644 --- a/tests/integration/api_repo_git_commits_test.go +++ b/tests/integration/api_repo_git_commits_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 integration diff --git a/tests/integration/api_repo_git_hook_test.go b/tests/integration/api_repo_git_hook_test.go index a6c4f91d4a5..a3bbe9bbad1 100644 --- a/tests/integration/api_repo_git_hook_test.go +++ b/tests/integration/api_repo_git_hook_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 integration diff --git a/tests/integration/api_repo_git_notes_test.go b/tests/integration/api_repo_git_notes_test.go index 713c7599c33..e57055340e2 100644 --- a/tests/integration/api_repo_git_notes_test.go +++ b/tests/integration/api_repo_git_notes_test.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 integration diff --git a/tests/integration/api_repo_git_ref_test.go b/tests/integration/api_repo_git_ref_test.go index e8fc47f8dc3..ee4ae6e1268 100644 --- a/tests/integration/api_repo_git_ref_test.go +++ b/tests/integration/api_repo_git_ref_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 integration diff --git a/tests/integration/api_repo_git_tags_test.go b/tests/integration/api_repo_git_tags_test.go index 3357f9568db..941ede45f90 100644 --- a/tests/integration/api_repo_git_tags_test.go +++ b/tests/integration/api_repo_git_tags_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 integration diff --git a/tests/integration/api_repo_git_trees_test.go b/tests/integration/api_repo_git_trees_test.go index 385fec12ba1..b99326e1ac4 100644 --- a/tests/integration/api_repo_git_trees_test.go +++ b/tests/integration/api_repo_git_trees_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 integration diff --git a/tests/integration/api_repo_hook_test.go b/tests/integration/api_repo_hook_test.go index e503834e188..cf080575da6 100644 --- a/tests/integration/api_repo_hook_test.go +++ b/tests/integration/api_repo_hook_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 integration diff --git a/tests/integration/api_repo_languages_test.go b/tests/integration/api_repo_languages_test.go index 98373fb6b16..17e626fa7fd 100644 --- a/tests/integration/api_repo_languages_test.go +++ b/tests/integration/api_repo_languages_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 integration diff --git a/tests/integration/api_repo_lfs_locks_test.go b/tests/integration/api_repo_lfs_locks_test.go index 2186933bd9b..5aa1396941d 100644 --- a/tests/integration/api_repo_lfs_locks_test.go +++ b/tests/integration/api_repo_lfs_locks_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/api_repo_lfs_migrate_test.go b/tests/integration/api_repo_lfs_migrate_test.go index d2edf67e8be..50d0c5966ba 100644 --- a/tests/integration/api_repo_lfs_migrate_test.go +++ b/tests/integration/api_repo_lfs_migrate_test.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 integration diff --git a/tests/integration/api_repo_lfs_test.go b/tests/integration/api_repo_lfs_test.go index 440dd04a810..d4334ff8b99 100644 --- a/tests/integration/api_repo_lfs_test.go +++ b/tests/integration/api_repo_lfs_test.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 integration diff --git a/tests/integration/api_repo_raw_test.go b/tests/integration/api_repo_raw_test.go index 9793e12b429..f050e354ac2 100644 --- a/tests/integration/api_repo_raw_test.go +++ b/tests/integration/api_repo_raw_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/api_repo_tags_test.go b/tests/integration/api_repo_tags_test.go index 5d3a209a767..5149542915e 100644 --- a/tests/integration/api_repo_tags_test.go +++ b/tests/integration/api_repo_tags_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 integration diff --git a/tests/integration/api_repo_teams_test.go b/tests/integration/api_repo_teams_test.go index 1e476a89e23..58ba841948c 100644 --- a/tests/integration/api_repo_teams_test.go +++ b/tests/integration/api_repo_teams_test.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 integration diff --git a/tests/integration/api_repo_test.go b/tests/integration/api_repo_test.go index bfe0c0aa9c5..e32bb47bc70 100644 --- a/tests/integration/api_repo_test.go +++ b/tests/integration/api_repo_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/api_repo_topic_test.go b/tests/integration/api_repo_topic_test.go index 4e1e2938906..81eb1a9427d 100644 --- a/tests/integration/api_repo_topic_test.go +++ b/tests/integration/api_repo_topic_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 integration diff --git a/tests/integration/api_settings_test.go b/tests/integration/api_settings_test.go index b8da17b963a..9881578fba5 100644 --- a/tests/integration/api_settings_test.go +++ b/tests/integration/api_settings_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 integration diff --git a/tests/integration/api_team_test.go b/tests/integration/api_team_test.go index a667949c096..c6be5c19472 100644 --- a/tests/integration/api_team_test.go +++ b/tests/integration/api_team_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/api_team_user_test.go b/tests/integration/api_team_user_test.go index b999b97a2b6..d09749d65ca 100644 --- a/tests/integration/api_team_user_test.go +++ b/tests/integration/api_team_user_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 integration diff --git a/tests/integration/api_token_test.go b/tests/integration/api_token_test.go index 023bf301797..498bd41b0f6 100644 --- a/tests/integration/api_token_test.go +++ b/tests/integration/api_token_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 integration diff --git a/tests/integration/api_user_email_test.go b/tests/integration/api_user_email_test.go index 7bd265187ca..5f2592252a3 100644 --- a/tests/integration/api_user_email_test.go +++ b/tests/integration/api_user_email_test.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 integration diff --git a/tests/integration/api_user_follow_test.go b/tests/integration/api_user_follow_test.go index e21556aa5b2..65749521cc6 100644 --- a/tests/integration/api_user_follow_test.go +++ b/tests/integration/api_user_follow_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 integration diff --git a/tests/integration/api_user_heatmap_test.go b/tests/integration/api_user_heatmap_test.go index da6af0118dd..432306914cd 100644 --- a/tests/integration/api_user_heatmap_test.go +++ b/tests/integration/api_user_heatmap_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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.package models +// SPDX-License-Identifier: MIT package integration diff --git a/tests/integration/api_user_info_test.go b/tests/integration/api_user_info_test.go index 27fec1d5878..65262792b7f 100644 --- a/tests/integration/api_user_info_test.go +++ b/tests/integration/api_user_info_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 integration diff --git a/tests/integration/api_user_org_perm_test.go b/tests/integration/api_user_org_perm_test.go index fef653545c5..9483283e328 100644 --- a/tests/integration/api_user_org_perm_test.go +++ b/tests/integration/api_user_org_perm_test.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 integration diff --git a/tests/integration/api_user_orgs_test.go b/tests/integration/api_user_orgs_test.go index c28bf391eb3..f29014e934c 100644 --- a/tests/integration/api_user_orgs_test.go +++ b/tests/integration/api_user_orgs_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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.package models +// SPDX-License-Identifier: MIT package integration diff --git a/tests/integration/api_user_search_test.go b/tests/integration/api_user_search_test.go index 9e9276077b4..58b24d0e1ef 100644 --- a/tests/integration/api_user_search_test.go +++ b/tests/integration/api_user_search_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.package models +// SPDX-License-Identifier: MIT package integration diff --git a/tests/integration/api_user_star_test.go b/tests/integration/api_user_star_test.go index 76c3dc2d177..63363f22de1 100644 --- a/tests/integration/api_user_star_test.go +++ b/tests/integration/api_user_star_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 integration diff --git a/tests/integration/api_user_watch_test.go b/tests/integration/api_user_watch_test.go index e45050a2783..295e639fd18 100644 --- a/tests/integration/api_user_watch_test.go +++ b/tests/integration/api_user_watch_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 integration diff --git a/tests/integration/api_wiki_test.go b/tests/integration/api_wiki_test.go index c6f4841d082..d56b04e9131 100644 --- a/tests/integration/api_wiki_test.go +++ b/tests/integration/api_wiki_test.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 integration diff --git a/tests/integration/attachment_test.go b/tests/integration/attachment_test.go index 2d2c979f7b0..a92814ecee6 100644 --- a/tests/integration/attachment_test.go +++ b/tests/integration/attachment_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 integration diff --git a/tests/integration/auth_ldap_test.go b/tests/integration/auth_ldap_test.go index f3c3e6d7b3e..88571ecd614 100644 --- a/tests/integration/auth_ldap_test.go +++ b/tests/integration/auth_ldap_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 integration diff --git a/tests/integration/benchmarks_test.go b/tests/integration/benchmarks_test.go index bf66d221fb0..2f91f8273ea 100644 --- a/tests/integration/benchmarks_test.go +++ b/tests/integration/benchmarks_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/branches_test.go b/tests/integration/branches_test.go index bd0bd63c50a..efb3798bd77 100644 --- a/tests/integration/branches_test.go +++ b/tests/integration/branches_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/change_default_branch_test.go b/tests/integration/change_default_branch_test.go index 8edc0e63c43..703834b7129 100644 --- a/tests/integration/change_default_branch_test.go +++ b/tests/integration/change_default_branch_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/cmd_keys_test.go b/tests/integration/cmd_keys_test.go index 0c72956c293..ccde0489145 100644 --- a/tests/integration/cmd_keys_test.go +++ b/tests/integration/cmd_keys_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 integration diff --git a/tests/integration/compare_test.go b/tests/integration/compare_test.go index 134ae520a87..dc2bff89fd4 100644 --- a/tests/integration/compare_test.go +++ b/tests/integration/compare_test.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 integration diff --git a/tests/integration/cors_test.go b/tests/integration/cors_test.go index c702c62e48d..cc2d85b41eb 100644 --- a/tests/integration/cors_test.go +++ b/tests/integration/cors_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 integration diff --git a/tests/integration/create_no_session_test.go b/tests/integration/create_no_session_test.go index c617b1828a1..9a96ed61fae 100644 --- a/tests/integration/create_no_session_test.go +++ b/tests/integration/create_no_session_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 integration diff --git a/tests/integration/csrf_test.go b/tests/integration/csrf_test.go index 18a157412b2..a789859889b 100644 --- a/tests/integration/csrf_test.go +++ b/tests/integration/csrf_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/delete_user_test.go b/tests/integration/delete_user_test.go index 1d9d257f123..806b87dc4ce 100644 --- a/tests/integration/delete_user_test.go +++ b/tests/integration/delete_user_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/download_test.go b/tests/integration/download_test.go index 9d3b17d1036..9e03ec28825 100644 --- a/tests/integration/download_test.go +++ b/tests/integration/download_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 integration diff --git a/tests/integration/dump_restore_test.go b/tests/integration/dump_restore_test.go index 80c71810e35..e34738aaf1e 100644 --- a/tests/integration/dump_restore_test.go +++ b/tests/integration/dump_restore_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 integration diff --git a/tests/integration/editor_test.go b/tests/integration/editor_test.go index 19e80dc7bfd..4355dd0a4d7 100644 --- a/tests/integration/editor_test.go +++ b/tests/integration/editor_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/empty_repo_test.go b/tests/integration/empty_repo_test.go index 8810363dc86..4bc1d811bf3 100644 --- a/tests/integration/empty_repo_test.go +++ b/tests/integration/empty_repo_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/eventsource_test.go b/tests/integration/eventsource_test.go index 2f698659cb9..e810a9fa246 100644 --- a/tests/integration/eventsource_test.go +++ b/tests/integration/eventsource_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 integration diff --git a/tests/integration/explore_repos_test.go b/tests/integration/explore_repos_test.go index dca32527539..26fd1dde644 100644 --- a/tests/integration/explore_repos_test.go +++ b/tests/integration/explore_repos_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/git_clone_wiki_test.go b/tests/integration/git_clone_wiki_test.go index e8764e6bd9f..d7949dfe25e 100644 --- a/tests/integration/git_clone_wiki_test.go +++ b/tests/integration/git_clone_wiki_test.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 integration diff --git a/tests/integration/git_helper_for_declarative_test.go b/tests/integration/git_helper_for_declarative_test.go index 45b4f444751..9e3ff9c4484 100644 --- a/tests/integration/git_helper_for_declarative_test.go +++ b/tests/integration/git_helper_for_declarative_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 integration diff --git a/tests/integration/git_smart_http_test.go b/tests/integration/git_smart_http_test.go index 02b0e938704..15336b9b81f 100644 --- a/tests/integration/git_smart_http_test.go +++ b/tests/integration/git_smart_http_test.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 integration diff --git a/tests/integration/git_test.go b/tests/integration/git_test.go index 6f656ef2ce6..6508df1ef0d 100644 --- a/tests/integration/git_test.go +++ b/tests/integration/git_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/goget_test.go b/tests/integration/goget_test.go index c969f4aff10..fab3911464a 100644 --- a/tests/integration/goget_test.go +++ b/tests/integration/goget_test.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 integration diff --git a/tests/integration/gpg_git_test.go b/tests/integration/gpg_git_test.go index 4dcf6276c27..669212ff14a 100644 --- a/tests/integration/gpg_git_test.go +++ b/tests/integration/gpg_git_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 integration diff --git a/tests/integration/html_helper.go b/tests/integration/html_helper.go index 35d61f7b3e2..933bb51cf8f 100644 --- a/tests/integration/html_helper.go +++ b/tests/integration/html_helper.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/integration_test.go b/tests/integration/integration_test.go index 416cc126bda..9bf4c38ee08 100644 --- a/tests/integration/integration_test.go +++ b/tests/integration/integration_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/issue_test.go b/tests/integration/issue_test.go index 1f0f894ca42..c913a2000c8 100644 --- a/tests/integration/issue_test.go +++ b/tests/integration/issue_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/lfs_getobject_test.go b/tests/integration/lfs_getobject_test.go index f2b0ac80c3e..1a486b60514 100644 --- a/tests/integration/lfs_getobject_test.go +++ b/tests/integration/lfs_getobject_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 integration diff --git a/tests/integration/lfs_local_endpoint_test.go b/tests/integration/lfs_local_endpoint_test.go index 4042dc95b35..d42888bbe17 100644 --- a/tests/integration/lfs_local_endpoint_test.go +++ b/tests/integration/lfs_local_endpoint_test.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 integration diff --git a/tests/integration/links_test.go b/tests/integration/links_test.go index 4eb29f0cee7..9136f8f9153 100644 --- a/tests/integration/links_test.go +++ b/tests/integration/links_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/migrate_test.go b/tests/integration/migrate_test.go index 99d5d6c8dd2..9eca69cfcf2 100644 --- a/tests/integration/migrate_test.go +++ b/tests/integration/migrate_test.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 integration diff --git a/tests/integration/migration-test/migration_test.go b/tests/integration/migration-test/migration_test.go index 0159fb4f3c7..170a6dd444c 100644 --- a/tests/integration/migration-test/migration_test.go +++ b/tests/integration/migration-test/migration_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 migrations diff --git a/tests/integration/mirror_pull_test.go b/tests/integration/mirror_pull_test.go index 707cf46fa0f..753b7e76639 100644 --- a/tests/integration/mirror_pull_test.go +++ b/tests/integration/mirror_pull_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 integration diff --git a/tests/integration/mirror_push_test.go b/tests/integration/mirror_push_test.go index f2adf5f5a33..b2ec6c09325 100644 --- a/tests/integration/mirror_push_test.go +++ b/tests/integration/mirror_push_test.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 integration diff --git a/tests/integration/nonascii_branches_test.go b/tests/integration/nonascii_branches_test.go index 638b9a61643..d9e5b0fce3c 100644 --- a/tests/integration/nonascii_branches_test.go +++ b/tests/integration/nonascii_branches_test.go @@ -1,6 +1,5 @@ // Copyright 2018 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 integration diff --git a/tests/integration/oauth_test.go b/tests/integration/oauth_test.go index 7863313b149..9649b256a90 100644 --- a/tests/integration/oauth_test.go +++ b/tests/integration/oauth_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 integration diff --git a/tests/integration/org_count_test.go b/tests/integration/org_count_test.go index 96f39924f13..a6fe7f188eb 100644 --- a/tests/integration/org_count_test.go +++ b/tests/integration/org_count_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 integration diff --git a/tests/integration/org_team_invite_test.go b/tests/integration/org_team_invite_test.go index 470478589aa..4d848dfc603 100644 --- a/tests/integration/org_team_invite_test.go +++ b/tests/integration/org_team_invite_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 integration diff --git a/tests/integration/org_test.go b/tests/integration/org_test.go index d04fcf7f57a..09a5f42082c 100644 --- a/tests/integration/org_test.go +++ b/tests/integration/org_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 integration diff --git a/tests/integration/privateactivity_test.go b/tests/integration/privateactivity_test.go index 3f352e49c61..06019406d79 100644 --- a/tests/integration/privateactivity_test.go +++ b/tests/integration/privateactivity_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 integration diff --git a/tests/integration/pull_compare_test.go b/tests/integration/pull_compare_test.go index 60e69e97eb3..fa385ddae46 100644 --- a/tests/integration/pull_compare_test.go +++ b/tests/integration/pull_compare_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/pull_create_test.go b/tests/integration/pull_create_test.go index b5cb7877bc9..35f7cb8ab76 100644 --- a/tests/integration/pull_create_test.go +++ b/tests/integration/pull_create_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/pull_merge_test.go b/tests/integration/pull_merge_test.go index bec85e8a8d0..e72d00ffb36 100644 --- a/tests/integration/pull_merge_test.go +++ b/tests/integration/pull_merge_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/pull_review_test.go b/tests/integration/pull_review_test.go index d713c0f8589..68d80a10215 100644 --- a/tests/integration/pull_review_test.go +++ b/tests/integration/pull_review_test.go @@ -1,6 +1,6 @@ // 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 integration import ( diff --git a/tests/integration/pull_status_test.go b/tests/integration/pull_status_test.go index 381cc73cd19..bca8ec848b8 100644 --- a/tests/integration/pull_status_test.go +++ b/tests/integration/pull_status_test.go @@ -1,6 +1,6 @@ // 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 integration import ( diff --git a/tests/integration/pull_update_test.go b/tests/integration/pull_update_test.go index 1bfe5c7050d..1e20a63e662 100644 --- a/tests/integration/pull_update_test.go +++ b/tests/integration/pull_update_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 integration diff --git a/tests/integration/release_test.go b/tests/integration/release_test.go index 2a52a5cde21..b4f7560fa33 100644 --- a/tests/integration/release_test.go +++ b/tests/integration/release_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/rename_branch_test.go b/tests/integration/rename_branch_test.go index 9ea69702afa..d8434c28bb1 100644 --- a/tests/integration/rename_branch_test.go +++ b/tests/integration/rename_branch_test.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 integration diff --git a/tests/integration/repo_activity_test.go b/tests/integration/repo_activity_test.go index ea8845ac394..c8d0c46d645 100644 --- a/tests/integration/repo_activity_test.go +++ b/tests/integration/repo_activity_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/repo_branch_test.go b/tests/integration/repo_branch_test.go index 96ffa5a46e6..c56aa43c514 100644 --- a/tests/integration/repo_branch_test.go +++ b/tests/integration/repo_branch_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/repo_commits_search_test.go b/tests/integration/repo_commits_search_test.go index 83f30758a41..1c27b6db9d6 100644 --- a/tests/integration/repo_commits_search_test.go +++ b/tests/integration/repo_commits_search_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 integration diff --git a/tests/integration/repo_commits_test.go b/tests/integration/repo_commits_test.go index c9e77535962..438e1c2cc4b 100644 --- a/tests/integration/repo_commits_test.go +++ b/tests/integration/repo_commits_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/repo_fork_test.go b/tests/integration/repo_fork_test.go index 4ab3577b549..26c81f5beec 100644 --- a/tests/integration/repo_fork_test.go +++ b/tests/integration/repo_fork_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/repo_generate_test.go b/tests/integration/repo_generate_test.go index 61a632721e8..4654fd70faa 100644 --- a/tests/integration/repo_generate_test.go +++ b/tests/integration/repo_generate_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 integration diff --git a/tests/integration/repo_migrate_test.go b/tests/integration/repo_migrate_test.go index c69a2642cbe..91e2961d6d4 100644 --- a/tests/integration/repo_migrate_test.go +++ b/tests/integration/repo_migrate_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/repo_search_test.go b/tests/integration/repo_search_test.go index b20943c22ac..34328100fd9 100644 --- a/tests/integration/repo_search_test.go +++ b/tests/integration/repo_search_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/repo_tag_test.go b/tests/integration/repo_tag_test.go index e20c7259155..5ea9392a99d 100644 --- a/tests/integration/repo_tag_test.go +++ b/tests/integration/repo_tag_test.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 integration diff --git a/tests/integration/repo_test.go b/tests/integration/repo_test.go index 8e494a9af41..3692b11ecab 100644 --- a/tests/integration/repo_test.go +++ b/tests/integration/repo_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/repo_topic_test.go b/tests/integration/repo_topic_test.go index 5ff0c8273a4..58fee8418f1 100644 --- a/tests/integration/repo_topic_test.go +++ b/tests/integration/repo_topic_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 integration diff --git a/tests/integration/repo_watch_test.go b/tests/integration/repo_watch_test.go index 152600bf299..c47080298ed 100644 --- a/tests/integration/repo_watch_test.go +++ b/tests/integration/repo_watch_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 integration diff --git a/tests/integration/repofiles_delete_test.go b/tests/integration/repofiles_delete_test.go index f594efdeeb5..6698b280bdb 100644 --- a/tests/integration/repofiles_delete_test.go +++ b/tests/integration/repofiles_delete_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 integration diff --git a/tests/integration/repofiles_update_test.go b/tests/integration/repofiles_update_test.go index c62c49eeebb..47b61c1eeb9 100644 --- a/tests/integration/repofiles_update_test.go +++ b/tests/integration/repofiles_update_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 integration diff --git a/tests/integration/setting_test.go b/tests/integration/setting_test.go index 6273545c236..71b28a62587 100644 --- a/tests/integration/setting_test.go +++ b/tests/integration/setting_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/signin_test.go b/tests/integration/signin_test.go index 7dc078e2744..9ae45d32424 100644 --- a/tests/integration/signin_test.go +++ b/tests/integration/signin_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/signout_test.go b/tests/integration/signout_test.go index 1f1346a5c3c..0416930c672 100644 --- a/tests/integration/signout_test.go +++ b/tests/integration/signout_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/signup_test.go b/tests/integration/signup_test.go index 1c598fd0d12..f983f98ad8b 100644 --- a/tests/integration/signup_test.go +++ b/tests/integration/signup_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/ssh_key_test.go b/tests/integration/ssh_key_test.go index fd98af51251..89a27743032 100644 --- a/tests/integration/ssh_key_test.go +++ b/tests/integration/ssh_key_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 integration diff --git a/tests/integration/timetracking_test.go b/tests/integration/timetracking_test.go index 54b81ff3bc0..52081615a01 100644 --- a/tests/integration/timetracking_test.go +++ b/tests/integration/timetracking_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/user_avatar_test.go b/tests/integration/user_avatar_test.go index 35be840c29c..08ecb8b7496 100644 --- a/tests/integration/user_avatar_test.go +++ b/tests/integration/user_avatar_test.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 integration diff --git a/tests/integration/user_test.go b/tests/integration/user_test.go index 017700ad402..eeaa6d6e00a 100644 --- a/tests/integration/user_test.go +++ b/tests/integration/user_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/version_test.go b/tests/integration/version_test.go index 83be62d3f46..a6ae649b400 100644 --- a/tests/integration/version_test.go +++ b/tests/integration/version_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/integration/view_test.go b/tests/integration/view_test.go index f55afb038c9..f4344468013 100644 --- a/tests/integration/view_test.go +++ b/tests/integration/view_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 integration diff --git a/tests/integration/webfinger_test.go b/tests/integration/webfinger_test.go index bb3447c809a..226c25615fa 100644 --- a/tests/integration/webfinger_test.go +++ b/tests/integration/webfinger_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 integration diff --git a/tests/integration/xss_test.go b/tests/integration/xss_test.go index 53b23072ad6..e575ed3990c 100644 --- a/tests/integration/xss_test.go +++ b/tests/integration/xss_test.go @@ -1,6 +1,5 @@ // 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 integration diff --git a/tests/test_utils.go b/tests/test_utils.go index 06625300025..b4bd4a011e7 100644 --- a/tests/test_utils.go +++ b/tests/test_utils.go @@ -1,6 +1,5 @@ // 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 tests diff --git a/tests/testlogger.go b/tests/testlogger.go index b65573a771c..a7cc27a926d 100644 --- a/tests/testlogger.go +++ b/tests/testlogger.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 tests diff --git a/tools/fuzz.go b/tools/fuzz.go index 8098868d5e2..449ba670672 100644 --- a/tools/fuzz.go +++ b/tools/fuzz.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 //go:build gofuzz