Skip to content

Commit

Permalink
pin golangci-lint version to latest available, fix reported errors
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed May 9, 2024
1 parent 877765c commit d0cd5d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
version: v1.58
working-directory: backend/app

- name: golangci-lint on example directory
uses: golangci/golangci-lint-action@v3
with:
version: latest
version: v1.58
args: --config ../../.golangci.yml
working-directory: backend/_example/memory_store

Expand Down
15 changes: 7 additions & 8 deletions backend/.golangci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
run:
timeout: 5m
output:
format: tab
skip-dirs:
- vendor

linters-settings:
govet:
check-shadowing: true
maligned:
suggest-new: true
enable:
- shadow
goconst:
min-len: 2
min-occurrences: 2
Expand All @@ -31,7 +26,9 @@ linters-settings:
linters:
enable:
- bodyclose
- megacheck
- gosimple
- staticcheck
- unused
- revive
- govet
- unconvert
Expand All @@ -54,6 +51,8 @@ linters:
disable-all: true

issues:
exclude-dirs:
- vendor
exclude-rules:
- text: "at least one file in a package should have a package comment"
linters:
Expand Down

0 comments on commit d0cd5d8

Please sign in to comment.