Skip to content

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
@ldez ldez added the waiting for: contributor feedback 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
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.
@nunnatsa nunnatsa force-pushed the bump-ginkgolinter branch from 00dfddc to e81593a Compare March 2, 2023 08:19
@nunnatsa nunnatsa requested a review from ldez March 2, 2023 08:20
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 waiting for: contributor feedback 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.

2 participants