Skip to content

Commit

Permalink
fix up lint target
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorVin committed Nov 4, 2024
1 parent 8f404fd commit a2dd373
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push-pr-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: golangci/golangci-lint-action@v6
with:
args: --config .golangci.yml --timeout 2m
version: v1.56.2
version: v1.61.0

- name: Test
run: go test ./...
Expand Down
18 changes: 7 additions & 11 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
service:
golangci-lint-version: v1.56.2 # use the fixed version to not introduce new linters unexpectedly
golangci-lint-version: v1.61.0 # use the fixed version to not introduce new linters unexpectedly

linters-settings:
govet:
auto-fix: true
check-shadowing: true
shadowing: true
settings:
printf:
funcs:
Expand Down Expand Up @@ -65,7 +65,7 @@ linters:
# additional linters
- bodyclose
- gocritic
- goerr113
- err113
- goimports
- revive
- misspell
Expand All @@ -80,18 +80,14 @@ linters:
- nilerr
- reassign
- whitespace
- exportloopref
enable-all: false
disable-all: true

run:
# build-tags:
skip-dirs:
- internal/fixtures
skip-files:
- "(.*/)*.*_test.go"

issues:
exclude-files:
- "(.*/)*.*_test.go"
exclude_dirs:
- internal/fixtures
exclude-rules:
- linters:
- gosec
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ REPO := "https://github.com/metal-toolbox/flasher.git"
.DEFAULT_GOAL := help

## lint
lint: gen-mock
lint:
golangci-lint run --config .golangci.yml

## Generate mocks
Expand Down

0 comments on commit a2dd373

Please sign in to comment.