Releases: nunnatsa/ginkgolinter
Releases · nunnatsa/ginkgolinter
v0.5.0
v0.4.1
v0.4.0
Added a new warning, when comparing errors to nil. Error can be a function that returns an error, or an error value. Comparison to nil is either a direct one, e.g. Expect(err == nil)
or by a wrong assertion, like BeNil()
or Equal(nil)
.
Added new wrong nil assertion check; like Expect(x).To(Equal(nil))
.
Full Changelog: v0.3.1...v0.4.0
v0.3.1
v0.3.0
- allows install the CLI using
go install
:go install github.com/nunnatsa/ginkgolinter/cmd/ginkgolinter@latest
- supports other ways of importing gomega:
in addition to the already supported form:
import "github.com/onsi/gomega" // or import customname "github.com/onsi/gomega"
import . "github.com/onsi/gomega"
- skip files without gomega import.
v0.2.0
What's Changed
- Add new check: wrong nil assertion
- Add command line flags to suppress checks
Full Changelog: v0.1.1...v0.2.0