Skip to content

Release v0.11.0

Compare
Choose a tag to compare
@nunnatsa nunnatsa released this 02 Apr 10:37
· 92 commits to main since this release

Changes

New linter rule

Compare pointer to value

The linter warns when comparing a pointer with a value. These comparisons are always wrong and will always fail.

For example:

num := 5
...
pNum := &num
...
Expect(pNum).ShouldNot(Equal(6))

The linter will suggest to use this instead:

Expect(pNum).ShouldNot(HaveValue(Equal(6)))