CI: update actions and golangci-lint by AkihiroSuda · Pull Request #1459 · sirupsen/logrus (original) (raw)

@AkihiroSuda mentioned this pull request

Jun 19, 2025

thaJeztah

@AkihiroSuda

Signed-off-by: Akihiro Suda akihiro.suda.cz@hco.ntt.co.jp

@AkihiroSuda

Signed-off-by: Akihiro Suda akihiro.suda.cz@hco.ntt.co.jp

@AkihiroSuda

WARN [runner/nolint_filter] Found unknown linters in //nolint directives: scopelint
entry.go:44:6: the methods of "Entry" use pointer receiver and non-pointer receiver. (recvcheck)
type Entry struct {
     ^
logrus.go:13:6: the methods of "Level" use pointer receiver and non-pointer receiver. (recvcheck)
type Level uint32
     ^
internal/testutils/testutils.go:10:2: ST1001: should not use dot imports (staticcheck)
        . "github.com/sirupsen/logrus"
        ^
text_formatter.go:309:6: QF1001: could apply De Morgan's law (staticcheck)
                if !((ch >= 'a' && ch <= 'z') ||
                   ^
text_formatter.go:337:3: QF1012: Use fmt.Fprintf(...) instead of WriteString(fmt.Sprintf(...)) (staticcheck)
                b.WriteString(fmt.Sprintf("%q", stringVal))
                ^
internal/testutils/testutils.go:26:2: error-nil: use require.NoError (testifylint)
        require.Nil(t, err)
        ^
6 issues:
* recvcheck: 2
* staticcheck: 3
* testifylint: 1

Signed-off-by: Akihiro Suda akihiro.suda.cz@hco.ntt.co.jp

@AkihiroSuda

Also set GOTOOLCHAIN=local so as to enforce installing a specific version of Go

Signed-off-by: Akihiro Suda akihiro.suda.cz@hco.ntt.co.jp

@AkihiroSuda AkihiroSuda changed the titleCI: update actions CI: update actions and golangci-lint

Jun 20, 2025

thaJeztah

arthurzam pushed a commit to gentoo-golang-dist/forgejo-runner that referenced this pull request

Jan 18, 2026

@viceice-bot

Luzifer pushed a commit to Luzifer/automail that referenced this pull request

Mar 21, 2026

@luzifer-ci

This was referenced

Apr 23, 2026

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})