Skip to content

Add golangci-lint

Add golangci-lint #57

Triggered via pull request April 28, 2024 19:55
@weqqrweqqr
opened #49
lint
Status Failure
Total duration 1m 16s
Artifacts

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
build: internal/tile/tiler.go#L109
error is not nil (line 107) but it returns nil (nilerr)
build: internal/tile/tiler.go#L114
error is not nil (line 112) but it returns nil (nilerr)
build: internal/world/world.go#L72
return both the `nil` error and invalid value: use a sentinel error instead (nilnil)
build: internal/world/world.go#L84
return both the `nil` error and invalid value: use a sentinel error instead (nilnil)
build: internal/mesh/obj.go#L39
variable name 'x' is too short for the scope of its usage (varnamelen)
build: internal/mesh/mesh.go#L66
variable name 'xp' is too short for the scope of its usage (varnamelen)
build: internal/mesh/obj.go#L22
variable name 'y' is too short for the scope of its usage (varnamelen)
build: internal/mesh/mesh.go#L86
variable name 'zp' is too short for the scope of its usage (varnamelen)
build: internal/mesh/mesh.go#L56
variable name 'ym' is too short for the scope of its usage (varnamelen)
build: internal/mesh/mesh.go#L96
variable name 'zm' is too short for the scope of its usage (varnamelen)
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.