Skip to content

Commit

Permalink
Introduce additional linters & bump golangci-lint to 1.50.1
Browse files Browse the repository at this point in the history
Signed-off-by: Prajyot-Parab <[email protected]>
  • Loading branch information
Prajyot-Parab committed Nov 22, 2022
1 parent b168862 commit 0026196
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@0ad9a0988b3973e851ab0a07adf248ec2e100376 # tag=v3.3.1
with:
version: v1.50.0
version: v1.50.1
working-directory: ${{matrix.working-directory}}
5 changes: 5 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ linters:
- bidichk
- bodyclose
- containedctx
- decorder
- depguard
- dogsled
- dupword
- durationcheck
- errcheck
- errchkjson
- execinquery
- exportloopref
- gci
- goconst
Expand All @@ -41,8 +43,10 @@ linters:
- nilerr
- noctx
- nolintlint
- nosprintfhostport
- prealloc
- predeclared
- reassign
- revive
- rowserrcheck
- staticcheck
Expand All @@ -52,6 +56,7 @@ linters:
- unconvert
- unparam
- unused
- usestdlibvars
- whitespace

linters-settings:
Expand Down
2 changes: 1 addition & 1 deletion cmd/clusterctl/client/repository/goproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (g *goproxyClient) getVersions(ctx context.Context, base, owner, repository
}
defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
retryError = errors.Errorf("failed to get versions: response status code %d", resp.StatusCode)
return false, nil
}
Expand Down

0 comments on commit 0026196

Please sign in to comment.