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

build(deps): bump github.com/nunnatsa/ginkgolinter from 0.8.1 to 0.9.0 #3643

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

nunnatsa
Copy link
Contributor

@nunnatsa nunnatsa commented Feb 28, 2023

ginkgolinter version v0.9.0 brings two new rules. Both rules can be disabled from the configuration.

This PR bumps the ginkgolinter to v0.9.0 and adds the new configurations.

nunnatsa/ginkgolinter@v0.8.1...v0.9.0

The two new rules are:

  • haveLen(0) rule: HaveLen(0) ==> BeEmpty()
  • wrong comparison rule: Expect(x == y).To(BeTrue()) ==>
    Expect(x).To(Equal(y))

The two new configurations are:

  • allow-havelen-zero - to not trigger warnings for the HaveLen(0) rule
  • suppress-compare-assertion - to not trigger warnings for the wrong comparison rule.

Full details are in the ginkgolinter README.md file, here: https://github.com/nunnatsa/ginkgolinter#readme.

@ldez ldez changed the title Bump ginkgolinter to v0.9.0 and add configurations build(deps): bump github.com/nunnatsa/ginkgolinter from 0.8.1 to 0.9.0 Feb 28, 2023
@ldez ldez added dependencies Relates to an upstream dependency linter: update version Update version of linter go Pull requests that update Go code labels Feb 28, 2023
.golangci.reference.yml Outdated Show resolved Hide resolved
@ldez ldez added the feedback required Requires additional feedback label Mar 1, 2023
@nunnatsa nunnatsa force-pushed the bump-ginkgolinter branch 2 times, most recently from 415a158 to 00dfddc Compare March 2, 2023 04:25
@nunnatsa nunnatsa requested a review from ldez March 2, 2023 04:27
pkg/lint/lintersdb/manager.go Outdated Show resolved Hide resolved
ginkgolinter version v0.9.0 brings two new rules. Both rules can be
disabled from the configuration.

This PR bumps the ginkgolinter to v0.9.0 and add the new configurations.

The two new rules are:
* haveLen(0) rule: `HaveLen(0)` ==> `BeEmpty()`
* wrong comparison rule: `Expect(x == y).To(BeTrue())` ==>
`Expect(x).To(Equal(y))`

Full details are in the ginkgolinter README.md file, here:
https://github.com/nunnatsa/ginkgolinter#readme.
Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

@ldez ldez removed the feedback required Requires additional feedback label Mar 2, 2023
@ldez ldez merged commit 49ce80a into golangci:master Mar 2, 2023
@nunnatsa nunnatsa deleted the bump-ginkgolinter branch March 2, 2023 09:36
SeigeC pushed a commit to SeigeC/golangci-lint that referenced this pull request Apr 4, 2023
@ldez ldez added this to the v1.52 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Relates to an upstream dependency go Pull requests that update Go code linter: update version Update version of linter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants