mirror of
https://github.com/securego/gosec.git
synced 2025-11-25 22:22:17 +02:00
Rule which detects aliasing of values in RangeStmt
This commit is contained in:
committed by
Cosmin Cojocar
parent
8662624e28
commit
ee3146e637
@@ -170,10 +170,15 @@ var _ = Describe("gosec rules", func() {
|
||||
It("should detect blacklisted imports - CGI (httpoxy)", func() {
|
||||
runner("G504", testutils.SampleCodeG504)
|
||||
})
|
||||
|
||||
It("should detect blacklisted imports - SHA1", func() {
|
||||
runner("G505", testutils.SampleCodeG505)
|
||||
})
|
||||
|
||||
It("should detect implicit aliasing in ForRange", func() {
|
||||
runner("G601", testutils.SampleCodeG601)
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user