瀏覽代碼

chore: remove all MIT license file headers (#8083)

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
ᴊᴏᴇ ᴄʜᴇɴ 1 月之前
父節點
當前提交
59e9fa191b
共有 100 個文件被更改,包括 7 次插入404 次删除
  1. 0 4
      conf/embed.go
  2. 0 4
      conf/embed_test.go
  3. 0 4
      gogs.go
  4. 0 4
      internal/app/api.go
  5. 0 4
      internal/app/api_test.go
  6. 0 4
      internal/app/metrics.go
  7. 0 4
      internal/auth/auth.go
  8. 0 4
      internal/auth/github/config.go
  9. 0 4
      internal/auth/github/provider.go
  10. 0 4
      internal/auth/ldap/config.go
  11. 0 4
      internal/auth/ldap/provider.go
  12. 0 4
      internal/auth/pam/config.go
  13. 0 4
      internal/auth/pam/pam.go
  14. 0 4
      internal/auth/pam/pam_stub.go
  15. 0 4
      internal/auth/pam/provider.go
  16. 0 4
      internal/auth/smtp/config.go
  17. 0 4
      internal/auth/smtp/provider.go
  18. 0 4
      internal/authutil/basic.go
  19. 0 4
      internal/authutil/basic_test.go
  20. 0 4
      internal/avatar/avatar.go
  21. 0 4
      internal/avatar/avatar_test.go
  22. 0 4
      internal/cmd/admin.go
  23. 0 4
      internal/cmd/backup.go
  24. 2 3
      internal/cmd/cert.go
  25. 0 4
      internal/cmd/cmd.go
  26. 0 4
      internal/cmd/hook.go
  27. 0 4
      internal/cmd/import.go
  28. 0 4
      internal/cmd/restore.go
  29. 0 4
      internal/cmd/serv.go
  30. 0 4
      internal/cmd/web.go
  31. 0 4
      internal/conf/computed.go
  32. 0 4
      internal/conf/computed_test.go
  33. 4 8
      internal/conf/conf.go
  34. 0 4
      internal/conf/conf_test.go
  35. 0 4
      internal/conf/log.go
  36. 0 4
      internal/conf/log_test.go
  37. 0 4
      internal/conf/mocks.go
  38. 0 4
      internal/conf/static.go
  39. 0 4
      internal/conf/static_minwinsvc.go
  40. 0 4
      internal/conf/static_test.go
  41. 0 4
      internal/conf/utils.go
  42. 0 4
      internal/conf/utils_test.go
  43. 0 4
      internal/context/api.go
  44. 0 4
      internal/context/api_org.go
  45. 0 4
      internal/context/auth.go
  46. 0 4
      internal/context/context.go
  47. 0 4
      internal/context/notice.go
  48. 0 4
      internal/context/org.go
  49. 0 4
      internal/context/repo.go
  50. 0 4
      internal/context/user.go
  51. 0 4
      internal/cron/cron.go
  52. 0 4
      internal/cryptoutil/aes.go
  53. 0 4
      internal/cryptoutil/aes_test.go
  54. 0 4
      internal/cryptoutil/md5.go
  55. 0 4
      internal/cryptoutil/md5_test.go
  56. 0 4
      internal/cryptoutil/sha.go
  57. 0 4
      internal/cryptoutil/sha_test.go
  58. 0 4
      internal/database/access_tokens.go
  59. 0 4
      internal/database/access_tokens_test.go
  60. 0 4
      internal/database/actions.go
  61. 0 4
      internal/database/actions_test.go
  62. 0 4
      internal/database/attachment.go
  63. 0 4
      internal/database/backup_test.go
  64. 0 4
      internal/database/comment.go
  65. 0 4
      internal/database/database.go
  66. 0 4
      internal/database/error.go
  67. 0 4
      internal/database/errors/errors.go
  68. 0 4
      internal/database/errors/repo.go
  69. 0 4
      internal/database/issue.go
  70. 0 4
      internal/database/issue_label.go
  71. 0 4
      internal/database/issue_mail.go
  72. 0 4
      internal/database/lfs.go
  73. 0 4
      internal/database/lfs_test.go
  74. 0 4
      internal/database/login_source_files.go
  75. 0 4
      internal/database/login_source_files_test.go
  76. 0 4
      internal/database/login_sources.go
  77. 0 4
      internal/database/login_sources_test.go
  78. 0 4
      internal/database/main_test.go
  79. 0 4
      internal/database/migrations/main_test.go
  80. 0 4
      internal/database/migrations/migrations.go
  81. 0 4
      internal/database/migrations/v20.go
  82. 0 4
      internal/database/migrations/v20_test.go
  83. 0 4
      internal/database/migrations/v21.go
  84. 0 4
      internal/database/migrations/v21_test.go
  85. 0 4
      internal/database/milestone.go
  86. 0 4
      internal/database/mirror.go
  87. 0 4
      internal/database/mirror_test.go
  88. 0 4
      internal/database/models.go
  89. 0 4
      internal/database/notices.go
  90. 0 4
      internal/database/notices_test.go
  91. 0 4
      internal/database/org.go
  92. 0 4
      internal/database/org_team.go
  93. 0 4
      internal/database/organizations.go
  94. 0 4
      internal/database/organizations_test.go
  95. 0 4
      internal/database/permissions.go
  96. 0 4
      internal/database/permissions_test.go
  97. 1 5
      internal/database/public_keys.go
  98. 0 4
      internal/database/public_keys_test.go
  99. 0 4
      internal/database/pull.go
  100. 0 4
      internal/database/release.go

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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
 

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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

+ 0 - 4
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 (

+ 0 - 4
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.

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 2 - 3
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)
 	}

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 4 - 8
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 {

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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"

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 1 - 5
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")
 	}

+ 0 - 4
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 (

+ 0 - 4
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 (

+ 0 - 4
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 (

Some files were not shown because too many files changed in this diff