summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--backend/Makefile (renamed from Makefile)0
-rw-r--r--backend/auth.go (renamed from auth.go)0
-rw-r--r--backend/config.go (renamed from config.go)0
-rw-r--r--backend/courses.go (renamed from courses.go)0
-rw-r--r--backend/db.go (renamed from db.go)0
-rw-r--r--backend/go.mod (renamed from go.mod)2
-rw-r--r--backend/go.sum (renamed from go.sum)0
-rw-r--r--backend/index.go (renamed from index.go)0
-rw-r--r--backend/main.go (renamed from main.go)0
-rw-r--r--backend/usem.go (renamed from usem.go)0
-rw-r--r--backend/utils.go (renamed from utils.go)0
-rw-r--r--backend/wsc.go (renamed from wsc.go)0
-rw-r--r--backend/wsh.go (renamed from wsh.go)0
-rw-r--r--backend/wsm.go (renamed from wsm.go)0
-rw-r--r--backend/wsp.go (renamed from wsp.go)0
-rw-r--r--backend/wsx.go (renamed from wsx.go)0
-rw-r--r--docs/admin_handbook.html2
-rwxr-xr-xscripts/lint.sh2
18 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/backend/Makefile
index 08566d8..08566d8 100644
--- a/Makefile
+++ b/backend/Makefile
diff --git a/auth.go b/backend/auth.go
index 9ef1254..9ef1254 100644
--- a/auth.go
+++ b/backend/auth.go
diff --git a/config.go b/backend/config.go
index e5bea02..e5bea02 100644
--- a/config.go
+++ b/backend/config.go
diff --git a/courses.go b/backend/courses.go
index 4e1ea51..4e1ea51 100644
--- a/courses.go
+++ b/backend/courses.go
diff --git a/db.go b/backend/db.go
index 9ced627..9ced627 100644
--- a/db.go
+++ b/backend/db.go
diff --git a/go.mod b/backend/go.mod
index 188f42e..717f737 100644
--- a/go.mod
+++ b/backend/go.mod
@@ -1,4 +1,4 @@
-module git.sr.ht/~runxiyu/cca
+module git.sr.ht/~runxiyu/cca/backend
go 1.23.1
diff --git a/go.sum b/backend/go.sum
index ca23612..ca23612 100644
--- a/go.sum
+++ b/backend/go.sum
diff --git a/index.go b/backend/index.go
index f446072..f446072 100644
--- a/index.go
+++ b/backend/index.go
diff --git a/main.go b/backend/main.go
index a185de9..a185de9 100644
--- a/main.go
+++ b/backend/main.go
diff --git a/usem.go b/backend/usem.go
index 0b839a4..0b839a4 100644
--- a/usem.go
+++ b/backend/usem.go
diff --git a/utils.go b/backend/utils.go
index 3628c80..3628c80 100644
--- a/utils.go
+++ b/backend/utils.go
diff --git a/wsc.go b/backend/wsc.go
index 982c1fb..982c1fb 100644
--- a/wsc.go
+++ b/backend/wsc.go
diff --git a/wsh.go b/backend/wsh.go
index abf4e61..abf4e61 100644
--- a/wsh.go
+++ b/backend/wsh.go
diff --git a/wsm.go b/backend/wsm.go
index 5f271ff..5f271ff 100644
--- a/wsm.go
+++ b/backend/wsm.go
diff --git a/wsp.go b/backend/wsp.go
index 7a1f6ab..7a1f6ab 100644
--- a/wsp.go
+++ b/backend/wsp.go
diff --git a/wsx.go b/backend/wsx.go
index a51b976..a51b976 100644
--- a/wsx.go
+++ b/backend/wsx.go
diff --git a/docs/admin_handbook.html b/docs/admin_handbook.html
index 8f305c0..14af917 100644
--- a/docs/admin_handbook.html
+++ b/docs/admin_handbook.html
@@ -27,7 +27,7 @@
</ul>
<h2>Building</h2>
<p>
- There is a top-level <code>Makefile</code> that builds the backend. This is all the compilation necessary at the moment; in the future, the front-end code such as the CSS and JavaScript may be minified too.
+ There is a <code>Makefile</code> in the <code>backend</code> directory that builds the backend. This is all the compilation necessary at the moment; in the future, the frontend code such as the CSS and JavaScript may be minified too.
</p>
<p>
You may also wish to strip the binary&rsquo;s debug symbols to shrink the file size:
diff --git a/scripts/lint.sh b/scripts/lint.sh
index 6757deb..75ec46d 100755
--- a/scripts/lint.sh
+++ b/scripts/lint.sh
@@ -1,2 +1,4 @@
#!/bin/sh
+set -e
+cd backend
golangci-lint run --color=always --enable-all --disable=wsl,funlen,exportloopref,gomnd,execinquery,godox,lll,gochecknoglobals,depguard,cyclop,gosmopolitan,nlreturn,varnamelen,nestif,musttag,mnd,tagliatelle,gocognit,gocyclo,maintidx,dogsled,unparam,nonamedreturns