1
0
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:
Caccavale
2019-12-19 12:39:33 -05:00
committed by Cosmin Cojocar
parent 8662624e28
commit ee3146e637
5 changed files with 161 additions and 0 deletions

View File

@@ -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)
})
})
})