mirror of
https://github.com/securego/gosec.git
synced 2025-03-17 20:57:54 +02:00
Skip the G601 tests for Go version 1.22
Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
This commit is contained in:
parent
903c75b05e
commit
36878a9423
@ -192,7 +192,10 @@ var _ = Describe("gosec rules", func() {
|
||||
})
|
||||
|
||||
It("should detect implicit aliasing in ForRange", func() {
|
||||
runner("G601", testutils.SampleCodeG601)
|
||||
major, minor, _ := gosec.GoVersion()
|
||||
if major <= 1 && minor < 22 {
|
||||
runner("G601", testutils.SampleCodeG601)
|
||||
}
|
||||
})
|
||||
|
||||
It("should detect out of bounds slice access", func() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user