Add linters #23
Annotations
10 errors and 1 warning
validate:
internal/handlers/quote/listQuotes.go#L40
Magic number: 10, in <operation> detected (mnd)
|
validate:
internal/handlers/quote/handler.go#L59
error returned from external package is unwrapped: sig: func (*github.com/bwmarrin/discordgo.State).Member(guildID string, userID string) (*github.com/bwmarrin/discordgo.Member, error) (wrapcheck)
|
validate:
internal/handlers/quote/listQuotes.go#L63
error returned from external package is unwrapped: sig: func (*github.com/bwmarrin/discordgo.State).Member(guildID string, userID string) (*github.com/bwmarrin/discordgo.Member, error) (wrapcheck)
|
validate:
internal/handlers/quote/listQuotes.go#L80
error returned from external package is unwrapped: sig: func (*github.com/bwmarrin/discordgo.Session).ChannelMessageSendEmbeds(channelID string, embeds []*github.com/bwmarrin/discordgo.MessageEmbed, options ...github.com/bwmarrin/discordgo.RequestOption) (*github.com/bwmarrin/discordgo.Message, error) (wrapcheck)
|
validate:
internal/handlers/roll/handler.go#L50
for loop can be changed to use an integer range (Go 1.22+) (intrange)
|
validate:
internal/db/migrator.go#L103
error returned from external package is unwrapped: sig: func (*database/sql.Tx).Exec(query string, args ...any) (database/sql.Result, error) (wrapcheck)
|
validate:
internal/db/migrator.go#L115
error returned from external package is unwrapped: sig: func (*database/sql.Tx).Exec(query string, args ...any) (database/sql.Result, error) (wrapcheck)
|
validate:
internal/db/migrator.go#L126
error returned from external package is unwrapped: sig: func (*database/sql.DB).Query(query string, args ...any) (*database/sql.Rows, error) (wrapcheck)
|
validate:
internal/db/migrator.go#L134
error returned from external package is unwrapped: sig: func (*database/sql.DB).Query(query string, args ...any) (*database/sql.Rows, error) (wrapcheck)
|
validate:
internal/db/migrator.go#L140
error returned from external package is unwrapped: sig: func (*database/sql.Rows).Scan(dest ...any) error (wrapcheck)
|
validate
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|