Skip to content

Commit

Permalink
chore: clean up golangci-lint
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
  • Loading branch information
mmorel-35 committed Feb 21, 2025
1 parent 49c1933 commit c8eee00
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- id: goversion
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{ steps.goversion.outputs.goversion }}
go-version-file: .go-version
- name: golangci-lint
uses: golangci/golangci-lint-action@2e788936b09dd82dc280e845628a40d2ba6b204c # v6.3.1
with:
Expand Down
13 changes: 7 additions & 6 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
---
run:
timeout: 30m
skip-files:
- "^zz_generated.*"

issues:
max-same-issues: 0
exclude-files:
- "^zz_generated.*"
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
# exclude ineffassing linter for generated files for conversion
- path: conversion\.go
linters:
- ineffassign
max-same-issues: 0

linters:
disable-all: true
Expand All @@ -21,6 +18,7 @@ linters:
# - deadcode
# - structcheck
# - varcheck
- gofmt
- goimports
- ineffassign
- nakedret
Expand All @@ -39,3 +37,6 @@ linters-settings: # please keep this alphabetized
stylecheck:
checks:
- "ST1019" # Importing the same package multiple times.

run:
timeout: 30m

0 comments on commit c8eee00

Please sign in to comment.