aboutsummaryrefslogtreecommitdiffstats
path: root/build
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 /build
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 'build')
-rw-r--r--build/code-batch-process.go3
-rw-r--r--build/codeformat/formatimports.go3
-rw-r--r--build/codeformat/formatimports_test.go3
-rw-r--r--build/generate-bindata.go3
-rw-r--r--build/generate-emoji.go7
-rw-r--r--build/generate-go-licenses.go3
-rw-r--r--build/gocovmerge.go3
7 files changed, 9 insertions, 16 deletions
diff --git a/build/code-batch-process.go b/build/code-batch-process.go
index b6c4171ede..9cc47442b2 100644
--- a/build/code-batch-process.go
+++ b/build/code-batch-process.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
//go:build ignore
diff --git a/build/codeformat/formatimports.go b/build/codeformat/formatimports.go
index 1076e3a0d1..c9fc2a27b4 100644
--- a/build/codeformat/formatimports.go
+++ b/build/codeformat/formatimports.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 codeformat
diff --git a/build/codeformat/formatimports_test.go b/build/codeformat/formatimports_test.go
index 3db90cad7b..c66181d351 100644
--- a/build/codeformat/formatimports_test.go
+++ b/build/codeformat/formatimports_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 codeformat
diff --git a/build/generate-bindata.go b/build/generate-bindata.go
index ab81dd8938..ecd5d5047c 100644
--- a/build/generate-bindata.go
+++ b/build/generate-bindata.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 ignore
diff --git a/build/generate-emoji.go b/build/generate-emoji.go
index 4ad6649b2e..35c23aaf9e 100644
--- a/build/generate-emoji.go
+++ b/build/generate-emoji.go
@@ -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
diff --git a/build/generate-go-licenses.go b/build/generate-go-licenses.go
index 87c773ed8b..ec8fc82a71 100644
--- a/build/generate-go-licenses.go
+++ b/build/generate-go-licenses.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
//go:build ignore
diff --git a/build/gocovmerge.go b/build/gocovmerge.go
index dfe70efdad..c6f74ed85c 100644
--- a/build/gocovmerge.go
+++ b/build/gocovmerge.go
@@ -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