nunnatsa / ginkgolinter

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

Support different ways to import gomega #19

Closed nunnatsa closed 2 years ago

nunnatsa commented 2 years ago

ginkgo documentation uses dot import; i.e.

import . "github.com/onsi/gomega"

But the user can use impot without name or with custom name, e.g.

import "github.com/onsi/gomega"

Or

import custom "github.com/onsi/gomega"

This PR adds support for these two forms of importt.

Also, the linter now skips files without gomega import.