mirror of
https://github.com/mgechev/revive.git
synced 2024-11-30 08:57:07 +02:00
e10678fea5
* Fixes issue #619 imports-blacklist support regex * refactors method name and error message * restores original test cases Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
20 lines
1.3 KiB
Go
20 lines
1.3 KiB
Go
package fixtures
|
|
|
|
import (
|
|
"github.com/full/match" // MATCH /should not use the following blacklisted import: "github.com/full/match"/
|
|
"bithub.com/full/match"
|
|
"github.com/full/matche"
|
|
"wildcard/between" // MATCH /should not use the following blacklisted import: "wildcard/between"/
|
|
"wildcard/pkg1/between" // MATCH /should not use the following blacklisted import: "wildcard/pkg1/between"/
|
|
"wildcard/pkg1/pkg2/between" // MATCH /should not use the following blacklisted import: "wildcard/pkg1/pkg2/between"/
|
|
"wildcard/backward" // MATCH /should not use the following blacklisted import: "wildcard/backward"/
|
|
"wildcard/backward/pkg" // MATCH /should not use the following blacklisted import: "wildcard/backward/pkg"/
|
|
"wildcard/backward/pkg/pkg1" // MATCH /should not use the following blacklisted import: "wildcard/backward/pkg/pkg1"/
|
|
"wildcard/forward" // MATCH /should not use the following blacklisted import: "wildcard/forward"/
|
|
"pkg/wildcard/forward" // MATCH /should not use the following blacklisted import: "pkg/wildcard/forward"/
|
|
"pkg/pkg1/wildcard/forward" // MATCH /should not use the following blacklisted import: "pkg/pkg1/wildcard/forward"/
|
|
"full" // MATCH /should not use the following blacklisted import: "full"/
|
|
"github.com/partical/match/fully"
|
|
"strings"
|
|
)
|