(fix): Fix necessary linter issues from gosec,errcheck and static che…#595
(fix): Fix necessary linter issues from gosec,errcheck and static che…#595ompushkara wants to merge 1 commit intomainfrom
Conversation
Review Summary by QodoFix linter issues from gosec, errcheck, and staticcheck
WalkthroughsDescription• Fix linter issues from gosec, errcheck, and staticcheck • Replace deprecated swag.String with conv.Pointer function • Handle write operation error return value properly • Update format string to use %q for quoted output • Reorganize go.mod dependencies for clarity Diagramflowchart LR
A["Linter Issues"] --> B["gosec/errcheck/staticcheck"]
B --> C["Format String Fix"]
B --> D["Error Handling Fix"]
B --> E["Deprecated API Fix"]
C --> F["Updated Code"]
D --> F
E --> F
File Changes1. cmd/conformance/main.go
|
Code Review by Qodo
1.
|
…ck (sigstore#4726) Signed-off-by: ompushkara <omotilal@redhat.com>
d89cc99 to
c1e3825
Compare
Review Summary by QodoFix linter issues from gosec, errcheck, and staticcheck WalkthroughsDescription• Fix linter issues from gosec, errcheck, and staticcheck • Replace deprecated swag.String() with conv.Pointer() • Handle write operation error return values properly • Update go-openapi/spec dependency to v0.22.3 • Improve string formatting in log messages Diagramflowchart LR
A["Linter Issues<br/>gosec, errcheck, staticcheck"] -->|"Fix string formatting"| B["cmd/conformance/main.go"]
A -->|"Handle write errors"| C["cmd/cosign/cli/generate/generate.go"]
A -->|"Replace deprecated API"| D["pkg/cosign/tlog.go"]
D -->|"Update imports"| E["go.mod & go.sum"]
E -->|"swag.String → conv.Pointer"| F["Resolved Issues"]
File Changes1. cmd/conformance/main.go
|
Code Review by Qodo
1.
|
…ck (sigstore#4726)