mirror of
https://github.com/securego/gosec.git
synced 2025-06-14 23:45:03 +02:00
Change naming rule from blacklist to blocklist
This commit is contained in:
committed by
Cosmin Cojocar
parent
3784ffea4e
commit
03f12f3f5d
@ -155,23 +155,23 @@ var _ = Describe("gosec rules", func() {
|
||||
runner("G404", testutils.SampleCodeG404)
|
||||
})
|
||||
|
||||
It("should detect blacklisted imports - MD5", func() {
|
||||
It("should detect blocklisted imports - MD5", func() {
|
||||
runner("G501", testutils.SampleCodeG501)
|
||||
})
|
||||
|
||||
It("should detect blacklisted imports - DES", func() {
|
||||
It("should detect blocklisted imports - DES", func() {
|
||||
runner("G502", testutils.SampleCodeG502)
|
||||
})
|
||||
|
||||
It("should detect blacklisted imports - RC4", func() {
|
||||
It("should detect blocklisted imports - RC4", func() {
|
||||
runner("G503", testutils.SampleCodeG503)
|
||||
})
|
||||
|
||||
It("should detect blacklisted imports - CGI (httpoxy)", func() {
|
||||
It("should detect blocklisted imports - CGI (httpoxy)", func() {
|
||||
runner("G504", testutils.SampleCodeG504)
|
||||
})
|
||||
|
||||
It("should detect blacklisted imports - SHA1", func() {
|
||||
It("should detect blocklisted imports - SHA1", func() {
|
||||
runner("G505", testutils.SampleCodeG505)
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user