Add more test to cover more use cases for G115 rule #1307
Annotations
6 errors and 2 warnings
test (1.22.6, latest):
rules/decompression-bomb.go#L45
SA1019: ast.Object has been deprecated since Go 1.22 and an alternative has been available since Go 1.0: The relationship between Idents and Objects cannot be correctly computed without type information. For example, the expression T{K: 0} may denote a struct, map, slice, or array literal, depending on the type of T. If T is a struct, then K refers to a field of T, whereas for the other types it refers to a value in the environment. (staticcheck)
|
test (1.22.6, latest):
rules/decompression-bomb.go#L49
SA1019: ast.Object has been deprecated since Go 1.22 and an alternative has been available since Go 1.0: The relationship between Idents and Objects cannot be correctly computed without type information. For example, the expression T{K: 0} may denote a struct, map, slice, or array literal, depending on the type of T. If T is a struct, then K refers to a field of T, whereas for the other types it refers to a value in the environment. (staticcheck)
|
test (1.22.6, latest):
rules/decompression-bomb.go#L51
SA1019: ast.Object has been deprecated since Go 1.22 and an alternative has been available since Go 1.0: The relationship between Idents and Objects cannot be correctly computed without type information. For example, the expression T{K: 0} may denote a struct, map, slice, or array literal, depending on the type of T. If T is a struct, then K refers to a field of T, whereas for the other types it refers to a value in the environment. (staticcheck)
|
test (1.22.6, latest)
issues found
|
test (1.23.0, latest)
The job was canceled because "_1_22_6_latest" failed.
|
test (1.23.0, latest)
The operation was canceled.
|
test (1.22.6, latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gosec/gosec. Supported file pattern: go.sum
|
test (1.23.0, latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gosec/gosec. Supported file pattern: go.sum
|