Skip to content

Commit

Permalink
Remove all the dependencies in ginkgo & gomega
Browse files Browse the repository at this point in the history
By setting the Analyzer's RunDespiteErrors field to true, the type
check is skiped and the linter can work without the need to actually
import ginkgo and gomega.

This will ease the integration with other applications, such as
golangci-lint.
  • Loading branch information
nunnatsa committed Jul 11, 2022
1 parent 4563cc9 commit fbe323b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ginkgo_linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ For example:
Expect(len(x).Should(Equal(1))
This should be replaced with:
Expect(x).Should(HavelLen(1)`,
Run: run,
Run: run,
RunDespiteErrors: true,
}

const (
Expand Down

0 comments on commit fbe323b

Please sign in to comment.