Error: can't load config: gci is a formatter #1223
-
Welcome
Description of the problemThe command Error: can't load config: gci is a formatter Failed executing command with error: can't load config: gci is a formatter Version of golangci-lint2.0.2 Version of the GitHub Action2.323.0 Workflow filejobs: test: name: Test runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 submodules: recursive token: ${{ secrets.GH_TOKEN }} - name: Set up Go uses: actions/setup-go@v5 with: go-version: 1.21 - name: Run golangci-lint Format Check uses: golangci/golangci-lint-action@v7 with: github-token: ${{ secrets.GH_TOKEN }} version: v2.0.2 args: fmt --enable gci --enable gofmt --timeout=10m Golangci-lint configurationversion: "2" linters: enable: - gosec - misspell - prealloc - tagalign disable: - errcheck settings: gosec: excludes: - "G304" - "G104" formatters: settings: gci: custom-order: true sections: - standard - prefix(github.com/MY-COMPANY) - default gofmt: simplify: true Go version1.21 Code example or link to a public repository// add your code here |
Beta Was this translation helpful? Give feedback.
Answered by ldez Apr 9, 2025
Replies: 1 comment
-
duplicate of #1214 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by ldez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
duplicate of #1214