Skip to content

Add golangci-lint for static check. #35

Add golangci-lint for static check.

Add golangci-lint for static check. #35

Triggered via push April 13, 2024 23:49
Status Failure
Total duration 1m 19s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
lint: src/application/init_db/main.go#L17
Error return value of `mapper.CreateUser` is not checked (errcheck)
lint: src/application/init_db/main.go#L26
Error return value of `mapper.CreateUser` is not checked (errcheck)
lint: src/core/agent/minio/local.go#L32
Error return value of `filepath.Walk` is not checked (errcheck)
lint: src/application/rpc_server/impls/streamer.go#L26
Error return value of `server.Send` is not checked (errcheck)
lint: src/service/mapper/problem.go#L40
fieldalignment: struct with 80 pointer bytes could be 64 (govet)
lint: src/service/mapper/user.go#L82
fieldalignment: struct with 64 pointer bytes could be 56 (govet)
lint: src/application/problem_package_loader/main.go#L42
Error return value of `filepath.Walk` is not checked (errcheck)
lint: src/application/problem_package_loader/main.go#L76
Error return value of `mapper.CreateProblem` is not checked (errcheck)
lint: src/application/problem_package_loader/main.go#L53
shadow: declaration of "err" shadows declaration at line 42 (govet)
lint: src/application/problem_package_loader/main.go#L70
shadow: declaration of "err" shadows declaration at line 42 (govet)
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint: src/core/agent/minio/client.go#L1
var-naming: don't use MixedCaps in package name; minioAgent should be minioagent (revive)
lint: src/core/agent/minio/local.go#L1
var-naming: don't use MixedCaps in package name; minioAgent should be minioagent (revive)
lint: src/application/rpc_server/impls/streamer.go#L14
unused-parameter: parameter 'request' seems to be unused, consider removing or renaming it as _ (revive)
lint: src/application/rpc_server/impls/greeter.go#L14
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
lint: src/service/mapper/problem.go#L14
var-naming: don't use underscores in Go names; var db_problem should be dbProblem (revive)
lint: src/service/mapper/submission.go#L23
var-naming: don't use underscores in Go names; var db_submission should be dbSubmission (revive)
lint: src/service/mapper/user.go#L28
var-naming: don't use underscores in Go names; var db_user should be dbUser (revive)
lint: src/service/mapper/user.go#L39
var-naming: don't use underscores in Go names; var db_user should be dbUser (revive)
lint: src/service/mapper/user.go#L112
var-naming: don't use underscores in Go names; var db_users should be dbUsers (revive)
lint: src/service/mapper/user.go#L71
redefines-builtin-id: redefinition of the built-in function new (revive)