mirror of
https://github.com/mgechev/revive.git
synced 2025-01-10 03:17:11 +02:00
02575a7674
* Add the imports-blacklist rule with tests * Add the imports-blacklist rule to README.md * Update the imports-blacklist rule to use map[string]bool so that we can have the algorithm in Visit below with O(n) instead of O(n*m) * Fix the imports-blacklist rule to be case sensitive
8 lines
218 B
Go
8 lines
218 B
Go
package fixtures
|
|
|
|
import (
|
|
"crypto/md5" // MATCH /should not use the following blacklisted import: "crypto/md5"/
|
|
"crypto/sha1" // MATCH /should not use the following blacklisted import: "crypto/sha1"/
|
|
"strings"
|
|
)
|