Skip to content

Add more test to cover more use cases for G115 rule #1306

Add more test to cover more use cases for G115 rule

Add more test to cover more use cases for G115 rule #1306

Triggered via pull request August 21, 2024 12:37
Status Failure
Total duration 1m 19s
Artifacts

ci.yml

on: pull_request
Matrix: test
coverage
0s
coverage
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 2 warnings
test (1.23.0, 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.23.0, 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.23.0, 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.23.0, latest)
issues found
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)
Restore cache failed: Dependencies file is not found in /home/runner/work/gosec/gosec. Supported file pattern: go.sum
test (1.22.6, latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gosec/gosec. Supported file pattern: go.sum