chore: use ruleguard to test for missing defer statements #7633
Annotations
10 errors and 1 warning
Run static analysis:
syft/linux/identify_release.go#L67
ruleguard: internal.CloseAndLogError should be deferred right after the error returned from resolver.FileContentsByLocation is checked. (gocritic)
|
Run static analysis:
syft/file/cataloger/executable/cataloger.go#L63
ruleguard: internal.CloseAndLogError should be deferred right after the error returned from resolver.FileContentsByLocation is checked. (gocritic)
|
Run static analysis:
syft/pkg/cataloger/binary/classifier.go#L230
ruleguard: internal.CloseAndLogError should be deferred right after the error returned from resolver.FileContentsByLocation is checked. (gocritic)
|
Run static analysis:
syft/pkg/cataloger/debian/package.go#L266
ruleguard: internal.CloseAndLogError should be deferred right after the error returned from resolver.FileContentsByLocation is checked. (gocritic)
|
Run static analysis:
syft/pkg/cataloger/gentoo/parse_portage_contents.go#L63
ruleguard: internal.CloseAndLogError should be deferred right after the error returned from resolver.FileContentsByLocation is checked. (gocritic)
|
Run static analysis:
syft/pkg/cataloger/gentoo/parse_portage_contents.go#L104
ruleguard: internal.CloseAndLogError should be deferred right after the error returned from resolver.FileContentsByLocation is checked. (gocritic)
|
Run static analysis:
syft/pkg/cataloger/gentoo/parse_portage_contents.go#L139
ruleguard: internal.CloseAndLogError should be deferred right after the error returned from resolver.FileContentsByLocation is checked. (gocritic)
|
Run static analysis:
syft/pkg/cataloger/javascript/package.go#L256
ruleguard: internal.CloseAndLogError should be deferred right after the error returned from resolver.FileContentsByLocation is checked. (gocritic)
|
Run static analysis:
syft/pkg/cataloger/alpine/parse_apk_db.go#L154
ruleguard: internal.CloseAndLogError should be deferred right after the error returned from resolver.FileContentsByLocation is checked. (gocritic)
|
Run static analysis:
syft/pkg/cataloger/arch/parse_alpm_db.go#L131
ruleguard: internal.CloseAndLogError should be deferred right after the error returned from resolver.FileContentsByLocation is checked. (gocritic)
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe, actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading