Skip to content

Add qodana CI checks #2

Add qodana CI checks

Add qodana CI checks #2

Triggered via pull request October 26, 2024 06:10
Status Success
Total duration 2m 46s
Artifacts

qodana_code_quality.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

26 warnings and 4 notices
Deprecated element: examples/examples.go#L40
`Endpoint` is deprecated
Deprecated element: component/grpc/component_test.go#L81
`WithBlock` is deprecated
Deprecated element: examples/examples.go#L38
`Endpoint` is deprecated
Deprecated element: component/amqp/component.go#L283
`QueueInspect` is deprecated
Deprecated element: examples/examples.go#L51
`WithEndpointResolverWithOptions` is deprecated
Deprecated element: component/sqs/component.go#L186
`AttributeNames` is deprecated
Deprecated element: component/grpc/component_test.go#L166
`WithBlock` is deprecated
Deprecated element: examples/examples.go#L46
`Endpoint` is deprecated
Deprecated element: client/grpc/grpc_test.go#L86
`WithInsecure` is deprecated
Deprecated element: client/grpc/grpc_test.go#L69
`WithInsecure` is deprecated
Deprecated element: client/grpc/grpc.go#L26
`DialContext` is deprecated
Deprecated element: component/grpc/component_test.go#L165
`DialContext` is deprecated
Deprecated element: component/grpc/component_test.go#L80
`DialContext` is deprecated
Deprecated element: examples/examples.go#L38
`EndpointResolverWithOptionsFunc` is deprecated
Imported package name as a name identifier: component/sqs/metric.go#L34
Variable `attribute` collides with imported package name
Missing 'case' statements for 'iota' consts in 'switch': reliability/circuitbreaker/breaker.go#L46
Missing 'case' statements for 'iota' consts in 'switch'
Unhandled error: examples/client/main.go#L160
Unhandled error
Unused constant: encoding/encoding.go#L10
Unused constant `AcceptHeader`
Unused constant: encoding/protobuf/protobuf.go#L15
Unused constant `TypeGoogle`
Unused constant: component/kafka/component.go#L23
Unused constant `subsystem`
Unused exported function: client/sql/sql.go#L166
Unused function `OpenDB`
Unused global variable: observability/log/log_test.go#L70
Unused variable `bCtx`
Unused global variable: reliability/retry/retry_test.go#L132
Unused variable `err`
qodana
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Comment of exported element starts with the incorrect name: component/http/component.go#L1
Package comment should be of the form 'Package http ...'
Mixed value and pointer receivers: client/kafka/kafka.go#L94
Struct Builder has methods on both value and pointer receivers. Such usage is not recommended by the Go Documentation.
Mixed value and pointer receivers: client/kafka/kafka.go#L119
Struct Builder has methods on both value and pointer receivers. Such usage is not recommended by the Go Documentation.
Redundant import alias: examples/examples.go#L4
Redundant alias