Skip to content

Commit

Permalink
Run ineffassign within golangci-lint check (#203)
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Shishkin <me@teran.dev>
  • Loading branch information
teran authored Sep 2, 2024
1 parent 745ec86 commit 12157c4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,6 @@ jobs:
- uses: actions/checkout@v4
- uses: articulate/actions-markdownlint@v1

ineffassign:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23.x'
- name: Install ineffassign
run: go install github.com/gordonklaus/ineffassign@latest
- name: Run ineffassign
run: ineffassign ./...

golangci:
runs-on: ubuntu-latest
steps:
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,6 @@ jobs:
- uses: actions/checkout@v4
- uses: articulate/actions-markdownlint@v1

ineffassign:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23.x'
- name: Install ineffassign
run: go install github.com/gordonklaus/ineffassign@latest
- name: Run ineffassign
run: ineffassign ./...

golangci:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ linters:
disable-all: true
enable:
- gofmt
- ineffassign

0 comments on commit 12157c4

Please sign in to comment.