diff options
author | flynnnnnnnnnn <118399147+flynnnnnnnnnn@users.noreply.github.com> | 2022-11-27 13:20:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 18:20:29 +0000 |
commit | e81ccc406bf723a5a58d685e7782f281736affd4 (patch) | |
tree | bc9812f3f1779f8ce86b8f915d08aafd02e944b9 /modules/util | |
parent | f6fd501841816f5e5c1c9a30fbc4c9a2a6f987bc (diff) | |
download | gitea-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/util')
30 files changed, 30 insertions, 60 deletions
diff --git a/modules/util/compare.go b/modules/util/compare.go index 49891ef024..9ac778dfd3 100644 --- a/modules/util/compare.go +++ b/modules/util/compare.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 util diff --git a/modules/util/error.go b/modules/util/error.go index 08e491dbaf..63bd447bf3 100644 --- a/modules/util/error.go +++ b/modules/util/error.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 util diff --git a/modules/util/file_unix.go b/modules/util/file_unix.go index ec9d4ec167..79a29c8b3b 100644 --- a/modules/util/file_unix.go +++ b/modules/util/file_unix.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 !windows diff --git a/modules/util/file_unix_test.go b/modules/util/file_unix_test.go index 41311aa13f..87d6c2f09a 100644 --- a/modules/util/file_unix_test.go +++ b/modules/util/file_unix_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 //go:build !windows diff --git a/modules/util/file_windows.go b/modules/util/file_windows.go index 6ad3e88ba5..77a33d3c49 100644 --- a/modules/util/file_windows.go +++ b/modules/util/file_windows.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 windows diff --git a/modules/util/filebuffer/file_backed_buffer.go b/modules/util/filebuffer/file_backed_buffer.go index 8e3e138e04..bfddf90e92 100644 --- a/modules/util/filebuffer/file_backed_buffer.go +++ b/modules/util/filebuffer/file_backed_buffer.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 filebuffer diff --git a/modules/util/filebuffer/file_backed_buffer_test.go b/modules/util/filebuffer/file_backed_buffer_test.go index 83ef58561d..16d5a1965f 100644 --- a/modules/util/filebuffer/file_backed_buffer_test.go +++ b/modules/util/filebuffer/file_backed_buffer_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 filebuffer diff --git a/modules/util/io.go b/modules/util/io.go index d765e27733..e5d7561bef 100644 --- a/modules/util/io.go +++ b/modules/util/io.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 util diff --git a/modules/util/legacy.go b/modules/util/legacy.go index d319faad09..2ea293a2be 100644 --- a/modules/util/legacy.go +++ b/modules/util/legacy.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 util diff --git a/modules/util/legacy_test.go b/modules/util/legacy_test.go index c41f7a008c..e732094c29 100644 --- a/modules/util/legacy_test.go +++ b/modules/util/legacy_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 util diff --git a/modules/util/paginate.go b/modules/util/paginate.go index 2baa71664e..f2721df1ad 100644 --- a/modules/util/paginate.go +++ b/modules/util/paginate.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 util diff --git a/modules/util/paginate_test.go b/modules/util/paginate_test.go index 3657efc919..6e69dd19cc 100644 --- a/modules/util/paginate_test.go +++ b/modules/util/paginate_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 util diff --git a/modules/util/path.go b/modules/util/path.go index 3d4ddec21c..03013f7133 100644 --- a/modules/util/path.go +++ b/modules/util/path.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 util diff --git a/modules/util/path_test.go b/modules/util/path_test.go index b0ea448a1c..5794df1ebf 100644 --- a/modules/util/path_test.go +++ b/modules/util/path_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 util diff --git a/modules/util/remove.go b/modules/util/remove.go index d05ee9fe4a..d1e38faf5f 100644 --- a/modules/util/remove.go +++ b/modules/util/remove.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 util diff --git a/modules/util/sanitize.go b/modules/util/sanitize.go index 685b2699b0..f1ea2574f1 100644 --- a/modules/util/sanitize.go +++ b/modules/util/sanitize.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 util diff --git a/modules/util/sanitize_test.go b/modules/util/sanitize_test.go index 78166cfdff..0bcfd45ca4 100644 --- a/modules/util/sanitize_test.go +++ b/modules/util/sanitize_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 util diff --git a/modules/util/sec_to_time.go b/modules/util/sec_to_time.go index 13461915e6..017ed45f8c 100644 --- a/modules/util/sec_to_time.go +++ b/modules/util/sec_to_time.go @@ -1,6 +1,5 @@ // Copyright 2022 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 util diff --git a/modules/util/sec_to_time_test.go b/modules/util/sec_to_time_test.go index 1e256aa865..4d1213a52c 100644 --- a/modules/util/sec_to_time_test.go +++ b/modules/util/sec_to_time_test.go @@ -1,6 +1,5 @@ // Copyright 2022 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 util diff --git a/modules/util/shellquote.go b/modules/util/shellquote.go index 5a12c2e261..434dc4236e 100644 --- a/modules/util/shellquote.go +++ b/modules/util/shellquote.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 util diff --git a/modules/util/shellquote_test.go b/modules/util/shellquote_test.go index be6ba372fd..969998c592 100644 --- a/modules/util/shellquote_test.go +++ b/modules/util/shellquote_test.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 util diff --git a/modules/util/slice.go b/modules/util/slice.go index 552f5b866a..17345cbc49 100644 --- a/modules/util/slice.go +++ b/modules/util/slice.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 util diff --git a/modules/util/string.go b/modules/util/string.go index 2da2bc5dc4..f2def7b0ec 100644 --- a/modules/util/string.go +++ b/modules/util/string.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 util diff --git a/modules/util/string_test.go b/modules/util/string_test.go index 49de29ab67..0a4a8bbcfb 100644 --- a/modules/util/string_test.go +++ b/modules/util/string_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 util diff --git a/modules/util/timer.go b/modules/util/timer.go index b682f376d9..daf96bda7e 100644 --- a/modules/util/timer.go +++ b/modules/util/timer.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 util diff --git a/modules/util/truncate.go b/modules/util/truncate.go index 2e6f7f68b0..032a6c0872 100644 --- a/modules/util/truncate.go +++ b/modules/util/truncate.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 util diff --git a/modules/util/truncate_test.go b/modules/util/truncate_test.go index e505a6ee4a..912bfb3d5f 100644 --- a/modules/util/truncate_test.go +++ b/modules/util/truncate_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 util diff --git a/modules/util/url.go b/modules/util/url.go index 96c66df92b..75fcf634a9 100644 --- a/modules/util/url.go +++ b/modules/util/url.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 util diff --git a/modules/util/util.go b/modules/util/util.go index 6df47ca568..9d3a8dcfac 100644 --- a/modules/util/util.go +++ b/modules/util/util.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 util diff --git a/modules/util/util_test.go b/modules/util/util_test.go index 91b0ef9455..34fe070d22 100644 --- a/modules/util/util_test.go +++ b/modules/util/util_test.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 util |