aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorflynnnnnnnnnn <118399147+flynnnnnnnnnn@users.noreply.github.com>2022-11-27 13:20:29 -0500
committerGitHub <noreply@github.com>2022-11-27 18:20:29 +0000
commite81ccc406bf723a5a58d685e7782f281736affd4 (patch)
treebc9812f3f1779f8ce86b8f915d08aafd02e944b9 /cmd
parentf6fd501841816f5e5c1c9a30fbc4c9a2a6f987bc (diff)
downloadgitea-e81ccc406bf723a5a58d685e7782f281736affd4.tar.gz
gitea-e81ccc406bf723a5a58d685e7782f281736affd4.zip
Implement FSFE REUSE for golang files (#21840)
Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/admin.go3
-rw-r--r--cmd/admin_auth_ldap.go3
-rw-r--r--cmd/admin_auth_ldap_test.go3
-rw-r--r--cmd/cert.go3
-rw-r--r--cmd/cmd.go3
-rw-r--r--cmd/convert.go3
-rw-r--r--cmd/docs.go3
-rw-r--r--cmd/doctor.go3
-rw-r--r--cmd/dump.go3
-rw-r--r--cmd/dump_repo.go3
-rw-r--r--cmd/embedded.go3
-rw-r--r--cmd/embedded_stub.go3
-rw-r--r--cmd/generate.go3
-rw-r--r--cmd/hook.go3
-rw-r--r--cmd/hook_test.go3
-rw-r--r--cmd/keys.go3
-rw-r--r--cmd/mailer.go3
-rw-r--r--cmd/main_test.go3
-rw-r--r--cmd/manager.go3
-rw-r--r--cmd/manager_logging.go3
-rw-r--r--cmd/migrate.go3
-rw-r--r--cmd/migrate_storage.go3
-rw-r--r--cmd/migrate_storage_test.go3
-rw-r--r--cmd/restore_repo.go3
-rw-r--r--cmd/serv.go3
-rw-r--r--cmd/web.go3
-rw-r--r--cmd/web_acme.go3
-rw-r--r--cmd/web_graceful.go3
-rw-r--r--cmd/web_https.go3
29 files changed, 29 insertions, 58 deletions
diff --git a/cmd/admin.go b/cmd/admin.go
index 80b5d4853c..a47d9ca109 100644
--- a/cmd/admin.go
+++ b/cmd/admin.go
@@ -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
diff --git a/cmd/admin_auth_ldap.go b/cmd/admin_auth_ldap.go
index 9040def822..91276f221f 100644
--- a/cmd/admin_auth_ldap.go
+++ b/cmd/admin_auth_ldap.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/admin_auth_ldap_test.go b/cmd/admin_auth_ldap_test.go
index 2180b24be5..65f53aaf4e 100644
--- a/cmd/admin_auth_ldap_test.go
+++ b/cmd/admin_auth_ldap_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/cert.go b/cmd/cert.go
index 162c4171bf..816659023c 100644
--- a/cmd/cert.go
+++ b/cmd/cert.go
@@ -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
diff --git a/cmd/cmd.go b/cmd/cmd.go
index f20a936325..493519e135 100644
--- a/cmd/cmd.go
+++ b/cmd/cmd.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package cmd provides subcommands to the gitea binary - such as "web" or
// "admin".
diff --git a/cmd/convert.go b/cmd/convert.go
index 6d4d99a255..b9ed9f1627 100644
--- a/cmd/convert.go
+++ b/cmd/convert.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/docs.go b/cmd/docs.go
index 073c574973..901d0abd1c 100644
--- a/cmd/docs.go
+++ b/cmd/docs.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/doctor.go b/cmd/doctor.go
index d05a0a98d7..ceb6e3fbab 100644
--- a/cmd/doctor.go
+++ b/cmd/doctor.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/dump.go b/cmd/dump.go
index 6569fb6e36..672a8cdc9c 100644
--- a/cmd/dump.go
+++ b/cmd/dump.go
@@ -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
diff --git a/cmd/dump_repo.go b/cmd/dump_repo.go
index 5f41ab69a9..2e78877afe 100644
--- a/cmd/dump_repo.go
+++ b/cmd/dump_repo.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/embedded.go b/cmd/embedded.go
index b71ee6dfe7..118781895e 100644
--- a/cmd/embedded.go
+++ b/cmd/embedded.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/cmd/embedded_stub.go b/cmd/embedded_stub.go
index 26228256f2..874df06f9d 100644
--- a/cmd/embedded_stub.go
+++ b/cmd/embedded_stub.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !bindata
diff --git a/cmd/generate.go b/cmd/generate.go
index 35c77a815b..f72ee16390 100644
--- a/cmd/generate.go
+++ b/cmd/generate.go
@@ -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
diff --git a/cmd/hook.go b/cmd/hook.go
index 83fcd93915..228b79f7f0 100644
--- a/cmd/hook.go
+++ b/cmd/hook.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/hook_test.go b/cmd/hook_test.go
index 92c7e82a9a..fe1f072a6f 100644
--- a/cmd/hook_test.go
+++ b/cmd/hook_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/keys.go b/cmd/keys.go
index 684aca64e2..74dc1cc68c 100644
--- a/cmd/keys.go
+++ b/cmd/keys.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/mailer.go b/cmd/mailer.go
index 35fcb302f8..af6613f159 100644
--- a/cmd/mailer.go
+++ b/cmd/mailer.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/main_test.go b/cmd/main_test.go
index 9cce0ef036..9aacdf7bba 100644
--- a/cmd/main_test.go
+++ b/cmd/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/manager.go b/cmd/manager.go
index 8fbfd1093c..cdfe509075 100644
--- a/cmd/manager.go
+++ b/cmd/manager.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/manager_logging.go b/cmd/manager_logging.go
index 761edf654c..d49675ce87 100644
--- a/cmd/manager_logging.go
+++ b/cmd/manager_logging.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/migrate.go b/cmd/migrate.go
index 49a13adeb5..2546fca21d 100644
--- a/cmd/migrate.go
+++ b/cmd/migrate.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/migrate_storage.go b/cmd/migrate_storage.go
index b6af5b96e8..0b8ebe7c8d 100644
--- a/cmd/migrate_storage.go
+++ b/cmd/migrate_storage.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/migrate_storage_test.go b/cmd/migrate_storage_test.go
index 7051591ad6..aae366c0cf 100644
--- a/cmd/migrate_storage_test.go
+++ b/cmd/migrate_storage_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/restore_repo.go b/cmd/restore_repo.go
index 2256cc61ab..23932f821c 100644
--- a/cmd/restore_repo.go
+++ b/cmd/restore_repo.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/serv.go b/cmd/serv.go
index 06561f348a..346c918b18 100644
--- a/cmd/serv.go
+++ b/cmd/serv.go
@@ -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
diff --git a/cmd/web.go b/cmd/web.go
index 1b9f7e420a..49a0335615 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/web_acme.go b/cmd/web_acme.go
index d8e550b321..90e4a02764 100644
--- a/cmd/web_acme.go
+++ b/cmd/web_acme.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/web_graceful.go b/cmd/web_graceful.go
index ba88cc59c2..996537be3b 100644
--- a/cmd/web_graceful.go
+++ b/cmd/web_graceful.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/web_https.go b/cmd/web_https.go
index aac11517a6..70d35cd40d 100644
--- a/cmd/web_https.go
+++ b/cmd/web_https.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd