Browse Source

Implement FSFE REUSE for golang files (#21840)

Change all license headers to comply with REUSE specification.

Fix #16132

Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
tags/v1.19.0-rc0
flynnnnnnnnnn 1 year ago
parent
commit
e81ccc406b
No account linked to committer's email address
100 changed files with 103 additions and 200 deletions
  1. 2
    2
      CONTRIBUTING.md
  2. 2
    2
      build.go
  3. 1
    2
      build/code-batch-process.go
  4. 1
    2
      build/codeformat/formatimports.go
  5. 1
    2
      build/codeformat/formatimports_test.go
  6. 1
    2
      build/generate-bindata.go
  7. 3
    4
      build/generate-emoji.go
  8. 1
    2
      build/generate-go-licenses.go
  9. 1
    2
      build/gocovmerge.go
  10. 1
    2
      cmd/admin.go
  11. 1
    2
      cmd/admin_auth_ldap.go
  12. 1
    2
      cmd/admin_auth_ldap_test.go
  13. 1
    2
      cmd/cert.go
  14. 1
    2
      cmd/cmd.go
  15. 1
    2
      cmd/convert.go
  16. 1
    2
      cmd/docs.go
  17. 1
    2
      cmd/doctor.go
  18. 1
    2
      cmd/dump.go
  19. 1
    2
      cmd/dump_repo.go
  20. 1
    2
      cmd/embedded.go
  21. 1
    2
      cmd/embedded_stub.go
  22. 1
    2
      cmd/generate.go
  23. 1
    2
      cmd/hook.go
  24. 1
    2
      cmd/hook_test.go
  25. 1
    2
      cmd/keys.go
  26. 1
    2
      cmd/mailer.go
  27. 1
    2
      cmd/main_test.go
  28. 1
    2
      cmd/manager.go
  29. 1
    2
      cmd/manager_logging.go
  30. 1
    2
      cmd/migrate.go
  31. 1
    2
      cmd/migrate_storage.go
  32. 1
    2
      cmd/migrate_storage_test.go
  33. 1
    2
      cmd/restore_repo.go
  34. 1
    2
      cmd/serv.go
  35. 1
    2
      cmd/web.go
  36. 1
    2
      cmd/web_acme.go
  37. 1
    2
      cmd/web_graceful.go
  38. 1
    2
      cmd/web_https.go
  39. 1
    2
      contrib/environment-to-ini/environment-to-ini.go
  40. 1
    2
      contrib/fixtures/fixture_generation.go
  41. 1
    2
      contrib/pr/checkout.go
  42. 1
    2
      main.go
  43. 1
    2
      models/activities/action.go
  44. 1
    2
      models/activities/action_list.go
  45. 1
    2
      models/activities/action_test.go
  46. 1
    2
      models/activities/main_test.go
  47. 1
    2
      models/activities/notification.go
  48. 1
    2
      models/activities/notification_test.go
  49. 1
    2
      models/activities/repo_activity.go
  50. 1
    2
      models/activities/statistic.go
  51. 1
    2
      models/activities/user_heatmap.go
  52. 1
    2
      models/activities/user_heatmap_test.go
  53. 1
    2
      models/admin/task.go
  54. 1
    2
      models/asymkey/error.go
  55. 1
    2
      models/asymkey/gpg_key.go
  56. 1
    2
      models/asymkey/gpg_key_add.go
  57. 1
    2
      models/asymkey/gpg_key_commit_verification.go
  58. 1
    2
      models/asymkey/gpg_key_common.go
  59. 1
    2
      models/asymkey/gpg_key_import.go
  60. 1
    2
      models/asymkey/gpg_key_test.go
  61. 1
    2
      models/asymkey/gpg_key_verify.go
  62. 1
    2
      models/asymkey/main_test.go
  63. 1
    2
      models/asymkey/ssh_key.go
  64. 1
    2
      models/asymkey/ssh_key_authorized_keys.go
  65. 1
    2
      models/asymkey/ssh_key_authorized_principals.go
  66. 1
    2
      models/asymkey/ssh_key_commit_verification.go
  67. 1
    2
      models/asymkey/ssh_key_deploy.go
  68. 1
    2
      models/asymkey/ssh_key_fingerprint.go
  69. 1
    2
      models/asymkey/ssh_key_parse.go
  70. 1
    2
      models/asymkey/ssh_key_principals.go
  71. 1
    2
      models/asymkey/ssh_key_test.go
  72. 1
    2
      models/asymkey/ssh_key_verify.go
  73. 1
    2
      models/auth/main_test.go
  74. 1
    2
      models/auth/oauth2.go
  75. 1
    2
      models/auth/oauth2_test.go
  76. 1
    2
      models/auth/session.go
  77. 1
    2
      models/auth/source.go
  78. 1
    2
      models/auth/source_test.go
  79. 1
    2
      models/auth/token.go
  80. 1
    2
      models/auth/token_test.go
  81. 1
    2
      models/auth/twofactor.go
  82. 1
    2
      models/auth/webauthn.go
  83. 1
    2
      models/auth/webauthn_test.go
  84. 1
    2
      models/avatars/avatar.go
  85. 1
    2
      models/avatars/avatar_test.go
  86. 1
    2
      models/avatars/main_test.go
  87. 1
    2
      models/db/common.go
  88. 1
    2
      models/db/consistency.go
  89. 1
    2
      models/db/context.go
  90. 1
    2
      models/db/context_test.go
  91. 1
    2
      models/db/convert.go
  92. 1
    2
      models/db/engine.go
  93. 1
    2
      models/db/engine_test.go
  94. 1
    2
      models/db/error.go
  95. 1
    2
      models/db/index.go
  96. 1
    2
      models/db/index_test.go
  97. 1
    2
      models/db/install/db.go
  98. 1
    2
      models/db/iterate.go
  99. 1
    2
      models/db/iterate_test.go
  100. 0
    0
      models/db/list_options.go

+ 2
- 2
CONTRIBUTING.md View File

@@ -440,8 +440,8 @@ Code that you contribute should use the standard copyright header:

```
// Copyright 2022 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT
```

Files in the repository contain copyright from the year they are added

+ 2
- 2
build.go View File

@@ -1,6 +1,6 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

//go:build vendor


+ 1
- 2
build/code-batch-process.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

//go:build ignore


+ 1
- 2
build/codeformat/formatimports.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package codeformat


+ 1
- 2
build/codeformat/formatimports_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package codeformat


+ 1
- 2
build/generate-bindata.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

//go:build ignore


+ 3
- 4
build/generate-emoji.go View File

@@ -1,7 +1,6 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Copyright 2015 Kenneth Shaw
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

//go:build ignore

@@ -209,8 +208,8 @@ func generate() ([]byte, error) {

const hdr = `
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package emoji


+ 1
- 2
build/generate-go-licenses.go View File

@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

//go:build ignore


+ 1
- 2
build/gocovmerge.go View File

@@ -1,7 +1,6 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Copyright (c) 2015, Wade Simmons
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

// gocovmerge takes the results from multiple `go test -coverprofile` runs and
// merges them into one profile

+ 1
- 2
cmd/admin.go View File

@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/admin_auth_ldap.go View File

@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/admin_auth_ldap_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/cert.go View File

@@ -1,8 +1,7 @@
// Copyright 2009 The Go Authors. All rights reserved.
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/cmd.go View File

@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

// Package cmd provides subcommands to the gitea binary - such as "web" or
// "admin".

+ 1
- 2
cmd/convert.go View File

@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/docs.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/doctor.go View File

@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/dump.go View File

@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/dump_repo.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/embedded.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

//go:build bindata


+ 1
- 2
cmd/embedded_stub.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

//go:build !bindata


+ 1
- 2
cmd/generate.go View File

@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/hook.go View File

@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/hook_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/keys.go View File

@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/mailer.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/main_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/manager.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/manager_logging.go View File

@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/migrate.go View File

@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/migrate_storage.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/migrate_storage_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/restore_repo.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/serv.go View File

@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/web.go View File

@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/web_acme.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/web_graceful.go View File

@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
cmd/web_https.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package cmd


+ 1
- 2
contrib/environment-to-ini/environment-to-ini.go View File

@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package main


+ 1
- 2
contrib/fixtures/fixture_generation.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package main


+ 1
- 2
contrib/pr/checkout.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package main


+ 1
- 2
main.go View File

@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

// Gitea (git with a cup of tea) is a painless self-hosted Git Service.
package main // import "code.gitea.io/gitea"

+ 1
- 2
models/activities/action.go View File

@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package activities


+ 1
- 2
models/activities/action_list.go View File

@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package activities


+ 1
- 2
models/activities/action_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package activities_test


+ 1
- 2
models/activities/main_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package activities_test


+ 1
- 2
models/activities/notification.go View File

@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package activities


+ 1
- 2
models/activities/notification_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package activities_test


+ 1
- 2
models/activities/repo_activity.go View File

@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package activities


+ 1
- 2
models/activities/statistic.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package activities


+ 1
- 2
models/activities/user_heatmap.go View File

@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.package models
// SPDX-License-Identifier: MIT

package activities


+ 1
- 2
models/activities/user_heatmap_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.package models
// SPDX-License-Identifier: MIT

package activities_test


+ 1
- 2
models/admin/task.go View File

@@ -1,6 +1,5 @@
// Copyright 2019 Gitea. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package admin


+ 1
- 2
models/asymkey/error.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/gpg_key.go View File

@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/gpg_key_add.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/gpg_key_commit_verification.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/gpg_key_common.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/gpg_key_import.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/gpg_key_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/gpg_key_verify.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/main_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/ssh_key.go View File

@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/ssh_key_authorized_keys.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/ssh_key_authorized_principals.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/ssh_key_commit_verification.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/ssh_key_deploy.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/ssh_key_fingerprint.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/ssh_key_parse.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/ssh_key_principals.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/ssh_key_test.go View File

@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/asymkey/ssh_key_verify.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package asymkey


+ 1
- 2
models/auth/main_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package auth_test


+ 1
- 2
models/auth/oauth2.go View File

@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package auth


+ 1
- 2
models/auth/oauth2_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package auth_test


+ 1
- 2
models/auth/session.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package auth


+ 1
- 2
models/auth/source.go View File

@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package auth


+ 1
- 2
models/auth/source_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package auth_test


+ 1
- 2
models/auth/token.go View File

@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package auth


+ 1
- 2
models/auth/token_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package auth_test


+ 1
- 2
models/auth/twofactor.go View File

@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package auth


+ 1
- 2
models/auth/webauthn.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package auth


+ 1
- 2
models/auth/webauthn_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package auth_test


+ 1
- 2
models/avatars/avatar.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package avatars


+ 1
- 2
models/avatars/avatar_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package avatars_test


+ 1
- 2
models/avatars/main_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package avatars_test


+ 1
- 2
models/db/common.go View File

@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package db


+ 1
- 2
models/db/consistency.go View File

@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package db


+ 1
- 2
models/db/context.go View File

@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package db


+ 1
- 2
models/db/context_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package db_test


+ 1
- 2
models/db/convert.go View File

@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package db


+ 1
- 2
models/db/engine.go View File

@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package db


+ 1
- 2
models/db/engine_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package db_test


+ 1
- 2
models/db/error.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package db


+ 1
- 2
models/db/index.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package db


+ 1
- 2
models/db/index_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package db_test


+ 1
- 2
models/db/install/db.go View File

@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package install


+ 1
- 2
models/db/iterate.go View File

@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package db


+ 1
- 2
models/db/iterate_test.go View File

@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package db_test


+ 0
- 0
models/db/list_options.go View File


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

Loading…
Cancel
Save