diff options
author | flynnnnnnnnnn <118399147+flynnnnnnnnnn@users.noreply.github.com> | 2022-11-27 13:20:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 18:20:29 +0000 |
commit | e81ccc406bf723a5a58d685e7782f281736affd4 (patch) | |
tree | bc9812f3f1779f8ce86b8f915d08aafd02e944b9 /routers | |
parent | f6fd501841816f5e5c1c9a30fbc4c9a2a6f987bc (diff) | |
download | gitea-e81ccc406bf723a5a58d685e7782f281736affd4.tar.gz gitea-e81ccc406bf723a5a58d685e7782f281736affd4.zip |
Implement FSFE REUSE for golang files (#21840)
Change all license headers to comply with REUSE specification.
Fix #16132
Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers')
276 files changed, 276 insertions, 552 deletions
diff --git a/routers/api/packages/api.go b/routers/api/packages/api.go index 0d8b9ce61e..b523725c48 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 ed52d16513..a3bcf80417 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 a19433c6f0..c6e0593b42 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 00855a97a4..fe33e2c740 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 e7c891b35f..d538cc7d39 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 39dd6362aa..2bcf9df162 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 770068a3bf..948001dcad 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 06b450de02..fd5819d506 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 7af06a9171..cbbdf8eb88 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 0efbb081ca..1a9b0f32d2 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 64c958c2d0..350933f3d2 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 1c233da20f..5fba02cacd 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 11291ca14e..af863bc4b9 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 8cde84023f..660aaec1a3 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 4ca541dd6f..167fe42b56 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 3125062b92..0ca3fa1793 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 490387a0e4..f8d50f03cf 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 6c11286a86..4306d5ba36 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 60a5d9c0e4..c545d0fc4e 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 bb3e447bd6..b5900b6c0b 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 1dad452648..2be102a38b 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 618b54ae8d..1b02e46184 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 06aaca596d..d6f7d1d7f6 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 26cb9fbb9a..247950a214 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 76801a92e1..826f58095e 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 56e327a347..3023692177 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 f0b00f42c3..c1a10b5e78 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 746a2b19ba..7b76ab79b0 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 542ae7e120..8085580985 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 649cb488b3..2d945c27a5 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 48222f89eb..0e4e498e98 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 0c4333b892..cc8c6c9e23 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 727f3193cf..9d0725e3e8 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 712ced89c9..83ed06e49b 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 1a4b020011..183ade8a0a 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 e41fccb635..3f5cf431f8 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 becf45f643..e44271ba14 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 d41c4bb223..3514e21baa 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 eb0b78a5ba..3ff42f08d6 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 65ce060278..025f2f44b0 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 a4ba440356..319c3483e1 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 1070cc78cb..2ca9813e15 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 b8c7d4f9ad..83fa35219a 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 9948f90a12..3b6a9bfdc2 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 6d9664400a..a2e72cb48d 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 f8e4960912..47d0e49721 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 5f4d8b35c2..725eeff017 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 f8ea5a876c..2e9d7c656a 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 a67bd56dfc..c95a6be3d2 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 85fe2ded4d..fe07143958 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 5a8b253a20..cf985d44fb 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 b2bcc4d586..f233494fa5 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 29fa6c85a5..433a79939c 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 035f2dc1e1..d0004f0686 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 d10a308df3..f5b1eb1c42 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 0e6236216c..383193daa7 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 4e77c3f2f5..682044407d 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 aba5b1f9e7..623fe18e5d 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 c0a79d1a63..e2cb4400f5 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 0b4e09cadd..963cbc719f 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 47f46df339..34d2dcfcc8 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 57fff7d326..9b84fb2b30 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 fd9a165bf3..34dc990c3d 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 60f9859e10..c539a36238 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 a5da091727..7f6f24605d 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 091f1ce27c..04d70913c7 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 fb7fd713b3..dcfe7967b5 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 941b22e454..110139cc36 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 5e03e42b4c..32832d83f7 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 e3abb973be..6786d23a93 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 14f6aa6148..cff6850469 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 8b1e298668..8b49becd37 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 ca803cb68b..12f1761ad0 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 1f91a24937..543fb922d6 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 aeef862b1f..a0316c9a78 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 0e8800510b..2b80b4df73 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 91e5e0c031..b693c0e7db 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 ee3133adec..91eebb4c72 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 40afe2d92b..6fbb9e7b3a 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 fba7ed6462..53505e998c 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 df88e2a57b..2f357afb79 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 60cc19d565..4e1927ea3d 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 02f85d384a..88632b4637 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 77395bb469..5e1f1860ae 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 29febe751c..e8603d1917 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 9acc0ee7d2..59c3bde819 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 c78c3cc512..a3d1105873 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 97ef69a6ea..84827a91ad 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 c1aaa24193..5cc94abd48 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 ab31866162..6b38a08c2f 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 f485f2086e..1ea3ae0008 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 64dc763dc3..316b190259 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 067a4ebe19..a40419e13e 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 b8294ebe31..9df96204cb 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 734a550a71..0b55a9b281 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 36f93893a8..02bda1309d 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 afc0c05057..91341669da 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 9783abe1a0..6a08b11874 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 85f2ed0e35..00cfbe0adb 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 09e7077b20..62458a3424 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 c3da37af63..8390833589 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 1d3c257efa..a4052a6a76 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 c1ecf3a3f3..8650dfa092 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 cd30d496e0..743d807a0a 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 e8cfc0706f..979b184075 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 d98e821ba7..0105446b00 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 2a1f057314..eada12d1ea 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 642b1b7b91..bd867213a6 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 4bf153cb9c..a9466699df 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 857bdc2a14..fb6d185ee7 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 14f1592591..6cb7b812b2 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 31c13172fc..84823aaed2 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 22f8f40e1c..38ddf990c4 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 b87cf0041e..7c91d2ac65 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 ae7fa5248e..28f600ad92 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 71a2c910a6..d00eec85e4 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 d1917a9938..2af70f9ad3 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 f00bf8c268..89bfd83efc 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 96748c630d..2ef5806974 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 69197aef23..8a21c2c7ca 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 7765a399f3..43c097444e 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 816f8b3595..2801dee8ba 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 aa922f4f5b..7faf609ae8 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 608bec7395..ef5806fa92 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 99d66f93e8..ac082ab36f 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 6ea1e1dfbe..0c7838b0ef 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 340eb1809f..4b04ddae34 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 fecc5c439c..670191debc 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 184dc5bae1..ab37f9ba35 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 7617477827..9aa5a88d24 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 e69d2d15df..35b5e5e916 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 c4912f1124..b76219f45d 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 55ffef43f3..268ebbe443 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 1370e5302b..9c69f9c345 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 86bdf60ab9..52a82bfa44 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 0653f8b0d2..05921e6f58 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 8a2d1cf33d..7b9550dfdd 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 f8e451e80f..d5c85480a7 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 c50d2a01a7..2e6f87d6b0 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 9977492c63..b536019dd7 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 255e1d901d..622a01dd8f 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 e7f08ac455..f15da298d6 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 e12bbee18b..a5993bf371 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 43cbdec01c..09ced33b8d 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 2b72ee952d..b5382c7d91 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 34e06e51c2..97ac9a3c5a 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 ddb2e6aa8b..676d83d9e1 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 2f1793a0e0..54604ad554 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 66eaa1d9ce..d6856fceac 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 42cf948e30..6d19214c88 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 d0664eb780..0a51000c70 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 1bc43998b2..2b65ab3ea3 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 c7a9c3100f..745d17ff2a 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 7ea8a52809..1bc166902c 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 792eec8d56..eaa02588ca 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 9482ae0123..c16158c6ae 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 bf71cb5595..e8db9a3ded 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 4e6ad4d743..ea79830fa1 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 f5ec294cc3..f60cf90b3c 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 6081ab9b1c..a4eb0af58d 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 5de8922e6f..80cec51275 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 17b00975ec..b488bbbd14 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 5cdfb8142e..399633e39f 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 da67cd5cb4..ed58a54eef 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 a771643b66..1ca860ecc8 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 c61922cd9d..2aacf23037 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 133a7cced1..565a15bc11 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 c36eaee078..6c409c6b9d 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 71f522fb07..8295515ba9 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 d845f21a33..2b872178ca 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 48400846d2..5116b4fc71 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 eedf3f5c1b..f544b65356 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 c21ca9cf69..e546c77bc9 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 917cbdd57b..b60007bc03 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 f404fd3771..3125d7ce9a 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 2441d6d517..b0d8a7c3f1 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 d8c6f38d02..1a5a162c1a 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 38474255d1..942b1f8378 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 eb6972fad3..c9fb05ff3a 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 8d4ecf1bc0..5271e39bbc 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 39b87f2498..50df9d1113 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 ea3d83e8d6..bb6aa3dc77 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 c6fc352b64..e0e481d1a5 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 ffa34572bc..7641769192 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 027f90872f..1d24b58800 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 a58739fe42..b8e264c441 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 57707b6121..1142a0aec5 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 7640243ba0..ecfecf6e67 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 c7e01b8faa..46c13f0a24 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 0567cbb30c..aaa3ed0781 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 e46d4194b4..72c09a3780 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 2ee94e35e8..01b71e7086 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 6bd8a89d12..4cc364acd3 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 ec5a98fc6a..3be2a39c2e 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 32d8787995..f67e7edb4c 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 185e1eee31..1c910a93a5 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 3f7bc59856..899e554ba0 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 47d1141f34..9bf4280b07 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 399d07fe47..d12e2fcc45 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 316cbcd95f..3d030edaca 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 190dc6c2c7..d12fa60daf 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 52d5c3c6e6..50bfa9d3bd 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 43e6d43134..61fb24d058 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 d2a4e19d0e..2056ad1b37 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 a6553256b0..efc216661c 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 0fb8e44725..a9d6eea1eb 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 cd2d305de6..c1e9ba58b9 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 e8fc020450..7b064adfc5 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 ac0c385897..1e53aac9b0 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 7117c00076..daefe59c8f 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 1ec781bb13..d2450066e3 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 58ac1c07a1..5ba8de3d63 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 318d9af703..2a0a849b5b 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 a9386d274a..dee506deac 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 d8d934ea1c..41c127be91 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 560f25a0af..01421dc927 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 ea078e215c..a62d2afaa8 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 a89ea47571..10db968a21 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 97d4441a27..d2a7a12a1f 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 ad82fe0f36..f1d0aac72f 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 817a2c6d20..6e9d3673cf 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 5210ecf777..c23dbf0622 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 9bf4307bfe..82e0055ab2 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 a1ca3c3bc7..e3a09a95bd 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 c9e8eb4a89..9a4aa3382c 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 393f8ed3d9..bbc349a0a5 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 1e75bd79fb..0427156397 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 57db19aa32..83324711da 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 cd731337ba..27199ba410 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 fb2d25a22b..73f0916346 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 62fb045740..c712902ea9 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 870bc1773b..682bc64ca2 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 bbaacc234c..9f4cdde864 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 0373d5b158..9ef44eb582 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 16371fc860..81ae58178f 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 28a6d2f429..f07b4e8c11 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 17e600182d..0a8a1eb4e8 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 3d1835c7c3..137f38d409 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 2b5691ce88..9e47d0bb12 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 c4cd3486aa..975873a9ef 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 4acd7df5b8..3bb202505c 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 4d46716c30..26df1dbf6c 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 efbfc62d56..4c0b38bd91 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 80f43a0c40..c364e7090f 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 1d1ba25064..c7f97410ff 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 803906b217..73ba118823 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 5496496e80..677fbc92ed 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 24d851762b..885f84543c 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 34f466854f..4699f5379a 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 82d72698c6..2d626c558e 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 05896299d2..20c2ef3e47 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 89bd23588b..0f95932061 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 e67202b284..fc4c919de3 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 36e99bba5e..a75b3573a0 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 517957a85c..925482a1d2 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 323422a1b9..b21d52bbfd 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 7be37b6a50..ae4c239c70 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 982290e0ab..0002d56de0 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 328c7bade4..093de406a9 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 8b95caf2fc..95b3b4040d 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 005603e7ac..5fce41f065 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 a92aa6e989..0aaf5920bc 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 e9572a07a6..23c215738d 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 a8d07ea47a..89be795599 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 d4df464abd..c3938b3201 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 0cc05dd040..93142c21fc 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 49ee5c7c2f..f6ad1b2b38 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 ba3f5b5080..e46724f2e7 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 5fd81bae41..0cecb1aa37 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 a378c8bf64..08fcb6b623 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 57ea24eeb1..db6faaed6e 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 bb2d1f733e..ba05996a1c 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 f40d850fc1..26c7558c11 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 7f5ef792ad..3818682403 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 fe5007abb7..889a89f0d4 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 972182bece..935832aa1f 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 |