From 59e9fa191b252ca037662849c25c52e952fb099c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=8A=E1=B4=8F=E1=B4=87=20=E1=B4=84=CA=9C=E1=B4=87?= =?UTF-8?q?=C9=B4?= Date: Thu, 8 Jan 2026 19:32:15 -0500 Subject: [PATCH] chore: remove all MIT license file headers (#8083) Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- conf/embed.go | 4 ---- conf/embed_test.go | 4 ---- gogs.go | 4 ---- internal/app/api.go | 4 ---- internal/app/api_test.go | 4 ---- internal/app/metrics.go | 4 ---- internal/auth/auth.go | 4 ---- internal/auth/github/config.go | 4 ---- internal/auth/github/provider.go | 4 ---- internal/auth/ldap/config.go | 4 ---- internal/auth/ldap/provider.go | 4 ---- internal/auth/pam/config.go | 4 ---- internal/auth/pam/pam.go | 4 ---- internal/auth/pam/pam_stub.go | 4 ---- internal/auth/pam/provider.go | 4 ---- internal/auth/smtp/config.go | 4 ---- internal/auth/smtp/provider.go | 4 ---- internal/authutil/basic.go | 4 ---- internal/authutil/basic_test.go | 4 ---- internal/avatar/avatar.go | 4 ---- internal/avatar/avatar_test.go | 4 ---- internal/cmd/admin.go | 4 ---- internal/cmd/backup.go | 4 ---- internal/cmd/cert.go | 5 ++--- internal/cmd/cmd.go | 4 ---- internal/cmd/hook.go | 4 ---- internal/cmd/import.go | 4 ---- internal/cmd/restore.go | 4 ---- internal/cmd/serv.go | 4 ---- internal/cmd/web.go | 4 ---- internal/conf/computed.go | 4 ---- internal/conf/computed_test.go | 4 ---- internal/conf/conf.go | 12 ++++-------- internal/conf/conf_test.go | 4 ---- internal/conf/log.go | 4 ---- internal/conf/log_test.go | 4 ---- internal/conf/mocks.go | 4 ---- internal/conf/static.go | 4 ---- internal/conf/static_minwinsvc.go | 4 ---- internal/conf/static_test.go | 4 ---- internal/conf/utils.go | 4 ---- internal/conf/utils_test.go | 4 ---- internal/context/api.go | 4 ---- internal/context/api_org.go | 4 ---- internal/context/auth.go | 4 ---- internal/context/context.go | 4 ---- internal/context/notice.go | 4 ---- internal/context/org.go | 4 ---- internal/context/repo.go | 4 ---- internal/context/user.go | 4 ---- internal/cron/cron.go | 4 ---- internal/cryptoutil/aes.go | 4 ---- internal/cryptoutil/aes_test.go | 4 ---- internal/cryptoutil/md5.go | 4 ---- internal/cryptoutil/md5_test.go | 4 ---- internal/cryptoutil/sha.go | 4 ---- internal/cryptoutil/sha_test.go | 4 ---- internal/database/access_tokens.go | 4 ---- internal/database/access_tokens_test.go | 4 ---- internal/database/actions.go | 4 ---- internal/database/actions_test.go | 4 ---- internal/database/attachment.go | 4 ---- internal/database/backup_test.go | 4 ---- internal/database/comment.go | 4 ---- internal/database/database.go | 4 ---- internal/database/error.go | 4 ---- internal/database/errors/errors.go | 4 ---- internal/database/errors/repo.go | 4 ---- internal/database/issue.go | 4 ---- internal/database/issue_label.go | 4 ---- internal/database/issue_mail.go | 4 ---- internal/database/lfs.go | 4 ---- internal/database/lfs_test.go | 4 ---- internal/database/login_source_files.go | 4 ---- internal/database/login_source_files_test.go | 4 ---- internal/database/login_sources.go | 4 ---- internal/database/login_sources_test.go | 4 ---- internal/database/main_test.go | 4 ---- internal/database/migrations/main_test.go | 4 ---- internal/database/migrations/migrations.go | 4 ---- internal/database/migrations/v20.go | 4 ---- internal/database/migrations/v20_test.go | 4 ---- internal/database/migrations/v21.go | 4 ---- internal/database/migrations/v21_test.go | 4 ---- internal/database/milestone.go | 4 ---- internal/database/mirror.go | 4 ---- internal/database/mirror_test.go | 4 ---- internal/database/models.go | 4 ---- internal/database/notices.go | 4 ---- internal/database/notices_test.go | 4 ---- internal/database/org.go | 4 ---- internal/database/org_team.go | 4 ---- internal/database/organizations.go | 4 ---- internal/database/organizations_test.go | 4 ---- internal/database/permissions.go | 4 ---- internal/database/permissions_test.go | 4 ---- internal/database/public_keys.go | 6 +----- internal/database/public_keys_test.go | 4 ---- internal/database/pull.go | 4 ---- internal/database/release.go | 4 ---- internal/database/repo.go | 12 ++++-------- internal/database/repo_branch.go | 4 ---- internal/database/repo_collaboration.go | 4 ---- internal/database/repo_editor.go | 4 ---- internal/database/repo_editor_test.go | 4 ---- internal/database/repo_tag.go | 4 ---- internal/database/repositories.go | 4 ---- internal/database/repositories_test.go | 4 ---- internal/database/ssh_key.go | 14 +++++--------- internal/database/ssh_key_test.go | 4 ---- internal/database/two_factor.go | 4 ---- internal/database/two_factors.go | 4 ---- internal/database/two_factors_test.go | 4 ---- internal/database/update.go | 4 ---- internal/database/users.go | 4 ---- internal/database/users_test.go | 6 +----- internal/database/webhook.go | 4 ---- internal/database/webhook_dingtalk.go | 4 ---- internal/database/webhook_discord.go | 4 ---- internal/database/webhook_slack.go | 4 ---- internal/database/wiki.go | 6 +----- internal/dbtest/dbtest.go | 4 ---- internal/dbutil/dsn.go | 4 ---- internal/dbutil/dsn_test.go | 4 ---- internal/dbutil/logger.go | 4 ---- internal/dbutil/string.go | 4 ---- internal/dbutil/string_test.go | 4 ---- internal/email/email.go | 4 ---- internal/email/message.go | 4 ---- internal/errutil/errutil.go | 4 ---- internal/errutil/errutil_test.go | 4 ---- internal/form/admin.go | 4 ---- internal/form/auth.go | 4 ---- internal/form/form.go | 4 ---- internal/form/org.go | 4 ---- internal/form/repo.go | 4 ---- internal/form/user.go | 4 ---- internal/gitutil/diff.go | 4 ---- internal/gitutil/diff_test.go | 4 ---- internal/gitutil/error.go | 4 ---- internal/gitutil/error_test.go | 4 ---- internal/gitutil/mocks.go | 4 ---- internal/gitutil/module.go | 4 ---- internal/gitutil/pull_request.go | 4 ---- internal/gitutil/pull_request_test.go | 4 ---- internal/gitutil/submodule.go | 4 ---- internal/gitutil/submodule_test.go | 4 ---- internal/gitutil/tag.go | 4 ---- internal/gitutil/tag_test.go | 4 ---- internal/httplib/httplib.go | 1 - internal/lfsutil/oid.go | 4 ---- internal/lfsutil/oid_test.go | 4 ---- internal/lfsutil/storage.go | 4 ---- internal/lfsutil/storage_test.go | 4 ---- internal/markup/markdown.go | 4 ---- internal/markup/markdown_test.go | 4 ---- internal/markup/markup.go | 4 ---- internal/markup/markup_test.go | 4 ---- internal/markup/orgmode.go | 4 ---- internal/markup/sanitizer.go | 4 ---- internal/markup/sanitizer_test.go | 4 ---- internal/mocks/locale.go | 4 ---- internal/netutil/netutil.go | 4 ---- internal/netutil/netutil_test.go | 4 ---- internal/osutil/error.go | 4 ---- internal/osutil/error_test.go | 4 ---- internal/osutil/osutil.go | 4 ---- internal/osutil/osutil_test.go | 4 ---- internal/pathutil/pathutil.go | 4 ---- internal/pathutil/pathutil_test.go | 4 ---- internal/process/manager.go | 4 ---- internal/repoutil/repoutil.go | 4 ---- internal/repoutil/repoutil_test.go | 4 ---- internal/route/admin/admin.go | 4 ---- internal/route/admin/auths.go | 4 ---- internal/route/admin/notice.go | 4 ---- internal/route/admin/orgs.go | 4 ---- internal/route/admin/repos.go | 4 ---- internal/route/admin/users.go | 4 ---- internal/route/api/v1/admin/org.go | 4 ---- internal/route/api/v1/admin/org_repo.go | 4 ---- internal/route/api/v1/admin/org_team.go | 4 ---- internal/route/api/v1/admin/repo.go | 4 ---- internal/route/api/v1/admin/user.go | 4 ---- internal/route/api/v1/api.go | 4 ---- internal/route/api/v1/convert/convert.go | 4 ---- internal/route/api/v1/convert/utils.go | 4 ---- internal/route/api/v1/misc/markdown.go | 4 ---- internal/route/api/v1/org/org.go | 4 ---- internal/route/api/v1/org/team.go | 4 ---- internal/route/api/v1/repo/branch.go | 4 ---- internal/route/api/v1/repo/collaborators.go | 4 ---- internal/route/api/v1/repo/commits.go | 4 ---- internal/route/api/v1/repo/contents.go | 4 ---- internal/route/api/v1/repo/file.go | 4 ---- internal/route/api/v1/repo/hook.go | 4 ---- internal/route/api/v1/repo/issue.go | 4 ---- internal/route/api/v1/repo/issue_comment.go | 3 --- internal/route/api/v1/repo/issue_label.go | 4 ---- internal/route/api/v1/repo/key.go | 4 ---- internal/route/api/v1/repo/label.go | 4 ---- internal/route/api/v1/repo/milestone.go | 4 ---- internal/route/api/v1/repo/repo.go | 4 ---- internal/route/api/v1/repo/tag.go | 4 ---- internal/route/api/v1/repo/tree.go | 4 ---- internal/route/api/v1/user/access_tokens.go | 4 ---- internal/route/api/v1/user/email.go | 4 ---- internal/route/api/v1/user/follower.go | 4 ---- internal/route/api/v1/user/key.go | 4 ---- internal/route/api/v1/user/user.go | 4 ---- internal/route/dev/template.go | 4 ---- internal/route/home.go | 4 ---- internal/route/install.go | 4 ---- internal/route/lfs/basic.go | 4 ---- internal/route/lfs/basic_test.go | 4 ---- internal/route/lfs/batch.go | 4 ---- internal/route/lfs/batch_test.go | 4 ---- internal/route/lfs/main_test.go | 4 ---- internal/route/lfs/route.go | 4 ---- internal/route/lfs/route_test.go | 4 ---- internal/route/org/members.go | 4 ---- internal/route/org/org.go | 4 ---- internal/route/org/setting.go | 4 ---- internal/route/org/teams.go | 4 ---- internal/route/repo/branch.go | 4 ---- internal/route/repo/commit.go | 4 ---- internal/route/repo/download.go | 4 ---- internal/route/repo/editor.go | 4 ---- internal/route/repo/http.go | 4 ---- internal/route/repo/issue.go | 4 ---- internal/route/repo/pull.go | 4 ---- internal/route/repo/release.go | 4 ---- internal/route/repo/repo.go | 4 ---- internal/route/repo/setting.go | 4 ---- internal/route/repo/tasks.go | 4 ---- internal/route/repo/view.go | 4 ---- internal/route/repo/webhook.go | 4 ---- internal/route/repo/webhook_test.go | 4 ---- internal/route/repo/wiki.go | 4 ---- internal/route/user/auth.go | 4 ---- internal/route/user/home.go | 4 ---- internal/route/user/profile.go | 4 ---- internal/route/user/setting.go | 4 ---- internal/semverutil/semverutil.go | 4 ---- internal/semverutil/semverutil_test.go | 4 ---- internal/ssh/ssh.go | 4 ---- internal/strutil/strutil.go | 4 ---- internal/strutil/strutil_test.go | 4 ---- internal/sync/exclusive_pool.go | 4 ---- internal/sync/status_table.go | 4 ---- internal/sync/unique_queue.go | 4 ---- internal/template/highlight/highlight.go | 4 ---- internal/template/template.go | 4 ---- internal/testutil/exec.go | 4 ---- internal/testutil/exec_test.go | 4 ---- internal/testutil/golden.go | 6 +----- internal/testutil/golden_test.go | 4 ---- internal/testutil/noop_logger.go | 4 ---- internal/testutil/testutil.go | 4 ---- internal/testutil/testutil_test.go | 4 ---- internal/tool/file.go | 4 ---- internal/tool/path.go | 4 ---- internal/tool/path_test.go | 4 ---- internal/tool/tool.go | 4 ---- internal/userutil/userutil.go | 4 ---- internal/userutil/userutil_test.go | 4 ---- mockgen.go | 4 ---- public/embed.go | 4 ---- templates/embed.go | 4 ---- 269 files changed, 19 insertions(+), 1088 deletions(-) diff --git a/conf/embed.go b/conf/embed.go index 14358cd71..d3bb0725b 100644 --- a/conf/embed.go +++ b/conf/embed.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package conf import ( diff --git a/conf/embed_test.go b/conf/embed_test.go index f10cdf29b..a93ebc408 100644 --- a/conf/embed_test.go +++ b/conf/embed_test.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package conf import ( diff --git a/gogs.go b/gogs.go index deaeaf434..6484fcb41 100644 --- a/gogs.go +++ b/gogs.go @@ -1,9 +1,5 @@ //go:build go1.18 -// 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. - // Gogs is a painless self-hosted Git Service. package main diff --git a/internal/app/api.go b/internal/app/api.go index 94c2bbc02..eebb7ccc8 100644 --- a/internal/app/api.go +++ b/internal/app/api.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package app import ( diff --git a/internal/app/api_test.go b/internal/app/api_test.go index 8b123078d..ad78853b5 100644 --- a/internal/app/api_test.go +++ b/internal/app/api_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package app import ( diff --git a/internal/app/metrics.go b/internal/app/metrics.go index 45a9b74e9..e1d327e30 100644 --- a/internal/app/metrics.go +++ b/internal/app/metrics.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package app import ( diff --git a/internal/auth/auth.go b/internal/auth/auth.go index 44070f604..6dfc6f808 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -1,7 +1,3 @@ -// 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. - package auth import ( diff --git a/internal/auth/github/config.go b/internal/auth/github/config.go index e46367431..c37c4768c 100644 --- a/internal/auth/github/config.go +++ b/internal/auth/github/config.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package github import ( diff --git a/internal/auth/github/provider.go b/internal/auth/github/provider.go index 4d15c6a4d..cb1c01e89 100644 --- a/internal/auth/github/provider.go +++ b/internal/auth/github/provider.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package github import ( diff --git a/internal/auth/ldap/config.go b/internal/auth/ldap/config.go index b954df296..edbdc1ade 100644 --- a/internal/auth/ldap/config.go +++ b/internal/auth/ldap/config.go @@ -1,7 +1,3 @@ -// 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. - // Package ldap provide functions & structure to query a LDAP ldap directory. // For now, it's mainly tested again an MS Active Directory service, see README.md for more information. package ldap diff --git a/internal/auth/ldap/provider.go b/internal/auth/ldap/provider.go index c7077d8e0..9b2f8ee9d 100644 --- a/internal/auth/ldap/provider.go +++ b/internal/auth/ldap/provider.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package ldap import ( diff --git a/internal/auth/pam/config.go b/internal/auth/pam/config.go index 7a6bc0cc7..0bfec65c3 100644 --- a/internal/auth/pam/config.go +++ b/internal/auth/pam/config.go @@ -1,7 +1,3 @@ -// 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. - package pam // Config contains configuration for PAM authentication. diff --git a/internal/auth/pam/pam.go b/internal/auth/pam/pam.go index 14f041ae7..07b8577bf 100644 --- a/internal/auth/pam/pam.go +++ b/internal/auth/pam/pam.go @@ -1,9 +1,5 @@ //go:build pam -// 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. - package pam import ( diff --git a/internal/auth/pam/pam_stub.go b/internal/auth/pam/pam_stub.go index 597b61d1f..d1421b53e 100644 --- a/internal/auth/pam/pam_stub.go +++ b/internal/auth/pam/pam_stub.go @@ -1,9 +1,5 @@ //go:build !pam -// 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. - package pam import ( diff --git a/internal/auth/pam/provider.go b/internal/auth/pam/provider.go index fc1ff6bb1..8c5bb0ef9 100644 --- a/internal/auth/pam/provider.go +++ b/internal/auth/pam/provider.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package pam import ( diff --git a/internal/auth/smtp/config.go b/internal/auth/smtp/config.go index 33985f451..a654dc4af 100644 --- a/internal/auth/smtp/config.go +++ b/internal/auth/smtp/config.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package smtp import ( diff --git a/internal/auth/smtp/provider.go b/internal/auth/smtp/provider.go index cbb91cf58..4bb7f90db 100644 --- a/internal/auth/smtp/provider.go +++ b/internal/auth/smtp/provider.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package smtp import ( diff --git a/internal/authutil/basic.go b/internal/authutil/basic.go index 891cf762f..28107a725 100644 --- a/internal/authutil/basic.go +++ b/internal/authutil/basic.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package authutil import ( diff --git a/internal/authutil/basic_test.go b/internal/authutil/basic_test.go index 6e744e55e..693da7657 100644 --- a/internal/authutil/basic_test.go +++ b/internal/authutil/basic_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package authutil import ( diff --git a/internal/avatar/avatar.go b/internal/avatar/avatar.go index b66dfc218..2904072c0 100644 --- a/internal/avatar/avatar.go +++ b/internal/avatar/avatar.go @@ -1,7 +1,3 @@ -// 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. - package avatar import ( diff --git a/internal/avatar/avatar_test.go b/internal/avatar/avatar_test.go index 225ae68e4..022747426 100644 --- a/internal/avatar/avatar_test.go +++ b/internal/avatar/avatar_test.go @@ -1,7 +1,3 @@ -// 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. - package avatar import ( diff --git a/internal/cmd/admin.go b/internal/cmd/admin.go index f7c3b0fe0..452e1a48f 100644 --- a/internal/cmd/admin.go +++ b/internal/cmd/admin.go @@ -1,7 +1,3 @@ -// 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. - package cmd import ( diff --git a/internal/cmd/backup.go b/internal/cmd/backup.go index 87767e617..4de6cb247 100644 --- a/internal/cmd/backup.go +++ b/internal/cmd/backup.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package cmd import ( diff --git a/internal/cmd/cert.go b/internal/cmd/cert.go index dbf1ccf1d..e90c11687 100644 --- a/internal/cmd/cert.go +++ b/internal/cmd/cert.go @@ -1,6 +1,5 @@ // Copyright 2009 The Go Authors. All rights reserved. -// Copyright 2014 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style +// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cmd @@ -155,7 +154,7 @@ func runCert(ctx *cli.Context) error { } log.Println("Written cert.pem") - keyOut, err := os.OpenFile("key.pem", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600) + keyOut, err := os.OpenFile("key.pem", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0o600) if err != nil { log.Fatalf("Failed to open key.pem for writing: %v\n", err) } diff --git a/internal/cmd/cmd.go b/internal/cmd/cmd.go index 4f1725485..90b3ece2d 100644 --- a/internal/cmd/cmd.go +++ b/internal/cmd/cmd.go @@ -1,7 +1,3 @@ -// 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. - package cmd import ( diff --git a/internal/cmd/hook.go b/internal/cmd/hook.go index 109bd6fc2..030aa2202 100644 --- a/internal/cmd/hook.go +++ b/internal/cmd/hook.go @@ -1,7 +1,3 @@ -// 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. - package cmd import ( diff --git a/internal/cmd/import.go b/internal/cmd/import.go index 03ef6b869..e9ba2a48a 100644 --- a/internal/cmd/import.go +++ b/internal/cmd/import.go @@ -1,7 +1,3 @@ -// 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. - package cmd import ( diff --git a/internal/cmd/restore.go b/internal/cmd/restore.go index 871c3be93..f4e5f17d5 100644 --- a/internal/cmd/restore.go +++ b/internal/cmd/restore.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package cmd import ( diff --git a/internal/cmd/serv.go b/internal/cmd/serv.go index 81afc16b7..38a69c9aa 100644 --- a/internal/cmd/serv.go +++ b/internal/cmd/serv.go @@ -1,7 +1,3 @@ -// 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. - package cmd import ( diff --git a/internal/cmd/web.go b/internal/cmd/web.go index 6a49b1391..fae34ddd3 100644 --- a/internal/cmd/web.go +++ b/internal/cmd/web.go @@ -1,7 +1,3 @@ -// 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. - package cmd import ( diff --git a/internal/conf/computed.go b/internal/conf/computed.go index 95acf64f6..6f9afe9d8 100644 --- a/internal/conf/computed.go +++ b/internal/conf/computed.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package conf import ( diff --git a/internal/conf/computed_test.go b/internal/conf/computed_test.go index 8ed49a53a..04dc0993d 100644 --- a/internal/conf/computed_test.go +++ b/internal/conf/computed_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package conf import ( diff --git a/internal/conf/conf.go b/internal/conf/conf.go index 83e1ed2f6..b71a833fa 100644 --- a/internal/conf/conf.go +++ b/internal/conf/conf.go @@ -1,7 +1,3 @@ -// 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. - package conf import ( @@ -108,8 +104,8 @@ func Init(customConf string) error { if err != nil { return errors.Wrapf(err, "parse '[server] UNIX_SOCKET_PERMISSION' %q", Server.UnixSocketPermission) } - if unixSocketMode > 0777 { - unixSocketMode = 0666 + if unixSocketMode > 0o777 { + unixSocketMode = 0o666 } Server.UnixSocketMode = os.FileMode(unixSocketMode) @@ -127,9 +123,9 @@ func Init(customConf string) error { if !SSH.Disabled { if !SSH.StartBuiltinServer { - if err := os.MkdirAll(SSH.RootPath, 0700); err != nil { + if err := os.MkdirAll(SSH.RootPath, 0o700); err != nil { return errors.Wrap(err, "create SSH root directory") - } else if err = os.MkdirAll(SSH.KeyTestPath, 0644); err != nil { + } else if err = os.MkdirAll(SSH.KeyTestPath, 0o644); err != nil { return errors.Wrap(err, "create SSH key test directory") } } else { diff --git a/internal/conf/conf_test.go b/internal/conf/conf_test.go index 294c4f344..b741b465e 100644 --- a/internal/conf/conf_test.go +++ b/internal/conf/conf_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package conf import ( diff --git a/internal/conf/log.go b/internal/conf/log.go index 8ac8ec96a..044247490 100644 --- a/internal/conf/log.go +++ b/internal/conf/log.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package conf import ( diff --git a/internal/conf/log_test.go b/internal/conf/log_test.go index a9346997b..7bd23704b 100644 --- a/internal/conf/log_test.go +++ b/internal/conf/log_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package conf import ( diff --git a/internal/conf/mocks.go b/internal/conf/mocks.go index efdd3aeb8..002d13cd8 100644 --- a/internal/conf/mocks.go +++ b/internal/conf/mocks.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package conf import ( diff --git a/internal/conf/static.go b/internal/conf/static.go index 016fd139c..8d242a2bf 100644 --- a/internal/conf/static.go +++ b/internal/conf/static.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package conf import ( diff --git a/internal/conf/static_minwinsvc.go b/internal/conf/static_minwinsvc.go index b946398f7..3021e7adf 100644 --- a/internal/conf/static_minwinsvc.go +++ b/internal/conf/static_minwinsvc.go @@ -1,9 +1,5 @@ //go:build minwinsvc -// 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. - package conf import ( diff --git a/internal/conf/static_test.go b/internal/conf/static_test.go index e9b9cb022..f3e2a6d6f 100644 --- a/internal/conf/static_test.go +++ b/internal/conf/static_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package conf import ( diff --git a/internal/conf/utils.go b/internal/conf/utils.go index f2662dc34..bf63a3c7a 100644 --- a/internal/conf/utils.go +++ b/internal/conf/utils.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package conf import ( diff --git a/internal/conf/utils_test.go b/internal/conf/utils_test.go index 3d5fafe3a..f481508fb 100644 --- a/internal/conf/utils_test.go +++ b/internal/conf/utils_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package conf import ( diff --git a/internal/context/api.go b/internal/context/api.go index 68afa8e7a..8c8ff46ce 100644 --- a/internal/context/api.go +++ b/internal/context/api.go @@ -1,7 +1,3 @@ -// 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. - package context import ( diff --git a/internal/context/api_org.go b/internal/context/api_org.go index e077928e5..c9b737dde 100644 --- a/internal/context/api_org.go +++ b/internal/context/api_org.go @@ -1,7 +1,3 @@ -// 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. - package context import ( diff --git a/internal/context/auth.go b/internal/context/auth.go index 62b26b266..f0a6ad6a9 100644 --- a/internal/context/auth.go +++ b/internal/context/auth.go @@ -1,7 +1,3 @@ -// 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. - package context import ( diff --git a/internal/context/context.go b/internal/context/context.go index 32baec36b..51594a112 100644 --- a/internal/context/context.go +++ b/internal/context/context.go @@ -1,7 +1,3 @@ -// 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. - package context import ( diff --git a/internal/context/notice.go b/internal/context/notice.go index 6f825fd8d..f276462f2 100644 --- a/internal/context/notice.go +++ b/internal/context/notice.go @@ -1,7 +1,3 @@ -// Copyright 2019 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. - package context import ( diff --git a/internal/context/org.go b/internal/context/org.go index 7fb9560b8..71c4f4b31 100644 --- a/internal/context/org.go +++ b/internal/context/org.go @@ -1,7 +1,3 @@ -// 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. - package context import ( diff --git a/internal/context/repo.go b/internal/context/repo.go index 802a55a46..38f65977e 100644 --- a/internal/context/repo.go +++ b/internal/context/repo.go @@ -1,7 +1,3 @@ -// 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. - package context import ( diff --git a/internal/context/user.go b/internal/context/user.go index d6ea227b4..04042c5c8 100644 --- a/internal/context/user.go +++ b/internal/context/user.go @@ -1,7 +1,3 @@ -// Copyright 2018 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package context import ( diff --git a/internal/cron/cron.go b/internal/cron/cron.go index 36072ab7f..52344f778 100644 --- a/internal/cron/cron.go +++ b/internal/cron/cron.go @@ -1,7 +1,3 @@ -// 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. - package cron import ( diff --git a/internal/cryptoutil/aes.go b/internal/cryptoutil/aes.go index ec037b640..bc1a7b5b4 100644 --- a/internal/cryptoutil/aes.go +++ b/internal/cryptoutil/aes.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package cryptoutil import ( diff --git a/internal/cryptoutil/aes_test.go b/internal/cryptoutil/aes_test.go index 0e34bcb08..2ecc0c185 100644 --- a/internal/cryptoutil/aes_test.go +++ b/internal/cryptoutil/aes_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package cryptoutil import ( diff --git a/internal/cryptoutil/md5.go b/internal/cryptoutil/md5.go index 249f3ed51..1436e637d 100644 --- a/internal/cryptoutil/md5.go +++ b/internal/cryptoutil/md5.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package cryptoutil import ( diff --git a/internal/cryptoutil/md5_test.go b/internal/cryptoutil/md5_test.go index d3986a327..20a6ca1e0 100644 --- a/internal/cryptoutil/md5_test.go +++ b/internal/cryptoutil/md5_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package cryptoutil import ( diff --git a/internal/cryptoutil/sha.go b/internal/cryptoutil/sha.go index d829d526d..e36b5c44c 100644 --- a/internal/cryptoutil/sha.go +++ b/internal/cryptoutil/sha.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package cryptoutil import ( diff --git a/internal/cryptoutil/sha_test.go b/internal/cryptoutil/sha_test.go index a3cbf4842..bc9c43441 100644 --- a/internal/cryptoutil/sha_test.go +++ b/internal/cryptoutil/sha_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package cryptoutil import ( diff --git a/internal/database/access_tokens.go b/internal/database/access_tokens.go index 045596bc5..002f462fe 100644 --- a/internal/database/access_tokens.go +++ b/internal/database/access_tokens.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/access_tokens_test.go b/internal/database/access_tokens_test.go index 730ece899..b7926185b 100644 --- a/internal/database/access_tokens_test.go +++ b/internal/database/access_tokens_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/actions.go b/internal/database/actions.go index 2c4c186a2..319c3b3b9 100644 --- a/internal/database/actions.go +++ b/internal/database/actions.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/actions_test.go b/internal/database/actions_test.go index d743ae2bf..17dac6f8e 100644 --- a/internal/database/actions_test.go +++ b/internal/database/actions_test.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package database import ( diff --git a/internal/database/attachment.go b/internal/database/attachment.go index 532a1ffeb..432d22c2f 100644 --- a/internal/database/attachment.go +++ b/internal/database/attachment.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/backup_test.go b/internal/database/backup_test.go index 16044eb64..1e78f2575 100644 --- a/internal/database/backup_test.go +++ b/internal/database/backup_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/comment.go b/internal/database/comment.go index c2377ec27..167148e16 100644 --- a/internal/database/comment.go +++ b/internal/database/comment.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/database.go b/internal/database/database.go index af974f951..7e020fc63 100644 --- a/internal/database/database.go +++ b/internal/database/database.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/error.go b/internal/database/error.go index 82445788b..9d45d368b 100644 --- a/internal/database/error.go +++ b/internal/database/error.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/errors/errors.go b/internal/database/errors/errors.go index 99c106712..2bbef15a1 100644 --- a/internal/database/errors/errors.go +++ b/internal/database/errors/errors.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package errors import "errors" diff --git a/internal/database/errors/repo.go b/internal/database/errors/repo.go index ba6c502cf..beda5bae6 100644 --- a/internal/database/errors/repo.go +++ b/internal/database/errors/repo.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package errors import ( diff --git a/internal/database/issue.go b/internal/database/issue.go index eae02c06e..25b961bf0 100644 --- a/internal/database/issue.go +++ b/internal/database/issue.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/issue_label.go b/internal/database/issue_label.go index 73306e53a..5a112c93b 100644 --- a/internal/database/issue_label.go +++ b/internal/database/issue_label.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/issue_mail.go b/internal/database/issue_mail.go index 279b60b42..704f17a1a 100644 --- a/internal/database/issue_mail.go +++ b/internal/database/issue_mail.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/lfs.go b/internal/database/lfs.go index 01717000f..ef1346c97 100644 --- a/internal/database/lfs.go +++ b/internal/database/lfs.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/lfs_test.go b/internal/database/lfs_test.go index 6f6ef9a0e..b3d6d5395 100644 --- a/internal/database/lfs_test.go +++ b/internal/database/lfs_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/login_source_files.go b/internal/database/login_source_files.go index a3e7b602f..bc36df72c 100644 --- a/internal/database/login_source_files.go +++ b/internal/database/login_source_files.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/login_source_files_test.go b/internal/database/login_source_files_test.go index 7a00ddde6..2d1d7bf5c 100644 --- a/internal/database/login_source_files_test.go +++ b/internal/database/login_source_files_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/login_sources.go b/internal/database/login_sources.go index 7fb164361..272b2743e 100644 --- a/internal/database/login_sources.go +++ b/internal/database/login_sources.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/login_sources_test.go b/internal/database/login_sources_test.go index 508b674af..797fd1352 100644 --- a/internal/database/login_sources_test.go +++ b/internal/database/login_sources_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/main_test.go b/internal/database/main_test.go index e4938c987..26ac0884f 100644 --- a/internal/database/main_test.go +++ b/internal/database/main_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/migrations/main_test.go b/internal/database/migrations/main_test.go index ee13c3e3e..4d47135bc 100644 --- a/internal/database/migrations/main_test.go +++ b/internal/database/migrations/main_test.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package migrations import ( diff --git a/internal/database/migrations/migrations.go b/internal/database/migrations/migrations.go index 04c1e3636..f9a7cc7d6 100644 --- a/internal/database/migrations/migrations.go +++ b/internal/database/migrations/migrations.go @@ -1,7 +1,3 @@ -// 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. - package migrations import ( diff --git a/internal/database/migrations/v20.go b/internal/database/migrations/v20.go index bf58db5e3..fc033f090 100644 --- a/internal/database/migrations/v20.go +++ b/internal/database/migrations/v20.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package migrations import ( diff --git a/internal/database/migrations/v20_test.go b/internal/database/migrations/v20_test.go index 9bbf283fd..6f13df95a 100644 --- a/internal/database/migrations/v20_test.go +++ b/internal/database/migrations/v20_test.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package migrations import ( diff --git a/internal/database/migrations/v21.go b/internal/database/migrations/v21.go index 7eb97a7fa..dd39f8d28 100644 --- a/internal/database/migrations/v21.go +++ b/internal/database/migrations/v21.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package migrations import ( diff --git a/internal/database/migrations/v21_test.go b/internal/database/migrations/v21_test.go index 866e9074f..a20c94c1e 100644 --- a/internal/database/migrations/v21_test.go +++ b/internal/database/migrations/v21_test.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package migrations import ( diff --git a/internal/database/milestone.go b/internal/database/milestone.go index 971940f3e..5f7537116 100644 --- a/internal/database/milestone.go +++ b/internal/database/milestone.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/mirror.go b/internal/database/mirror.go index 059386077..ad34a3588 100644 --- a/internal/database/mirror.go +++ b/internal/database/mirror.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/mirror_test.go b/internal/database/mirror_test.go index 72da7ba25..fbe13f4b1 100644 --- a/internal/database/mirror_test.go +++ b/internal/database/mirror_test.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/models.go b/internal/database/models.go index 167e52099..4eb62d584 100644 --- a/internal/database/models.go +++ b/internal/database/models.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/notices.go b/internal/database/notices.go index d5feb7483..20a1e1b04 100644 --- a/internal/database/notices.go +++ b/internal/database/notices.go @@ -1,7 +1,3 @@ -// Copyright 2023 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. - package database import ( diff --git a/internal/database/notices_test.go b/internal/database/notices_test.go index e45196e40..e1720aa7c 100644 --- a/internal/database/notices_test.go +++ b/internal/database/notices_test.go @@ -1,7 +1,3 @@ -// Copyright 2023 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. - package database import ( diff --git a/internal/database/org.go b/internal/database/org.go index 8fae08be6..2db70d825 100644 --- a/internal/database/org.go +++ b/internal/database/org.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/org_team.go b/internal/database/org_team.go index f2a7c0713..05a6fea24 100644 --- a/internal/database/org_team.go +++ b/internal/database/org_team.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/organizations.go b/internal/database/organizations.go index 7c1cc68c1..c8d66ac52 100644 --- a/internal/database/organizations.go +++ b/internal/database/organizations.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package database import ( diff --git a/internal/database/organizations_test.go b/internal/database/organizations_test.go index 6c7b10e9c..aaa07bd74 100644 --- a/internal/database/organizations_test.go +++ b/internal/database/organizations_test.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package database import ( diff --git a/internal/database/permissions.go b/internal/database/permissions.go index 70990a1fa..6153a6178 100644 --- a/internal/database/permissions.go +++ b/internal/database/permissions.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/permissions_test.go b/internal/database/permissions_test.go index bb4bd2b7b..92e99bef8 100644 --- a/internal/database/permissions_test.go +++ b/internal/database/permissions_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/public_keys.go b/internal/database/public_keys.go index 8bdbd16a6..98fb7eafd 100644 --- a/internal/database/public_keys.go +++ b/internal/database/public_keys.go @@ -1,7 +1,3 @@ -// Copyright 2023 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. - package database import ( @@ -40,7 +36,7 @@ func (s *PublicKeysStore) RewriteAuthorizedKeys() error { } fpath := authorizedKeysPath() tempPath := fpath + ".tmp" - f, err := os.OpenFile(tempPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0600) + f, err := os.OpenFile(tempPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o600) if err != nil { return errors.Wrap(err, "create temporary file") } diff --git a/internal/database/public_keys_test.go b/internal/database/public_keys_test.go index b710cd50a..6c785add8 100644 --- a/internal/database/public_keys_test.go +++ b/internal/database/public_keys_test.go @@ -1,7 +1,3 @@ -// Copyright 2023 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. - package database import ( diff --git a/internal/database/pull.go b/internal/database/pull.go index 8e561f56f..70256cf88 100644 --- a/internal/database/pull.go +++ b/internal/database/pull.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/release.go b/internal/database/release.go index 2d2b81707..13910e834 100644 --- a/internal/database/release.go +++ b/internal/database/release.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/repo.go b/internal/database/repo.go index cb24ca700..976b14d41 100644 --- a/internal/database/repo.go +++ b/internal/database/repo.go @@ -1,7 +1,3 @@ -// 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. - package database import ( @@ -708,7 +704,7 @@ func (r *Repository) SavePatch(index int64, patch []byte) error { if err = os.MkdirAll(filepath.Dir(patchPath), os.ModePerm); err != nil { return err } - if err = os.WriteFile(patchPath, patch, 0644); err != nil { + if err = os.WriteFile(patchPath, patch, 0o644); err != nil { return fmt.Errorf("WriteFile: %v", err) } @@ -999,7 +995,7 @@ func prepareRepoCommit(repo *Repository, tmpDir, repoPath string, opts CreateRep "CloneURL.HTTPS": cloneLink.HTTPS, } if err = os.WriteFile(filepath.Join(tmpDir, "README.md"), - []byte(com.Expand(string(data), match)), 0644); err != nil { + []byte(com.Expand(string(data), match)), 0o644); err != nil { return fmt.Errorf("write README.md: %v", err) } @@ -1018,7 +1014,7 @@ func prepareRepoCommit(repo *Repository, tmpDir, repoPath string, opts CreateRep } if buf.Len() > 0 { - if err = os.WriteFile(filepath.Join(tmpDir, ".gitignore"), buf.Bytes(), 0644); err != nil { + if err = os.WriteFile(filepath.Join(tmpDir, ".gitignore"), buf.Bytes(), 0o644); err != nil { return fmt.Errorf("write .gitignore: %v", err) } } @@ -1031,7 +1027,7 @@ func prepareRepoCommit(repo *Repository, tmpDir, repoPath string, opts CreateRep return fmt.Errorf("getRepoInitFile[%s]: %v", opts.License, err) } - if err = os.WriteFile(filepath.Join(tmpDir, "LICENSE"), data, 0644); err != nil { + if err = os.WriteFile(filepath.Join(tmpDir, "LICENSE"), data, 0o644); err != nil { return fmt.Errorf("write LICENSE: %v", err) } } diff --git a/internal/database/repo_branch.go b/internal/database/repo_branch.go index c3315f688..64f5f0166 100644 --- a/internal/database/repo_branch.go +++ b/internal/database/repo_branch.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/repo_collaboration.go b/internal/database/repo_collaboration.go index 7fab1556f..4ab7c9cda 100644 --- a/internal/database/repo_collaboration.go +++ b/internal/database/repo_collaboration.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/repo_editor.go b/internal/database/repo_editor.go index 6dc9870a2..4f874165f 100644 --- a/internal/database/repo_editor.go +++ b/internal/database/repo_editor.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/repo_editor_test.go b/internal/database/repo_editor_test.go index 1c45c4d18..1cee1d10a 100644 --- a/internal/database/repo_editor_test.go +++ b/internal/database/repo_editor_test.go @@ -1,7 +1,3 @@ -// Copyright 2018 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/repo_tag.go b/internal/database/repo_tag.go index 2bdda0835..efb9a7ff2 100644 --- a/internal/database/repo_tag.go +++ b/internal/database/repo_tag.go @@ -1,7 +1,3 @@ -// Copyright 2021 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/repositories.go b/internal/database/repositories.go index c656dc889..ddd97420f 100644 --- a/internal/database/repositories.go +++ b/internal/database/repositories.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/repositories_test.go b/internal/database/repositories_test.go index 22be71b5e..4b8583e91 100644 --- a/internal/database/repositories_test.go +++ b/internal/database/repositories_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/ssh_key.go b/internal/database/ssh_key.go index 3e6e6dcfd..d71cd1792 100644 --- a/internal/database/ssh_key.go +++ b/internal/database/ssh_key.go @@ -1,7 +1,3 @@ -// 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. - package database import ( @@ -327,7 +323,7 @@ func appendAuthorizedKeysToFile(keys ...*PublicKey) error { defer sshOpLocker.Unlock() fpath := filepath.Join(conf.SSH.RootPath, "authorized_keys") - f, err := os.OpenFile(fpath, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0600) + f, err := os.OpenFile(fpath, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o600) if err != nil { return err } @@ -341,9 +337,9 @@ func appendAuthorizedKeysToFile(keys ...*PublicKey) error { } // .ssh directory should have mode 700, and authorized_keys file should have mode 600. - if fi.Mode().Perm() > 0600 { + if fi.Mode().Perm() > 0o600 { log.Error("authorized_keys file has unusual permission flags: %s - setting to -rw-------", fi.Mode().Perm().String()) - if err = f.Chmod(0600); err != nil { + if err = f.Chmod(0o600); err != nil { return err } } @@ -376,7 +372,7 @@ func addKey(e Engine, key *PublicKey) (err error) { // Calculate fingerprint. tmpPath := strings.ReplaceAll(path.Join(os.TempDir(), fmt.Sprintf("%d", time.Now().Nanosecond()), "id_rsa.pub"), "\\", "/") _ = os.MkdirAll(path.Dir(tmpPath), os.ModePerm) - if err = os.WriteFile(tmpPath, []byte(key.Content), 0644); err != nil { + if err = os.WriteFile(tmpPath, []byte(key.Content), 0o644); err != nil { return err } @@ -529,7 +525,7 @@ func RewriteAuthorizedKeys() error { _ = os.MkdirAll(conf.SSH.RootPath, os.ModePerm) fpath := authorizedKeysPath() tmpPath := fpath + ".tmp" - f, err := os.OpenFile(tmpPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0600) + f, err := os.OpenFile(tmpPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o600) if err != nil { return err } diff --git a/internal/database/ssh_key_test.go b/internal/database/ssh_key_test.go index dc232e66a..ab62078ef 100644 --- a/internal/database/ssh_key_test.go +++ b/internal/database/ssh_key_test.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/two_factor.go b/internal/database/two_factor.go index 3239ddd34..3f345d80e 100644 --- a/internal/database/two_factor.go +++ b/internal/database/two_factor.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/two_factors.go b/internal/database/two_factors.go index 5473533c9..803de7d16 100644 --- a/internal/database/two_factors.go +++ b/internal/database/two_factors.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/two_factors_test.go b/internal/database/two_factors_test.go index 58148e9ea..925e1d0e8 100644 --- a/internal/database/two_factors_test.go +++ b/internal/database/two_factors_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/update.go b/internal/database/update.go index 29c01cb78..9e24e3964 100644 --- a/internal/database/update.go +++ b/internal/database/update.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/users.go b/internal/database/users.go index ebe26c7e0..5e0cd03bf 100644 --- a/internal/database/users.go +++ b/internal/database/users.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/users_test.go b/internal/database/users_test.go index ec2661135..e6279e2dd 100644 --- a/internal/database/users_test.go +++ b/internal/database/users_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( @@ -575,7 +571,7 @@ func usersDeleteByID(t *testing.T, ctx context.Context, s *UsersStore) { err = os.MkdirAll(tempPictureAvatarUploadPath, os.ModePerm) require.NoError(t, err) tempCustomAvatarPath := userutil.CustomAvatarPath(testUser.ID) - err = os.WriteFile(tempCustomAvatarPath, []byte("test"), 0600) + err = os.WriteFile(tempCustomAvatarPath, []byte("test"), 0o600) require.NoError(t, err) // Verify mock data diff --git a/internal/database/webhook.go b/internal/database/webhook.go index 127e4b84c..bd987f133 100644 --- a/internal/database/webhook.go +++ b/internal/database/webhook.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/webhook_dingtalk.go b/internal/database/webhook_dingtalk.go index 510605073..814a364bf 100644 --- a/internal/database/webhook_dingtalk.go +++ b/internal/database/webhook_dingtalk.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/webhook_discord.go b/internal/database/webhook_discord.go index bfc001286..0474050e4 100644 --- a/internal/database/webhook_discord.go +++ b/internal/database/webhook_discord.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package database import ( diff --git a/internal/database/webhook_slack.go b/internal/database/webhook_slack.go index aea2960cd..5f7273745 100644 --- a/internal/database/webhook_slack.go +++ b/internal/database/webhook_slack.go @@ -1,7 +1,3 @@ -// 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. - package database import ( diff --git a/internal/database/wiki.go b/internal/database/wiki.go index 17a1dc42b..e7320975e 100644 --- a/internal/database/wiki.go +++ b/internal/database/wiki.go @@ -1,7 +1,3 @@ -// 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. - package database import ( @@ -121,7 +117,7 @@ func (r *Repository) updateWikiPage(doer *User, oldTitle, title, content, messag // The new file we created will be in normal text format. os.Remove(filename) - if err = os.WriteFile(filename, []byte(content), 0666); err != nil { + if err = os.WriteFile(filename, []byte(content), 0o666); err != nil { return fmt.Errorf("WriteFile: %v", err) } diff --git a/internal/dbtest/dbtest.go b/internal/dbtest/dbtest.go index 5fab7b136..d6002826f 100644 --- a/internal/dbtest/dbtest.go +++ b/internal/dbtest/dbtest.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package dbtest import ( diff --git a/internal/dbutil/dsn.go b/internal/dbutil/dsn.go index 302799884..61aa2aeae 100644 --- a/internal/dbutil/dsn.go +++ b/internal/dbutil/dsn.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package dbutil import ( diff --git a/internal/dbutil/dsn_test.go b/internal/dbutil/dsn_test.go index 0dd929015..dbd9f69c2 100644 --- a/internal/dbutil/dsn_test.go +++ b/internal/dbutil/dsn_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package dbutil import ( diff --git a/internal/dbutil/logger.go b/internal/dbutil/logger.go index 23639a992..377029fec 100644 --- a/internal/dbutil/logger.go +++ b/internal/dbutil/logger.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package dbutil import ( diff --git a/internal/dbutil/string.go b/internal/dbutil/string.go index 4ee3f0125..72a93feb9 100644 --- a/internal/dbutil/string.go +++ b/internal/dbutil/string.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package dbutil import ( diff --git a/internal/dbutil/string_test.go b/internal/dbutil/string_test.go index ec01f5808..f49d5af2c 100644 --- a/internal/dbutil/string_test.go +++ b/internal/dbutil/string_test.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package dbutil import ( diff --git a/internal/email/email.go b/internal/email/email.go index 55c092d19..319a7ae6f 100644 --- a/internal/email/email.go +++ b/internal/email/email.go @@ -1,7 +1,3 @@ -// 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. - package email import ( diff --git a/internal/email/message.go b/internal/email/message.go index 260143e2d..85f70a35f 100644 --- a/internal/email/message.go +++ b/internal/email/message.go @@ -1,7 +1,3 @@ -// 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. - package email import ( diff --git a/internal/errutil/errutil.go b/internal/errutil/errutil.go index 983cb84cc..49d476309 100644 --- a/internal/errutil/errutil.go +++ b/internal/errutil/errutil.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package errutil // NotFound represents a not found error. diff --git a/internal/errutil/errutil_test.go b/internal/errutil/errutil_test.go index 9fcffbc0e..386d7b8af 100644 --- a/internal/errutil/errutil_test.go +++ b/internal/errutil/errutil_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package errutil import ( diff --git a/internal/form/admin.go b/internal/form/admin.go index c51d62cad..6dad6f1c8 100644 --- a/internal/form/admin.go +++ b/internal/form/admin.go @@ -1,7 +1,3 @@ -// 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. - package form import ( diff --git a/internal/form/auth.go b/internal/form/auth.go index 47ecc813a..3df030812 100644 --- a/internal/form/auth.go +++ b/internal/form/auth.go @@ -1,7 +1,3 @@ -// 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. - package form import ( diff --git a/internal/form/form.go b/internal/form/form.go index 4e8e61f75..12e4cee1d 100644 --- a/internal/form/form.go +++ b/internal/form/form.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package form import ( diff --git a/internal/form/org.go b/internal/form/org.go index 5c268c830..14dd8ca77 100644 --- a/internal/form/org.go +++ b/internal/form/org.go @@ -1,7 +1,3 @@ -// 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. - package form import ( diff --git a/internal/form/repo.go b/internal/form/repo.go index 45da49112..9351ea919 100644 --- a/internal/form/repo.go +++ b/internal/form/repo.go @@ -1,7 +1,3 @@ -// 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. - package form import ( diff --git a/internal/form/user.go b/internal/form/user.go index 51685041f..fed402fbc 100644 --- a/internal/form/user.go +++ b/internal/form/user.go @@ -1,7 +1,3 @@ -// 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. - package form import ( diff --git a/internal/gitutil/diff.go b/internal/gitutil/diff.go index d0e2c76e3..2b62685f3 100644 --- a/internal/gitutil/diff.go +++ b/internal/gitutil/diff.go @@ -1,7 +1,3 @@ -// 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. - package gitutil import ( diff --git a/internal/gitutil/diff_test.go b/internal/gitutil/diff_test.go index 65c5df65e..0661318f3 100644 --- a/internal/gitutil/diff_test.go +++ b/internal/gitutil/diff_test.go @@ -1,7 +1,3 @@ -// 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. - package gitutil import ( diff --git a/internal/gitutil/error.go b/internal/gitutil/error.go index a823dd722..89056ede0 100644 --- a/internal/gitutil/error.go +++ b/internal/gitutil/error.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package gitutil import ( diff --git a/internal/gitutil/error_test.go b/internal/gitutil/error_test.go index 331751f1c..73bfb874c 100644 --- a/internal/gitutil/error_test.go +++ b/internal/gitutil/error_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package gitutil import ( diff --git a/internal/gitutil/mocks.go b/internal/gitutil/mocks.go index 1f740ee7d..11ae61716 100644 --- a/internal/gitutil/mocks.go +++ b/internal/gitutil/mocks.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package gitutil import ( diff --git a/internal/gitutil/module.go b/internal/gitutil/module.go index 1fd636199..1af7566f3 100644 --- a/internal/gitutil/module.go +++ b/internal/gitutil/module.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package gitutil import ( diff --git a/internal/gitutil/pull_request.go b/internal/gitutil/pull_request.go index 99213e052..b69bf23e3 100644 --- a/internal/gitutil/pull_request.go +++ b/internal/gitutil/pull_request.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package gitutil import ( diff --git a/internal/gitutil/pull_request_test.go b/internal/gitutil/pull_request_test.go index 1bee39eab..b6c6a37d6 100644 --- a/internal/gitutil/pull_request_test.go +++ b/internal/gitutil/pull_request_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package gitutil import ( diff --git a/internal/gitutil/submodule.go b/internal/gitutil/submodule.go index 519a24f95..501d5647b 100644 --- a/internal/gitutil/submodule.go +++ b/internal/gitutil/submodule.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package gitutil import ( diff --git a/internal/gitutil/submodule_test.go b/internal/gitutil/submodule_test.go index 0ef60a0d3..93ae35176 100644 --- a/internal/gitutil/submodule_test.go +++ b/internal/gitutil/submodule_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package gitutil import ( diff --git a/internal/gitutil/tag.go b/internal/gitutil/tag.go index 3d4ada0c5..72151193b 100644 --- a/internal/gitutil/tag.go +++ b/internal/gitutil/tag.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package gitutil import ( diff --git a/internal/gitutil/tag_test.go b/internal/gitutil/tag_test.go index f8fb2a03d..4e97e48b4 100644 --- a/internal/gitutil/tag_test.go +++ b/internal/gitutil/tag_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package gitutil import ( diff --git a/internal/httplib/httplib.go b/internal/httplib/httplib.go index 1753d3ece..6b437f271 100644 --- a/internal/httplib/httplib.go +++ b/internal/httplib/httplib.go @@ -1,5 +1,4 @@ // Copyright 2013 The Beego Authors. All rights reserved. -// Copyright 2014 The Gogs Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. diff --git a/internal/lfsutil/oid.go b/internal/lfsutil/oid.go index ad19bd5b2..9fc1e1c99 100644 --- a/internal/lfsutil/oid.go +++ b/internal/lfsutil/oid.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package lfsutil import ( diff --git a/internal/lfsutil/oid_test.go b/internal/lfsutil/oid_test.go index 1a4476484..6a1210280 100644 --- a/internal/lfsutil/oid_test.go +++ b/internal/lfsutil/oid_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package lfsutil import ( diff --git a/internal/lfsutil/storage.go b/internal/lfsutil/storage.go index be0660fc4..0f903fcd5 100644 --- a/internal/lfsutil/storage.go +++ b/internal/lfsutil/storage.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package lfsutil import ( diff --git a/internal/lfsutil/storage_test.go b/internal/lfsutil/storage_test.go index d0f5b097d..4dccdf235 100644 --- a/internal/lfsutil/storage_test.go +++ b/internal/lfsutil/storage_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package lfsutil import ( diff --git a/internal/markup/markdown.go b/internal/markup/markdown.go index 482c1b98b..84aab1afd 100644 --- a/internal/markup/markdown.go +++ b/internal/markup/markdown.go @@ -1,7 +1,3 @@ -// 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. - package markup import ( diff --git a/internal/markup/markdown_test.go b/internal/markup/markdown_test.go index 9084ca07d..d2c799f87 100644 --- a/internal/markup/markdown_test.go +++ b/internal/markup/markdown_test.go @@ -1,7 +1,3 @@ -// 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. - package markup_test import ( diff --git a/internal/markup/markup.go b/internal/markup/markup.go index 01ad55829..26f8f8fcd 100644 --- a/internal/markup/markup.go +++ b/internal/markup/markup.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package markup import ( diff --git a/internal/markup/markup_test.go b/internal/markup/markup_test.go index 0c1370cb1..6e916e978 100644 --- a/internal/markup/markup_test.go +++ b/internal/markup/markup_test.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package markup_test import ( diff --git a/internal/markup/orgmode.go b/internal/markup/orgmode.go index 934d0cf8b..b2305dfd1 100644 --- a/internal/markup/orgmode.go +++ b/internal/markup/orgmode.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package markup import ( diff --git a/internal/markup/sanitizer.go b/internal/markup/sanitizer.go index 2bd7f2da1..bb9b2000e 100644 --- a/internal/markup/sanitizer.go +++ b/internal/markup/sanitizer.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package markup import ( diff --git a/internal/markup/sanitizer_test.go b/internal/markup/sanitizer_test.go index 4e3672d80..83253bfdf 100644 --- a/internal/markup/sanitizer_test.go +++ b/internal/markup/sanitizer_test.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package markup_test import ( diff --git a/internal/mocks/locale.go b/internal/mocks/locale.go index 2bc7c66b5..6664662a0 100644 --- a/internal/mocks/locale.go +++ b/internal/mocks/locale.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package mocks import ( diff --git a/internal/netutil/netutil.go b/internal/netutil/netutil.go index 2c457519b..82e366e4a 100644 --- a/internal/netutil/netutil.go +++ b/internal/netutil/netutil.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package netutil import ( diff --git a/internal/netutil/netutil_test.go b/internal/netutil/netutil_test.go index af02d9a75..a658c269a 100644 --- a/internal/netutil/netutil_test.go +++ b/internal/netutil/netutil_test.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package netutil import ( diff --git a/internal/osutil/error.go b/internal/osutil/error.go index 8f312aa97..13f215c3e 100644 --- a/internal/osutil/error.go +++ b/internal/osutil/error.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package osutil import ( diff --git a/internal/osutil/error_test.go b/internal/osutil/error_test.go index 26ec3b5fa..ad1a9701f 100644 --- a/internal/osutil/error_test.go +++ b/internal/osutil/error_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package osutil import ( diff --git a/internal/osutil/osutil.go b/internal/osutil/osutil.go index f9e24f622..fe62f3535 100644 --- a/internal/osutil/osutil.go +++ b/internal/osutil/osutil.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package osutil import ( diff --git a/internal/osutil/osutil_test.go b/internal/osutil/osutil_test.go index 747f52a66..924954785 100644 --- a/internal/osutil/osutil_test.go +++ b/internal/osutil/osutil_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package osutil import ( diff --git a/internal/pathutil/pathutil.go b/internal/pathutil/pathutil.go index c2e53fdbc..836da6554 100644 --- a/internal/pathutil/pathutil.go +++ b/internal/pathutil/pathutil.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package pathutil import ( diff --git a/internal/pathutil/pathutil_test.go b/internal/pathutil/pathutil_test.go index 7444c82a1..88958149f 100644 --- a/internal/pathutil/pathutil_test.go +++ b/internal/pathutil/pathutil_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package pathutil import ( diff --git a/internal/process/manager.go b/internal/process/manager.go index 61bd49fbe..c1d2a7ac9 100644 --- a/internal/process/manager.go +++ b/internal/process/manager.go @@ -1,7 +1,3 @@ -// 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. - package process import ( diff --git a/internal/repoutil/repoutil.go b/internal/repoutil/repoutil.go index bb5afc08b..e35312c32 100644 --- a/internal/repoutil/repoutil.go +++ b/internal/repoutil/repoutil.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package repoutil import ( diff --git a/internal/repoutil/repoutil_test.go b/internal/repoutil/repoutil_test.go index cd0e7e444..4b02b8884 100644 --- a/internal/repoutil/repoutil_test.go +++ b/internal/repoutil/repoutil_test.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package repoutil import ( diff --git a/internal/route/admin/admin.go b/internal/route/admin/admin.go index e45ce1543..ea5e39397 100644 --- a/internal/route/admin/admin.go +++ b/internal/route/admin/admin.go @@ -1,7 +1,3 @@ -// 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. - package admin import ( diff --git a/internal/route/admin/auths.go b/internal/route/admin/auths.go index 86dde0dfa..56a9d48e2 100644 --- a/internal/route/admin/auths.go +++ b/internal/route/admin/auths.go @@ -1,7 +1,3 @@ -// 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. - package admin import ( diff --git a/internal/route/admin/notice.go b/internal/route/admin/notice.go index 90f6854fe..52eb06cad 100644 --- a/internal/route/admin/notice.go +++ b/internal/route/admin/notice.go @@ -1,7 +1,3 @@ -// 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. - package admin import ( diff --git a/internal/route/admin/orgs.go b/internal/route/admin/orgs.go index 83b98eccf..9eefcbdde 100644 --- a/internal/route/admin/orgs.go +++ b/internal/route/admin/orgs.go @@ -1,7 +1,3 @@ -// 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. - package admin import ( diff --git a/internal/route/admin/repos.go b/internal/route/admin/repos.go index 4e13c6543..5e31cbbc2 100644 --- a/internal/route/admin/repos.go +++ b/internal/route/admin/repos.go @@ -1,7 +1,3 @@ -// 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. - package admin import ( diff --git a/internal/route/admin/users.go b/internal/route/admin/users.go index d5d5eef08..75c0dd725 100644 --- a/internal/route/admin/users.go +++ b/internal/route/admin/users.go @@ -1,7 +1,3 @@ -// 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. - package admin import ( diff --git a/internal/route/api/v1/admin/org.go b/internal/route/api/v1/admin/org.go index 14350b1cd..b00af9a22 100644 --- a/internal/route/api/v1/admin/org.go +++ b/internal/route/api/v1/admin/org.go @@ -1,7 +1,3 @@ -// 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. - package admin import ( diff --git a/internal/route/api/v1/admin/org_repo.go b/internal/route/api/v1/admin/org_repo.go index 7c4b457b5..8fbea234f 100644 --- a/internal/route/api/v1/admin/org_repo.go +++ b/internal/route/api/v1/admin/org_repo.go @@ -1,7 +1,3 @@ -// 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. - package admin import ( diff --git a/internal/route/api/v1/admin/org_team.go b/internal/route/api/v1/admin/org_team.go index 0d58ac6b8..25650642f 100644 --- a/internal/route/api/v1/admin/org_team.go +++ b/internal/route/api/v1/admin/org_team.go @@ -1,7 +1,3 @@ -// 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. - package admin import ( diff --git a/internal/route/api/v1/admin/repo.go b/internal/route/api/v1/admin/repo.go index 229310367..d8f39de95 100644 --- a/internal/route/api/v1/admin/repo.go +++ b/internal/route/api/v1/admin/repo.go @@ -1,7 +1,3 @@ -// 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. - package admin import ( diff --git a/internal/route/api/v1/admin/user.go b/internal/route/api/v1/admin/user.go index c916ded8b..fbfd3432e 100644 --- a/internal/route/api/v1/admin/user.go +++ b/internal/route/api/v1/admin/user.go @@ -1,7 +1,3 @@ -// 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. - package admin import ( diff --git a/internal/route/api/v1/api.go b/internal/route/api/v1/api.go index 844012b68..2bc0223b0 100644 --- a/internal/route/api/v1/api.go +++ b/internal/route/api/v1/api.go @@ -1,7 +1,3 @@ -// 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. - package v1 import ( diff --git a/internal/route/api/v1/convert/convert.go b/internal/route/api/v1/convert/convert.go index 8da561bec..f6447f334 100644 --- a/internal/route/api/v1/convert/convert.go +++ b/internal/route/api/v1/convert/convert.go @@ -1,7 +1,3 @@ -// 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. - package convert import ( diff --git a/internal/route/api/v1/convert/utils.go b/internal/route/api/v1/convert/utils.go index 136680910..783b61b42 100644 --- a/internal/route/api/v1/convert/utils.go +++ b/internal/route/api/v1/convert/utils.go @@ -1,7 +1,3 @@ -// 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. - package convert import ( diff --git a/internal/route/api/v1/misc/markdown.go b/internal/route/api/v1/misc/markdown.go index 0cbfa7597..f6857aa9d 100644 --- a/internal/route/api/v1/misc/markdown.go +++ b/internal/route/api/v1/misc/markdown.go @@ -1,7 +1,3 @@ -// 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. - package misc import ( diff --git a/internal/route/api/v1/org/org.go b/internal/route/api/v1/org/org.go index 84826f974..aa7182ff3 100644 --- a/internal/route/api/v1/org/org.go +++ b/internal/route/api/v1/org/org.go @@ -1,7 +1,3 @@ -// 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. - package org import ( diff --git a/internal/route/api/v1/org/team.go b/internal/route/api/v1/org/team.go index 75a6ae112..d59ac57ba 100644 --- a/internal/route/api/v1/org/team.go +++ b/internal/route/api/v1/org/team.go @@ -1,7 +1,3 @@ -// 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. - package org import ( diff --git a/internal/route/api/v1/repo/branch.go b/internal/route/api/v1/repo/branch.go index eb19c6579..7264cb654 100644 --- a/internal/route/api/v1/repo/branch.go +++ b/internal/route/api/v1/repo/branch.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/api/v1/repo/collaborators.go b/internal/route/api/v1/repo/collaborators.go index f24cbde9b..11637d359 100644 --- a/internal/route/api/v1/repo/collaborators.go +++ b/internal/route/api/v1/repo/collaborators.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/api/v1/repo/commits.go b/internal/route/api/v1/repo/commits.go index add53dda4..f0c86ca53 100644 --- a/internal/route/api/v1/repo/commits.go +++ b/internal/route/api/v1/repo/commits.go @@ -1,7 +1,3 @@ -// Copyright 2018 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package repo import ( diff --git a/internal/route/api/v1/repo/contents.go b/internal/route/api/v1/repo/contents.go index 7d2d6fbe9..d919cb9f4 100644 --- a/internal/route/api/v1/repo/contents.go +++ b/internal/route/api/v1/repo/contents.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package repo import ( diff --git a/internal/route/api/v1/repo/file.go b/internal/route/api/v1/repo/file.go index e8f1a003a..fb43bb556 100644 --- a/internal/route/api/v1/repo/file.go +++ b/internal/route/api/v1/repo/file.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/api/v1/repo/hook.go b/internal/route/api/v1/repo/hook.go index 25d30ffbc..356212751 100644 --- a/internal/route/api/v1/repo/hook.go +++ b/internal/route/api/v1/repo/hook.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/api/v1/repo/issue.go b/internal/route/api/v1/repo/issue.go index 2ec3a091e..0fc28b20a 100644 --- a/internal/route/api/v1/repo/issue.go +++ b/internal/route/api/v1/repo/issue.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/api/v1/repo/issue_comment.go b/internal/route/api/v1/repo/issue_comment.go index 9b9661f78..cf2cabb27 100644 --- a/internal/route/api/v1/repo/issue_comment.go +++ b/internal/route/api/v1/repo/issue_comment.go @@ -1,6 +1,3 @@ -// 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. package repo import ( diff --git a/internal/route/api/v1/repo/issue_label.go b/internal/route/api/v1/repo/issue_label.go index 943abb595..e22e39c2f 100644 --- a/internal/route/api/v1/repo/issue_label.go +++ b/internal/route/api/v1/repo/issue_label.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/api/v1/repo/key.go b/internal/route/api/v1/repo/key.go index b8a58b131..f8f6fc33e 100644 --- a/internal/route/api/v1/repo/key.go +++ b/internal/route/api/v1/repo/key.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/api/v1/repo/label.go b/internal/route/api/v1/repo/label.go index 8d587add3..d17cf90c3 100644 --- a/internal/route/api/v1/repo/label.go +++ b/internal/route/api/v1/repo/label.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/api/v1/repo/milestone.go b/internal/route/api/v1/repo/milestone.go index b0b3fbfea..97faf483a 100644 --- a/internal/route/api/v1/repo/milestone.go +++ b/internal/route/api/v1/repo/milestone.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/api/v1/repo/repo.go b/internal/route/api/v1/repo/repo.go index 94caa8d28..51f767803 100644 --- a/internal/route/api/v1/repo/repo.go +++ b/internal/route/api/v1/repo/repo.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/api/v1/repo/tag.go b/internal/route/api/v1/repo/tag.go index 73b7e064d..b8049873b 100644 --- a/internal/route/api/v1/repo/tag.go +++ b/internal/route/api/v1/repo/tag.go @@ -1,7 +1,3 @@ -// Copyright 2021 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package repo import ( diff --git a/internal/route/api/v1/repo/tree.go b/internal/route/api/v1/repo/tree.go index cd51282bf..7ace21a83 100644 --- a/internal/route/api/v1/repo/tree.go +++ b/internal/route/api/v1/repo/tree.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package repo import ( diff --git a/internal/route/api/v1/user/access_tokens.go b/internal/route/api/v1/user/access_tokens.go index b8c3062a9..c469a7ed8 100644 --- a/internal/route/api/v1/user/access_tokens.go +++ b/internal/route/api/v1/user/access_tokens.go @@ -1,7 +1,3 @@ -// 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. - package user import ( diff --git a/internal/route/api/v1/user/email.go b/internal/route/api/v1/user/email.go index e76ad5bf4..6d3e55b4c 100644 --- a/internal/route/api/v1/user/email.go +++ b/internal/route/api/v1/user/email.go @@ -1,7 +1,3 @@ -// 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. - package user import ( diff --git a/internal/route/api/v1/user/follower.go b/internal/route/api/v1/user/follower.go index 90fa868b8..7bbc72a5c 100644 --- a/internal/route/api/v1/user/follower.go +++ b/internal/route/api/v1/user/follower.go @@ -1,7 +1,3 @@ -// 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. - package user import ( diff --git a/internal/route/api/v1/user/key.go b/internal/route/api/v1/user/key.go index f264e4079..29b6c6d79 100644 --- a/internal/route/api/v1/user/key.go +++ b/internal/route/api/v1/user/key.go @@ -1,7 +1,3 @@ -// 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. - package user import ( diff --git a/internal/route/api/v1/user/user.go b/internal/route/api/v1/user/user.go index f9958230e..597dda87c 100644 --- a/internal/route/api/v1/user/user.go +++ b/internal/route/api/v1/user/user.go @@ -1,7 +1,3 @@ -// 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. - package user import ( diff --git a/internal/route/dev/template.go b/internal/route/dev/template.go index e1be56aca..b1dee7d97 100644 --- a/internal/route/dev/template.go +++ b/internal/route/dev/template.go @@ -1,7 +1,3 @@ -// 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. - package dev import ( diff --git a/internal/route/home.go b/internal/route/home.go index 29b4dfb89..1a685d273 100644 --- a/internal/route/home.go +++ b/internal/route/home.go @@ -1,7 +1,3 @@ -// 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. - package route import ( diff --git a/internal/route/install.go b/internal/route/install.go index 23cf1ea13..522576d45 100644 --- a/internal/route/install.go +++ b/internal/route/install.go @@ -1,7 +1,3 @@ -// 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. - package route import ( diff --git a/internal/route/lfs/basic.go b/internal/route/lfs/basic.go index 1bcaf789a..ba2f9c416 100644 --- a/internal/route/lfs/basic.go +++ b/internal/route/lfs/basic.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package lfs import ( diff --git a/internal/route/lfs/basic_test.go b/internal/route/lfs/basic_test.go index 7b2d75216..e1b03e940 100644 --- a/internal/route/lfs/basic_test.go +++ b/internal/route/lfs/basic_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package lfs import ( diff --git a/internal/route/lfs/batch.go b/internal/route/lfs/batch.go index 27a159f8d..ac33e4027 100644 --- a/internal/route/lfs/batch.go +++ b/internal/route/lfs/batch.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package lfs import ( diff --git a/internal/route/lfs/batch_test.go b/internal/route/lfs/batch_test.go index f6aa7a0fc..31cde46cb 100644 --- a/internal/route/lfs/batch_test.go +++ b/internal/route/lfs/batch_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package lfs import ( diff --git a/internal/route/lfs/main_test.go b/internal/route/lfs/main_test.go index ddc04c1b4..b317df2da 100644 --- a/internal/route/lfs/main_test.go +++ b/internal/route/lfs/main_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package lfs import ( diff --git a/internal/route/lfs/route.go b/internal/route/lfs/route.go index 5ed7a6377..f7766149c 100644 --- a/internal/route/lfs/route.go +++ b/internal/route/lfs/route.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package lfs import ( diff --git a/internal/route/lfs/route_test.go b/internal/route/lfs/route_test.go index e0f37a6af..400fd0a8d 100644 --- a/internal/route/lfs/route_test.go +++ b/internal/route/lfs/route_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package lfs import ( diff --git a/internal/route/org/members.go b/internal/route/org/members.go index 6cefd746c..7c70285af 100644 --- a/internal/route/org/members.go +++ b/internal/route/org/members.go @@ -1,7 +1,3 @@ -// 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. - package org import ( diff --git a/internal/route/org/org.go b/internal/route/org/org.go index 1692682fb..3907e292a 100644 --- a/internal/route/org/org.go +++ b/internal/route/org/org.go @@ -1,7 +1,3 @@ -// 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. - package org import ( diff --git a/internal/route/org/setting.go b/internal/route/org/setting.go index 9476ee521..44b54eb97 100644 --- a/internal/route/org/setting.go +++ b/internal/route/org/setting.go @@ -1,7 +1,3 @@ -// 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. - package org import ( diff --git a/internal/route/org/teams.go b/internal/route/org/teams.go index cae904793..e74f74435 100644 --- a/internal/route/org/teams.go +++ b/internal/route/org/teams.go @@ -1,7 +1,3 @@ -// 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. - package org import ( diff --git a/internal/route/repo/branch.go b/internal/route/repo/branch.go index de115e32f..a8ad7e744 100644 --- a/internal/route/repo/branch.go +++ b/internal/route/repo/branch.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/repo/commit.go b/internal/route/repo/commit.go index 2b26b394a..0fa281bb5 100644 --- a/internal/route/repo/commit.go +++ b/internal/route/repo/commit.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/repo/download.go b/internal/route/repo/download.go index 6e29c10eb..084f0e299 100644 --- a/internal/route/repo/download.go +++ b/internal/route/repo/download.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/repo/editor.go b/internal/route/repo/editor.go index 624efc296..4a5bcd0ba 100644 --- a/internal/route/repo/editor.go +++ b/internal/route/repo/editor.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/repo/http.go b/internal/route/repo/http.go index 4ce267999..79c6cc343 100644 --- a/internal/route/repo/http.go +++ b/internal/route/repo/http.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package repo import ( diff --git a/internal/route/repo/issue.go b/internal/route/repo/issue.go index 0a4da6ccb..5decd6959 100644 --- a/internal/route/repo/issue.go +++ b/internal/route/repo/issue.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/repo/pull.go b/internal/route/repo/pull.go index ae07e36be..c7209eda2 100644 --- a/internal/route/repo/pull.go +++ b/internal/route/repo/pull.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/repo/release.go b/internal/route/repo/release.go index ad5b4926c..6368e4057 100644 --- a/internal/route/repo/release.go +++ b/internal/route/repo/release.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/repo/repo.go b/internal/route/repo/repo.go index 4fa024aa9..caf9d1151 100644 --- a/internal/route/repo/repo.go +++ b/internal/route/repo/repo.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/repo/setting.go b/internal/route/repo/setting.go index 0da479f32..a9e496392 100644 --- a/internal/route/repo/setting.go +++ b/internal/route/repo/setting.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/repo/tasks.go b/internal/route/repo/tasks.go index 386966f88..a743866a8 100644 --- a/internal/route/repo/tasks.go +++ b/internal/route/repo/tasks.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package repo import ( diff --git a/internal/route/repo/view.go b/internal/route/repo/view.go index c0e2e8922..f8d53ff2a 100644 --- a/internal/route/repo/view.go +++ b/internal/route/repo/view.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/repo/webhook.go b/internal/route/repo/webhook.go index fdec03e66..75785496c 100644 --- a/internal/route/repo/webhook.go +++ b/internal/route/repo/webhook.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/repo/webhook_test.go b/internal/route/repo/webhook_test.go index 2b9037726..14daa03df 100644 --- a/internal/route/repo/webhook_test.go +++ b/internal/route/repo/webhook_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package repo import ( diff --git a/internal/route/repo/wiki.go b/internal/route/repo/wiki.go index 16059b421..4cc2c28da 100644 --- a/internal/route/repo/wiki.go +++ b/internal/route/repo/wiki.go @@ -1,7 +1,3 @@ -// 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. - package repo import ( diff --git a/internal/route/user/auth.go b/internal/route/user/auth.go index cd9ca9239..fcccd313a 100644 --- a/internal/route/user/auth.go +++ b/internal/route/user/auth.go @@ -1,7 +1,3 @@ -// 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. - package user import ( diff --git a/internal/route/user/home.go b/internal/route/user/home.go index f9e8e76e7..bc3c321af 100644 --- a/internal/route/user/home.go +++ b/internal/route/user/home.go @@ -1,7 +1,3 @@ -// 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. - package user import ( diff --git a/internal/route/user/profile.go b/internal/route/user/profile.go index 263074c2f..b4f18a1ef 100644 --- a/internal/route/user/profile.go +++ b/internal/route/user/profile.go @@ -1,7 +1,3 @@ -// 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. - package user import ( diff --git a/internal/route/user/setting.go b/internal/route/user/setting.go index d0db1cf5f..a5b0971a3 100644 --- a/internal/route/user/setting.go +++ b/internal/route/user/setting.go @@ -1,7 +1,3 @@ -// 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. - package user import ( diff --git a/internal/semverutil/semverutil.go b/internal/semverutil/semverutil.go index d66dbfb8e..b2857c358 100644 --- a/internal/semverutil/semverutil.go +++ b/internal/semverutil/semverutil.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package semverutil import ( diff --git a/internal/semverutil/semverutil_test.go b/internal/semverutil/semverutil_test.go index d11421b88..01bc20707 100644 --- a/internal/semverutil/semverutil_test.go +++ b/internal/semverutil/semverutil_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package semverutil import ( diff --git a/internal/ssh/ssh.go b/internal/ssh/ssh.go index 927962bc5..017c947d4 100644 --- a/internal/ssh/ssh.go +++ b/internal/ssh/ssh.go @@ -1,7 +1,3 @@ -// 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. - package ssh import ( diff --git a/internal/strutil/strutil.go b/internal/strutil/strutil.go index c10139591..8f6abbf43 100644 --- a/internal/strutil/strutil.go +++ b/internal/strutil/strutil.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package strutil import ( diff --git a/internal/strutil/strutil_test.go b/internal/strutil/strutil_test.go index d22e1f72e..081813b82 100644 --- a/internal/strutil/strutil_test.go +++ b/internal/strutil/strutil_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package strutil import ( diff --git a/internal/sync/exclusive_pool.go b/internal/sync/exclusive_pool.go index 744cc7c99..8e89c92fb 100644 --- a/internal/sync/exclusive_pool.go +++ b/internal/sync/exclusive_pool.go @@ -1,7 +1,3 @@ -// 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. - package sync import ( diff --git a/internal/sync/status_table.go b/internal/sync/status_table.go index 2d7297150..ec5f3eabd 100644 --- a/internal/sync/status_table.go +++ b/internal/sync/status_table.go @@ -1,7 +1,3 @@ -// 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. - package sync import ( diff --git a/internal/sync/unique_queue.go b/internal/sync/unique_queue.go index cc0ea94fe..1960e6002 100644 --- a/internal/sync/unique_queue.go +++ b/internal/sync/unique_queue.go @@ -1,7 +1,3 @@ -// 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. - package sync import ( diff --git a/internal/template/highlight/highlight.go b/internal/template/highlight/highlight.go index e7b3fe5d7..1a84632cf 100644 --- a/internal/template/highlight/highlight.go +++ b/internal/template/highlight/highlight.go @@ -1,7 +1,3 @@ -// 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. - package highlight import ( diff --git a/internal/template/template.go b/internal/template/template.go index 3318db207..fe8f35bb3 100644 --- a/internal/template/template.go +++ b/internal/template/template.go @@ -1,7 +1,3 @@ -// 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. - package template import ( diff --git a/internal/testutil/exec.go b/internal/testutil/exec.go index 3600537db..ccb821ee1 100644 --- a/internal/testutil/exec.go +++ b/internal/testutil/exec.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package testutil import ( diff --git a/internal/testutil/exec_test.go b/internal/testutil/exec_test.go index c740c41e5..2cf6969fa 100644 --- a/internal/testutil/exec_test.go +++ b/internal/testutil/exec_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package testutil import ( diff --git a/internal/testutil/golden.go b/internal/testutil/golden.go index 707a8c285..3a9893c26 100644 --- a/internal/testutil/golden.go +++ b/internal/testutil/golden.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package testutil import ( @@ -44,7 +40,7 @@ func AssertGolden(t testing.TB, path string, update bool, got any) { t.Fatalf("create directories for golden file %q: %v", path, err) } - err = os.WriteFile(path, data, 0640) + err = os.WriteFile(path, data, 0o640) if err != nil { t.Fatalf("update golden file %q: %v", path, err) } diff --git a/internal/testutil/golden_test.go b/internal/testutil/golden_test.go index 05f31399c..6e518b96d 100644 --- a/internal/testutil/golden_test.go +++ b/internal/testutil/golden_test.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package testutil import ( diff --git a/internal/testutil/noop_logger.go b/internal/testutil/noop_logger.go index db1223909..363a6d97e 100644 --- a/internal/testutil/noop_logger.go +++ b/internal/testutil/noop_logger.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package testutil import ( diff --git a/internal/testutil/testutil.go b/internal/testutil/testutil.go index c7c1bba29..cee8bcd78 100644 --- a/internal/testutil/testutil.go +++ b/internal/testutil/testutil.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package testutil import ( diff --git a/internal/testutil/testutil_test.go b/internal/testutil/testutil_test.go index 5a6c14868..df424bef2 100644 --- a/internal/testutil/testutil_test.go +++ b/internal/testutil/testutil_test.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package testutil import ( diff --git a/internal/tool/file.go b/internal/tool/file.go index 169bc511f..5b487664a 100644 --- a/internal/tool/file.go +++ b/internal/tool/file.go @@ -1,7 +1,3 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package tool import ( diff --git a/internal/tool/path.go b/internal/tool/path.go index e95bba8be..bb72c14c2 100644 --- a/internal/tool/path.go +++ b/internal/tool/path.go @@ -1,7 +1,3 @@ -// Copyright 2018 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package tool import ( diff --git a/internal/tool/path_test.go b/internal/tool/path_test.go index be9b5192a..be1c675c5 100644 --- a/internal/tool/path_test.go +++ b/internal/tool/path_test.go @@ -1,7 +1,3 @@ -// Copyright 2018 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package tool import ( diff --git a/internal/tool/tool.go b/internal/tool/tool.go index 7350b3f30..3cc6644c0 100644 --- a/internal/tool/tool.go +++ b/internal/tool/tool.go @@ -1,7 +1,3 @@ -// 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. - package tool import ( diff --git a/internal/userutil/userutil.go b/internal/userutil/userutil.go index bafdaf586..3015fb69b 100644 --- a/internal/userutil/userutil.go +++ b/internal/userutil/userutil.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package userutil import ( diff --git a/internal/userutil/userutil_test.go b/internal/userutil/userutil_test.go index 25d0341a4..e30eea583 100644 --- a/internal/userutil/userutil_test.go +++ b/internal/userutil/userutil_test.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package userutil import ( diff --git a/mockgen.go b/mockgen.go index 2c623457b..323e484c7 100644 --- a/mockgen.go +++ b/mockgen.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package main //go:generate go install golang.org/x/tools/cmd/goimports@v0.17.0 diff --git a/public/embed.go b/public/embed.go index 7abd23225..c45ce376b 100644 --- a/public/embed.go +++ b/public/embed.go @@ -1,7 +1,3 @@ -// Copyright 2022 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. - package public import ( diff --git a/templates/embed.go b/templates/embed.go index b01041752..2c0b3a54e 100644 --- a/templates/embed.go +++ b/templates/embed.go @@ -1,7 +1,3 @@ -// Copyright 2020 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - package templates import (