nunnatsa / ginkgolinter

golang linter for ginkgo and gomega
MIT License
25 stars 6 forks source link

Add nil check warning + command line flags #17

Closed nunnatsa closed 2 years ago

nunnatsa commented 2 years ago

*Add new warning when using these formats: Expect(x == nil).To(Equal(true)) => Expect(x).To(BeNil()) Expect(x == nil).To(Equal(false)) => Expect(x).ToNot(BeNil()) Expect(x == nil).To(BeTrue()) => Expect(x).To(BeNil()) Expect(x == nil).To(BeFalse()) => Expect(x).ToNot(BeNil())