Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump golangci-lint from 1.55.1 to 1.59.1 #13473

Merged
merged 1 commit into from
Aug 17, 2024

Conversation

Joibel
Copy link
Member

@Joibel Joibel commented Aug 15, 2024

#13467 enabled testifylint, but the results weren't quite lining up with my expectations, so I'd suggested bumping the linter version. This PR does that.

golangci-lint 1.60.1 was released yesterday, but that bumps govet causing some hard to resolve errors. I'll wait for the dust to settle on that before attempting that update.

gosimple: fixes to server/auth/sso/sso.go
S1009: should omit nil check; len() for []string is defined as zero (gosimple)

testifylint: undo assert->require changes in functions where they won't work correctly
go-require: do not use require in http handlers (testifylint)
go-require: require must only be used in the goroutine running the test function (testifylint)

@Joibel Joibel self-assigned this Aug 15, 2024
golangci-lint 1.60.1 was released yesterday, but that bumps govet
causing some hard to resolve errors. I'll wait for the dust to settle
on that before attempting the update.

gosimple: fixes to `server/auth/sso/sso.go`
`S1009: should omit nil check; len() for []string is defined as zero (gosimple)`

testifylint: undo assert->require changes in functions where they
won't work correctly
`go-require: do not use require in http handlers (testifylint)`
`go-require: require must only be used in the goroutine running the
test function (testifylint)`

Signed-off-by: Alan Clucas <[email protected]>
@Joibel Joibel force-pushed the golangci-lint-bump branch from 6010a6c to eeade18 Compare August 15, 2024 10:20
@Joibel Joibel changed the title refactor(lint): gosimple fixes chore(deps): bump golangci-lint from 1.55.1 to 1.59.1 Aug 15, 2024
@Joibel Joibel changed the title chore(deps): bump golangci-lint from 1.55.1 to 1.59.1 chore(deps): bump golangci-lint from 1.55.1 to 1.59.1 Aug 15, 2024
@Joibel Joibel removed their assignment Aug 15, 2024
@Joibel Joibel added type/dependencies PRs and issues specific to updating dependencies area/build Build or GithubAction/CI issues labels Aug 15, 2024
@agilgur5 agilgur5 added the go Pull requests that update Go dependencies label Aug 15, 2024
@agilgur5
Copy link

testifylint: undo assert->require changes in functions where they won't work correctly
go-require: do not use require in http handlers (testifylint)
go-require: require must only be used in the goroutine running the test function (testifylint)

interesting, if i'm understanding correctly, these are both for when concurrency is happening so the exit of the require would cause everything concurrent to stop as well

Copy link

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@agilgur5 agilgur5 merged commit bc22fb5 into main Aug 17, 2024
31 checks passed
@agilgur5 agilgur5 deleted the golangci-lint-bump branch August 17, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues go Pull requests that update Go dependencies type/dependencies PRs and issues specific to updating dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants