Skip to content

Add linters

Add linters #22

Triggered via pull request December 24, 2024 23:14
Status Failure
Total duration 1m 26s
Artifacts

validate.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
validate: internal/pkg/dbUtils/txWrapper.go#L1
var-naming: don't use MixedCaps in package name; dbUtils should be dbutils (revive)
validate: internal/pkg/dbUtils/operation.go#L1
var-naming: don't use MixedCaps in package name; dbUtils should be dbutils (revive)
validate: internal/pkg/discordUtils/utils.go#L1
var-naming: don't use MixedCaps in package name; discordUtils should be discordutils (revive)
validate: internal/pkg/discordUtils/optionsMapper.go#L1
var-naming: don't use MixedCaps in package name; discordUtils should be discordutils (revive)
validate: internal/discord/cast.go#L12
Cast is a global variable (gochecknoglobals)
validate: internal/discord/lock.go#L19
Lock is a global variable (gochecknoglobals)
validate: internal/discord/quote.go#L13
Quote is a global variable (gochecknoglobals)
validate: internal/discord/roll.go#L28
Roll is a global variable (gochecknoglobals)
validate: internal/discord/unlock.go#L11
Unlock is a global variable (gochecknoglobals)
validate: internal/handlers/roll/handler.go#L50
for loop can be changed to use an integer range (Go 1.22+) (intrange)
validate
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636