v0.17.0
What's Changed
-
Bug fix: missing async validations
- the linter now checks error with nil assertion also in async assertions as well, such as:
Eventually(func() err {return nil}).Should(BeNil())
- the linter now checks for
MatchError
issues in async assertions as well, e.g.Eventually(func() string {return "hello"}).Should(MatchError("hello"))
- the linter now checks error with nil assertion also in async assertions as well, such as:
-
Bug fix: handle
Equal(true/false)
inExpect(p == nil).To(Equal(true/false))
even when nil assertion is suppressed; e.g.Expect(p == nil).To(Equal(true)) // will be changed to: Expect(p == nil).To(BeTrue())
-
Bug fix: force
Expect
withTo
rule now also checksExpectWithOffset()
; e.g.ExpectWithOffset(err).ShouldNot(HaveOccurred()) // will be changed to: ExpectWithOffset(err).ToNot(HaveOccurred())
-
Bump go to v1.22
-
[internal] Huge Refactoring
- separate parsing and processing from validation
- introduce gomega expression Rules
Full Changelog: v0.16.2...v0.17.0