fix: pin golangci-lint v2 by commit SHA, remove unused nolint directives
Some checks failed
check / check (push) Has been cancelled

- Fix golangci-lint import path to v2/cmd/golangci-lint
- Pin to v2.8.0 commit SHA (e2e40021c9007020676c93680a36e3ab06c6cd33)
- Use CGO_ENABLED=0 for golangci-lint install
- Remove unused //nolint:gosec directives flagged by nolintlint
This commit is contained in:
clawbot
2026-02-26 20:22:12 -08:00
parent 9daf836cbe
commit cb30b1b054
3 changed files with 8 additions and 7 deletions

View File

@@ -224,7 +224,7 @@ func (s *Handlers) HandleChannelMembers() http.HandlerFunc {
var chID int64
err := s.params.Database.GetDB().QueryRowContext( //nolint:gosec // parameterized query
err := s.params.Database.GetDB().QueryRowContext(
r.Context(),
"SELECT id FROM channels WHERE name = ?",
name,
@@ -401,7 +401,7 @@ func (s *Handlers) sendChannelMsg(
) {
var chID int64
err := s.params.Database.GetDB().QueryRowContext( //nolint:gosec // parameterized query
err := s.params.Database.GetDB().QueryRowContext(
r.Context(),
"SELECT id FROM channels WHERE name = ?",
channel,
@@ -535,7 +535,7 @@ func (s *Handlers) handlePart(
var chID int64
err := s.params.Database.GetDB().QueryRowContext( //nolint:gosec // parameterized query
err := s.params.Database.GetDB().QueryRowContext(
r.Context(),
"SELECT id FROM channels WHERE name = ?",
channel,
@@ -717,7 +717,7 @@ func (s *Handlers) getChannelHistory(
) {
var chID int64
err := s.params.Database.GetDB().QueryRowContext( //nolint:gosec // parameterized query
err := s.params.Database.GetDB().QueryRowContext(
r.Context(),
"SELECT id FROM channels WHERE name = ?",
target,