summaryrefslogtreecommitdiffstats
path: root/modules/charset
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 /modules/charset
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 'modules/charset')
-rw-r--r--modules/charset/ambiguous.go3
-rw-r--r--modules/charset/ambiguous/generate.go7
-rw-r--r--modules/charset/ambiguous_gen.go3
-rw-r--r--modules/charset/ambiguous_gen_test.go3
-rw-r--r--modules/charset/breakwriter.go3
-rw-r--r--modules/charset/breakwriter_test.go3
-rw-r--r--modules/charset/charset.go3
-rw-r--r--modules/charset/charset_test.go3
-rw-r--r--modules/charset/escape.go3
-rw-r--r--modules/charset/escape_status.go3
-rw-r--r--modules/charset/escape_stream.go3
-rw-r--r--modules/charset/escape_test.go3
-rw-r--r--modules/charset/htmlstream.go3
-rw-r--r--modules/charset/invisible/generate.go7
-rw-r--r--modules/charset/invisible_gen.go3
15 files changed, 19 insertions, 34 deletions
diff --git a/modules/charset/ambiguous.go b/modules/charset/ambiguous.go
index 9dab3b0951..c5b0c2c54d 100644
--- a/modules/charset/ambiguous.go
+++ b/modules/charset/ambiguous.go
@@ -1,7 +1,6 @@
// This file is generated by modules/charset/ambiguous/generate.go DO NOT EDIT
// 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 charset
diff --git a/modules/charset/ambiguous/generate.go b/modules/charset/ambiguous/generate.go
index 7dd2821aae..b0c2531008 100644
--- a/modules/charset/ambiguous/generate.go
+++ b/modules/charset/ambiguous/generate.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 main
@@ -135,8 +134,8 @@ func runTemplate(t *template.Template, filename string, data interface{}) error
var generatorTemplate = template.Must(template.New("ambiguousTemplate").Parse(`// This file is generated by modules/charset/ambiguous/generate.go DO NOT EDIT
// 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 charset
diff --git a/modules/charset/ambiguous_gen.go b/modules/charset/ambiguous_gen.go
index cc270affac..c88ffd5aa5 100644
--- a/modules/charset/ambiguous_gen.go
+++ b/modules/charset/ambiguous_gen.go
@@ -1,7 +1,6 @@
// This file is generated by modules/charset/ambiguous/generate.go DO NOT EDIT
// 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 charset
diff --git a/modules/charset/ambiguous_gen_test.go b/modules/charset/ambiguous_gen_test.go
index bd64e1c5b1..221c27d0e1 100644
--- a/modules/charset/ambiguous_gen_test.go
+++ b/modules/charset/ambiguous_gen_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 charset
diff --git a/modules/charset/breakwriter.go b/modules/charset/breakwriter.go
index 619826ff21..a87e846466 100644
--- a/modules/charset/breakwriter.go
+++ b/modules/charset/breakwriter.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 charset
diff --git a/modules/charset/breakwriter_test.go b/modules/charset/breakwriter_test.go
index 6bbed42ea5..5eeeedc4e2 100644
--- a/modules/charset/breakwriter_test.go
+++ b/modules/charset/breakwriter_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 charset
diff --git a/modules/charset/charset.go b/modules/charset/charset.go
index a1210d2f05..51152142a5 100644
--- a/modules/charset/charset.go
+++ b/modules/charset/charset.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 charset
diff --git a/modules/charset/charset_test.go b/modules/charset/charset_test.go
index 6dd13c039d..fc56799b47 100644
--- a/modules/charset/charset_test.go
+++ b/modules/charset/charset_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 charset
diff --git a/modules/charset/escape.go b/modules/charset/escape.go
index b264a569ff..ce2eb1446d 100644
--- a/modules/charset/escape.go
+++ b/modules/charset/escape.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:generate go run invisible/generate.go -v -o ./invisible_gen.go
diff --git a/modules/charset/escape_status.go b/modules/charset/escape_status.go
index 7ff0ef112b..37b6ad86d4 100644
--- a/modules/charset/escape_status.go
+++ b/modules/charset/escape_status.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 charset
diff --git a/modules/charset/escape_stream.go b/modules/charset/escape_stream.go
index e5f303d26f..d29e393ab4 100644
--- a/modules/charset/escape_stream.go
+++ b/modules/charset/escape_stream.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 charset
diff --git a/modules/charset/escape_test.go b/modules/charset/escape_test.go
index a7232a4658..abe767f4a5 100644
--- a/modules/charset/escape_test.go
+++ b/modules/charset/escape_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 charset
diff --git a/modules/charset/htmlstream.go b/modules/charset/htmlstream.go
index b354ce6a48..61f29120a6 100644
--- a/modules/charset/htmlstream.go
+++ b/modules/charset/htmlstream.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 charset
diff --git a/modules/charset/invisible/generate.go b/modules/charset/invisible/generate.go
index 39eddd58dd..9dfc253333 100644
--- a/modules/charset/invisible/generate.go
+++ b/modules/charset/invisible/generate.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 main
@@ -88,8 +87,8 @@ func runTemplate(t *template.Template, filename string, data interface{}) error
var generatorTemplate = template.Must(template.New("invisibleTemplate").Parse(`// This file is generated by modules/charset/invisible/generate.go DO NOT EDIT
// 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 charset
diff --git a/modules/charset/invisible_gen.go b/modules/charset/invisible_gen.go
index b3bfebe0c0..812f0e34b3 100644
--- a/modules/charset/invisible_gen.go
+++ b/modules/charset/invisible_gen.go
@@ -1,7 +1,6 @@
// This file is generated by modules/charset/invisible/generate.go DO NOT EDIT
// 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 charset