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 /modules/structs | |
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 'modules/structs')
52 files changed, 52 insertions, 104 deletions
diff --git a/modules/structs/activitypub.go b/modules/structs/activitypub.go index 86681bf9d7..117eb0bed2 100644 --- a/modules/structs/activitypub.go +++ b/modules/structs/activitypub.go @@ -1,6 +1,5 @@ // Copyright 2022 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/admin_user.go b/modules/structs/admin_user.go index 2f6f502af6..0739653eea 100644 --- a/modules/structs/admin_user.go +++ b/modules/structs/admin_user.go @@ -1,7 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/attachment.go b/modules/structs/attachment.go index 7becd94335..38beca5e99 100644 --- a/modules/structs/attachment.go +++ b/modules/structs/attachment.go @@ -1,6 +1,5 @@ // Copyright 2017 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs // import "code.gitea.io/gitea/modules/structs" diff --git a/modules/structs/commit_status.go b/modules/structs/commit_status.go index 23e0c383b8..dfde79190c 100644 --- a/modules/structs/commit_status.go +++ b/modules/structs/commit_status.go @@ -1,6 +1,5 @@ // Copyright 2020 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/cron.go b/modules/structs/cron.go index f52a5ed3c9..39c6a06a42 100644 --- a/modules/structs/cron.go +++ b/modules/structs/cron.go @@ -1,6 +1,5 @@ // Copyright 2020 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/doc.go b/modules/structs/doc.go index 4c2fdbf73d..0db0a25fd4 100644 --- a/modules/structs/doc.go +++ b/modules/structs/doc.go @@ -1,5 +1,4 @@ // Copyright 2016 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/fork.go b/modules/structs/fork.go index 21afd636c7..eb7774afbc 100644 --- a/modules/structs/fork.go +++ b/modules/structs/fork.go @@ -1,6 +1,5 @@ // Copyright 2016 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/git_blob.go b/modules/structs/git_blob.go index 5715f2585b..96c7a271a9 100644 --- a/modules/structs/git_blob.go +++ b/modules/structs/git_blob.go @@ -1,6 +1,5 @@ // Copyright 2019 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/git_hook.go b/modules/structs/git_hook.go index 8a36b0b266..20230250ec 100644 --- a/modules/structs/git_hook.go +++ b/modules/structs/git_hook.go @@ -1,6 +1,5 @@ // Copyright 2019 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/hook.go b/modules/structs/hook.go index f0600a192d..b722e32ca0 100644 --- a/modules/structs/hook.go +++ b/modules/structs/hook.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2017 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/issue.go b/modules/structs/issue.go index 45c3f6294a..00166b7a07 100644 --- a/modules/structs/issue.go +++ b/modules/structs/issue.go @@ -1,6 +1,5 @@ // Copyright 2016 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/issue_comment.go b/modules/structs/issue_comment.go index e13ec05d01..4a1085ba50 100644 --- a/modules/structs/issue_comment.go +++ b/modules/structs/issue_comment.go @@ -1,6 +1,5 @@ // Copyright 2016 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/issue_label.go b/modules/structs/issue_label.go index 2aadd8638e..5c622797f4 100644 --- a/modules/structs/issue_label.go +++ b/modules/structs/issue_label.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/issue_milestone.go b/modules/structs/issue_milestone.go index ace783ebbc..a840cf1820 100644 --- a/modules/structs/issue_milestone.go +++ b/modules/structs/issue_milestone.go @@ -1,6 +1,5 @@ // Copyright 2016 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/issue_reaction.go b/modules/structs/issue_reaction.go index 56408313ee..8d907a47e5 100644 --- a/modules/structs/issue_reaction.go +++ b/modules/structs/issue_reaction.go @@ -1,6 +1,5 @@ // Copyright 2019 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/issue_stopwatch.go b/modules/structs/issue_stopwatch.go index 15d17cdda7..ceade1ddd2 100644 --- a/modules/structs/issue_stopwatch.go +++ b/modules/structs/issue_stopwatch.go @@ -1,6 +1,5 @@ // Copyright 2019 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/issue_test.go b/modules/structs/issue_test.go index 72b40f7cf2..fa7a20db8b 100644 --- a/modules/structs/issue_test.go +++ b/modules/structs/issue_test.go @@ -1,6 +1,5 @@ // Copyright 2022 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/issue_tracked_time.go b/modules/structs/issue_tracked_time.go index 7e150687ef..a3904af80e 100644 --- a/modules/structs/issue_tracked_time.go +++ b/modules/structs/issue_tracked_time.go @@ -1,6 +1,5 @@ // Copyright 2017 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/lfs_lock.go b/modules/structs/lfs_lock.go index 3709106315..6b4c0bc111 100644 --- a/modules/structs/lfs_lock.go +++ b/modules/structs/lfs_lock.go @@ -1,6 +1,5 @@ // Copyright 2017 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/mirror.go b/modules/structs/mirror.go index 8e8a8a2705..21e7751f76 100644 --- a/modules/structs/mirror.go +++ b/modules/structs/mirror.go @@ -1,6 +1,5 @@ // Copyright 2021 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/miscellaneous.go b/modules/structs/miscellaneous.go index c21c466cb0..596a551e0d 100644 --- a/modules/structs/miscellaneous.go +++ b/modules/structs/miscellaneous.go @@ -1,6 +1,5 @@ // Copyright 2015 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/nodeinfo.go b/modules/structs/nodeinfo.go index 6fd1eb624a..802c8d3e57 100644 --- a/modules/structs/nodeinfo.go +++ b/modules/structs/nodeinfo.go @@ -1,6 +1,5 @@ // Copyright 2021 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/notifications.go b/modules/structs/notifications.go index 3fd9088ce3..7fbf4cb46d 100644 --- a/modules/structs/notifications.go +++ b/modules/structs/notifications.go @@ -1,6 +1,5 @@ // Copyright 2019 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/org.go b/modules/structs/org.go index 1e98c59ba4..b4c58623fd 100644 --- a/modules/structs/org.go +++ b/modules/structs/org.go @@ -1,6 +1,5 @@ // Copyright 2015 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/org_member.go b/modules/structs/org_member.go index 3b2a8b599a..2df5099de9 100644 --- a/modules/structs/org_member.go +++ b/modules/structs/org_member.go @@ -1,6 +1,5 @@ // Copyright 2016 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/org_team.go b/modules/structs/org_team.go index 10bd9e62ce..95db0debad 100644 --- a/modules/structs/org_team.go +++ b/modules/structs/org_team.go @@ -1,7 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2018 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/org_type.go b/modules/structs/org_type.go index 4401a2801c..69f323fa99 100644 --- a/modules/structs/org_type.go +++ b/modules/structs/org_type.go @@ -1,6 +1,5 @@ // Copyright 2019 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/package.go b/modules/structs/package.go index fbdd6c90aa..0059535bea 100644 --- a/modules/structs/package.go +++ b/modules/structs/package.go @@ -1,6 +1,5 @@ // Copyright 2021 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/pull.go b/modules/structs/pull.go index f627241b26..f64bb83af9 100644 --- a/modules/structs/pull.go +++ b/modules/structs/pull.go @@ -1,6 +1,5 @@ // Copyright 2016 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/pull_review.go b/modules/structs/pull_review.go index ca2af48657..810be8f521 100644 --- a/modules/structs/pull_review.go +++ b/modules/structs/pull_review.go @@ -1,6 +1,5 @@ // Copyright 2020 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/release.go b/modules/structs/release.go index 38ce60bbe2..3fe40389b1 100644 --- a/modules/structs/release.go +++ b/modules/structs/release.go @@ -1,6 +1,5 @@ // Copyright 2016 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/repo.go b/modules/structs/repo.go index cf6601704e..16f3d9dd26 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -1,6 +1,5 @@ // Copyright 2014 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/repo_branch.go b/modules/structs/repo_branch.go index 1f3bc04e86..864cb8f50a 100644 --- a/modules/structs/repo_branch.go +++ b/modules/structs/repo_branch.go @@ -1,6 +1,5 @@ // Copyright 2016 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/repo_collaborator.go b/modules/structs/repo_collaborator.go index 2f9c8992a1..946a6ec7e7 100644 --- a/modules/structs/repo_collaborator.go +++ b/modules/structs/repo_collaborator.go @@ -1,6 +1,5 @@ // Copyright 2016 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/repo_commit.go b/modules/structs/repo_commit.go index 55a516a975..b3e98df195 100644 --- a/modules/structs/repo_commit.go +++ b/modules/structs/repo_commit.go @@ -1,7 +1,6 @@ // Copyright 2018 The Gogs Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/repo_file.go b/modules/structs/repo_file.go index ce1a9fe4be..328d7e47c8 100644 --- a/modules/structs/repo_file.go +++ b/modules/structs/repo_file.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/repo_key.go b/modules/structs/repo_key.go index 29928bd97e..27b9d05a75 100644 --- a/modules/structs/repo_key.go +++ b/modules/structs/repo_key.go @@ -1,6 +1,5 @@ // Copyright 2015 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/repo_note.go b/modules/structs/repo_note.go index bddc945a5c..4eaf5a255d 100644 --- a/modules/structs/repo_note.go +++ b/modules/structs/repo_note.go @@ -1,6 +1,5 @@ // Copyright 2021 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/repo_refs.go b/modules/structs/repo_refs.go index 0bf4b94ae1..6ffbc74a51 100644 --- a/modules/structs/repo_refs.go +++ b/modules/structs/repo_refs.go @@ -1,6 +1,5 @@ // Copyright 2018 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/repo_tag.go b/modules/structs/repo_tag.go index 80ee1ccf17..4a7d895288 100644 --- a/modules/structs/repo_tag.go +++ b/modules/structs/repo_tag.go @@ -1,6 +1,5 @@ // Copyright 2019 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/repo_topic.go b/modules/structs/repo_topic.go index 294d56a953..fea193e86b 100644 --- a/modules/structs/repo_topic.go +++ b/modules/structs/repo_topic.go @@ -1,6 +1,5 @@ // Copyright 2019 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/repo_tree.go b/modules/structs/repo_tree.go index 58aa3b8339..86b221e1fe 100644 --- a/modules/structs/repo_tree.go +++ b/modules/structs/repo_tree.go @@ -1,6 +1,5 @@ // Copyright 2018 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/repo_watch.go b/modules/structs/repo_watch.go index 606785a4fd..2e89a9eefc 100644 --- a/modules/structs/repo_watch.go +++ b/modules/structs/repo_watch.go @@ -1,6 +1,5 @@ // Copyright 2017 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/repo_wiki.go b/modules/structs/repo_wiki.go index 09e21387df..3df5a0be99 100644 --- a/modules/structs/repo_wiki.go +++ b/modules/structs/repo_wiki.go @@ -1,6 +1,5 @@ // Copyright 2021 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/settings.go b/modules/structs/settings.go index 90c4a2107b..e48b1a493d 100644 --- a/modules/structs/settings.go +++ b/modules/structs/settings.go @@ -1,6 +1,5 @@ // Copyright 2020 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/status.go b/modules/structs/status.go index ed42b24be8..c1d8b902ec 100644 --- a/modules/structs/status.go +++ b/modules/structs/status.go @@ -1,6 +1,5 @@ // Copyright 2017 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/task.go b/modules/structs/task.go index e83d0437ce..c73e51b1ab 100644 --- a/modules/structs/task.go +++ b/modules/structs/task.go @@ -1,6 +1,5 @@ // Copyright 2019 Gitea. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/user.go b/modules/structs/user.go index 81516894a5..c5e96f3356 100644 --- a/modules/structs/user.go +++ b/modules/structs/user.go @@ -1,6 +1,5 @@ // Copyright 2014 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/user_app.go b/modules/structs/user_app.go index 4cfa5538c8..3a5ae34df1 100644 --- a/modules/structs/user_app.go +++ b/modules/structs/user_app.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/user_email.go b/modules/structs/user_email.go index a72b04119a..6a11e040af 100644 --- a/modules/structs/user_email.go +++ b/modules/structs/user_email.go @@ -1,6 +1,5 @@ // Copyright 2015 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/user_gpgkey.go b/modules/structs/user_gpgkey.go index a2ebf7df93..ff9b0aea1d 100644 --- a/modules/structs/user_gpgkey.go +++ b/modules/structs/user_gpgkey.go @@ -1,6 +1,5 @@ // Copyright 2017 Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs diff --git a/modules/structs/user_key.go b/modules/structs/user_key.go index ee487607c3..08eed59a89 100644 --- a/modules/structs/user_key.go +++ b/modules/structs/user_key.go @@ -1,6 +1,5 @@ // Copyright 2015 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: MIT package structs |