diff options
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.html | 2 | ||||
-rwxr-xr-x | scripts/lint.sh | 2 |
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 @@ -1,4 +1,4 @@ -module git.sr.ht/~runxiyu/cca +module git.sr.ht/~runxiyu/cca/backend go 1.23.1 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/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’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 |