mirror of
https://github.com/mgechev/revive.git
synced 2024-11-28 08:49:11 +02:00
535f426fb8
* Ignore blank import of embed
15 lines
255 B
Go
15 lines
255 B
Go
// Test that blank import of "embed" is allowed
|
|
|
|
// Package foo ...
|
|
package foo
|
|
|
|
import (
|
|
_ "embed"
|
|
_ "fmt"
|
|
/* MATCH:8 /a blank import should be only in a main or test package, or have a comment justifying it/ */
|
|
)
|
|
|
|
//go:embed .gitignore
|
|
var _ string
|
|
|