Skip to content

Commit

Permalink
Setup golangci lint action
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 authored Apr 7, 2024
1 parent 0393e58 commit bba7b85
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ jobs:
- run: make install && go mod tidy && go mod verify
- run: git --no-pager diff --exit-code

- run: go vet ./...
- uses: golangci/golangci-lint-action@v4
with:
skip-cache: true
args: --verbose

- run: make genall
- run: git --no-pager diff --exit-code
Expand Down
8 changes: 8 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
linters:
disable:
- ineffassign
- staticcheck
- unused
enable:
- gosimple
- govet
1 change: 0 additions & 1 deletion conformance/internal/conformance/mutate_fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ func mut(t reflect.Type, v reflect.Value) {
}
v.Set(m)
}
return
}

// VisitWithPredicate deep-visits the given struct
Expand Down

0 comments on commit bba7b85

Please sign in to comment.