Closed zak-pawel closed 1 day ago
This issue starts a discussion about enabling:
testify
init()
_
Before:
import ( "testing" _ "github.com/stretchr/testify" _ "github.com/stretchr/testify/assert" _ "github.com/stretchr/testify/http" _ "github.com/stretchr/testify/mock" _ "github.com/stretchr/testify/require" _ "github.com/stretchr/testify/suite" )
After:
import ( "testing" )
Decision about enabling or not enabling this checker.
For this checker, no findings were found in the current codebase.
For this checker, no additional configuration can be provided.
Useful, revive->blankimports (which we have been using) doesn't find such imports for tests.
Fine with me to enable this linter.
+1
Description
This issue starts a discussion about enabling:
testify
doesn't do anyinit()
magic, so these imports as_
do nothing and considered useless.Example
Before:
After:
Expected output
Decision about enabling or not enabling this checker.
Findings
For this checker, no findings were found in the current codebase.
Additional configuration
For this checker, no additional configuration can be provided.