aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-08 13:53:54 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-08 13:53:54 +0800
commit74348a39caf2985d475d30408b353cac07b260b7 (patch)
treede235fc3f6d60542e55c9beb1c32abf39ac84156
parent*: Bump dependencies (diff)
downloadforge-74348a39caf2985d475d30408b353cac07b260b7.tar.gz
forge-74348a39caf2985d475d30408b353cac07b260b7.tar.zst
forge-74348a39caf2985d475d30408b353cac07b260b7.zip
*: Add missing license headers
-rw-r--r--.editorconfig3
-rw-r--r--fedauth.go3
-rwxr-xr-xscripts/lint3
-rwxr-xr-xscripts/update_deps3
-rw-r--r--sql/purge.sql3
-rw-r--r--sql/test.sql3
6 files changed, 18 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
index 9ae36a9..bd3997b 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,3 +1,6 @@
+# SPDX-License-Identifier: AGPL-3.0-only
+# SPDX-FileContributor: Runxi Yu <https://runxiyu.org>
+
root = true
[*]
diff --git a/fedauth.go b/fedauth.go
index 8b1b764..e1fcfff 100644
--- a/fedauth.go
+++ b/fedauth.go
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// SPDX-FileContributor: Runxi Yu <https://runxiyu.org>
+
package main
import (
diff --git a/scripts/lint b/scripts/lint
index 7850f0e..14e5002 100755
--- a/scripts/lint
+++ b/scripts/lint
@@ -1,3 +1,6 @@
#!/bin/sh
+# SPDX-License-Identifier: AGPL-3.0-only
+# SPDX-FileContributor: Runxi Yu <https://runxiyu.org>
+
golangci-lint run . --enable-all --disable wsl,wrapcheck,nlreturn,nonamedreturns,mnd,lll,intrange,godox,gochecknoglobals,gochecknoinits,forcetypeassert,gofmt,gofumpt,revive,stylecheck,exhaustruct,godot,unparam,err113,depguard
diff --git a/scripts/update_deps b/scripts/update_deps
index 723e858..448dff3 100755
--- a/scripts/update_deps
+++ b/scripts/update_deps
@@ -1,5 +1,8 @@
#!/bin/sh
+# SPDX-License-Identifier: AGPL-3.0-only
+# SPDX-FileContributor: Runxi Yu <https://runxiyu.org>
+
set -eux
go get -t -u
diff --git a/sql/purge.sql b/sql/purge.sql
index 03eecc3..1bada45 100644
--- a/sql/purge.sql
+++ b/sql/purge.sql
@@ -1,2 +1,5 @@
+-- SPDX-License-Identifier: AGPL-3.0-only
+-- SPDX-FileContributor: Runxi Yu <https://runxiyu.org>
+
DROP SCHEMA public CASCADE;
CREATE SCHEMA public;
diff --git a/sql/test.sql b/sql/test.sql
index b270b76..2ad621c 100644
--- a/sql/test.sql
+++ b/sql/test.sql
@@ -1,3 +1,6 @@
+-- SPDX-License-Identifier: AGPL-3.0-only
+-- SPDX-FileContributor: Runxi Yu <https://runxiyu.org>
+
WITH parent_group AS (
INSERT INTO groups (name, description)
VALUES ('lindenii', 'The Lindenii Project')