mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 03:55:54 +00: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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue