🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Improves golangci-lint configuration and workflow (#3004)
Ludovic Fernandez4d29184998c9
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.ymlindex 75ebc4c37..07ffece50 100644--- a/.github/workflows/pipeline.yml+++ b/.github/workflows/pipeline.yml@@ -21,11 +21,11 @@ jobs:run: git config --global --add safe.directory $GITHUB_WORKSPACE; git describe --dirty --always --tags- name: golangci-lint- uses: golangci/golangci-lint-action@v4+ uses: golangci/golangci-lint-action@v6with:- # TODO: revert to latest when this issue is resolved: https://github.com/golangci/golangci-lint/issues/4695- version: v1.57.2+ version: latestgithub-token: ${{ secrets.GITHUB_TOKEN }}+ problem-matchers: trueargs: --timeout 2m- name: Install goimportsdiff --git a/.golangci.yml b/.golangci.ymlindex f9a2caf8a..6f7f22d3a 100644--- a/.golangci.yml+++ b/.golangci.yml@@ -1,6 +1,3 @@-run:- go: "1.20"-linters:enable:- asasalint@@ -28,8 +25,9 @@ linters:- unused- whitespace-issues:- exclude-rules:- - linters:- - gosec- text: "(G501|G401|G505):"+linters-settings:+ gosec:+ excludes:+ - G501+ - G401+ - G505