aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2022-12-02 22:14:57 +0800
committerGitHub <noreply@github.com>2022-12-02 22:14:57 +0800
commitf59a74852bb530bd728ecf62f5c8be510d2c3770 (patch)
treec80cddfb294cf5957619bc157ee939feca40446c /modules
parentd64063277d77a0eea5fa13d257a25ec554367c71 (diff)
downloadgitea-f59a74852bb530bd728ecf62f5c8be510d2c3770.tar.gz
gitea-f59a74852bb530bd728ecf62f5c8be510d2c3770.zip
Update gitea-vet to check FSFE REUSE (#22004)
Related to: - #21840 - https://gitea.com/gitea/gitea-vet/pulls/21 What it looks like when it's working: https://drone.gitea.io/go-gitea/gitea/64040/1/5 All available SPDX license identifiers: [SPDX License List](https://spdx.org/licenses/). Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/context/csrf.go1
-rw-r--r--modules/context/xsrf.go1
-rw-r--r--modules/context/xsrf_test.go1
-rw-r--r--modules/json/json.go2
-rw-r--r--modules/paginator/paginator.go1
-rw-r--r--modules/paginator/paginator_test.go1
-rw-r--r--modules/session/redis.go1
7 files changed, 7 insertions, 1 deletions
diff --git a/modules/context/csrf.go b/modules/context/csrf.go
index df775048cb..6639a8b008 100644
--- a/modules/context/csrf.go
+++ b/modules/context/csrf.go
@@ -13,6 +13,7 @@
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations
// under the License.
+// SPDX-License-Identifier: Apache-2.0
// a middleware that generates and validates CSRF tokens.
diff --git a/modules/context/xsrf.go b/modules/context/xsrf.go
index e3ecc82f6d..15e36d1859 100644
--- a/modules/context/xsrf.go
+++ b/modules/context/xsrf.go
@@ -13,6 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+// SPDX-License-Identifier: Apache-2.0
package context
diff --git a/modules/context/xsrf_test.go b/modules/context/xsrf_test.go
index ef42d61d5a..21cda5d5d4 100644
--- a/modules/context/xsrf_test.go
+++ b/modules/context/xsrf_test.go
@@ -13,6 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+// SPDX-License-Identifier: Apache-2.0
package context
diff --git a/modules/json/json.go b/modules/json/json.go
index 35691eec86..5f8c474e05 100644
--- a/modules/json/json.go
+++ b/modules/json/json.go
@@ -1,5 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
+// SPDX-License-Identifier: MIT
package json
diff --git a/modules/paginator/paginator.go b/modules/paginator/paginator.go
index 342ee8929c..8258d194c2 100644
--- a/modules/paginator/paginator.go
+++ b/modules/paginator/paginator.go
@@ -1,5 +1,6 @@
// Copyright 2022 The Gitea Authors.
// Copyright 2015 https://github.com/unknwon. Licensed under the Apache License, Version 2.0
+// SPDX-License-Identifier: Apache-2.0
package paginator
diff --git a/modules/paginator/paginator_test.go b/modules/paginator/paginator_test.go
index 404f76f6c4..41bb305337 100644
--- a/modules/paginator/paginator_test.go
+++ b/modules/paginator/paginator_test.go
@@ -1,5 +1,6 @@
// Copyright 2022 The Gitea Authors.
// Copyright 2015 https://github.com/unknwon. Licensed under the Apache License, Version 2.0
+// SPDX-License-Identifier: Apache-2.0
package paginator
diff --git a/modules/session/redis.go b/modules/session/redis.go
index 334418bd7e..5fb59e4804 100644
--- a/modules/session/redis.go
+++ b/modules/session/redis.go
@@ -13,6 +13,7 @@
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations
// under the License.
+// SPDX-License-Identifier: Apache-2.0
package session