Skip to content

Add qodana CI checks #1

Add qodana CI checks

Add qodana CI checks #1

GitHub Actions / Qodana for Go completed Nov 5, 2024 in 0s

3501 new problems found by Qodana for Go

Qodana for Go

3501 new problems were found

Inspection name Severity Problems
Unhandled error 🔶 Warning 2064
Unused parameter 🔶 Warning 182
Redundant types in composite literals 🔶 Warning 43
Deprecated element 🔶 Warning 6
Unused function 🔶 Warning 4
Unused exported function 🔶 Warning 3
Imported package name as a name identifier 🔶 Warning 2
Missing 'case' statements for 'iota' consts in 'switch' 🔶 Warning 2
Bool condition 🔶 Warning 1
Error string should not be capitalized or end with punctuation ◽️ Notice 956
Redundant import alias ◽️ Notice 191
Name starts with a package name ◽️ Notice 28
Type assertion on errors fails on wrapped errors ◽️ Notice 8
Redundant parentheses ◽️ Notice 4
Empty slice declared using a literal ◽️ Notice 3
Redundant type conversion ◽️ Notice 2
Type can be omitted ◽️ Notice 2

☁️ View the detailed Qodana report

Detected 161 dependencies

Third-party software list

This page lists the third-party software dependencies used in project

Dependency Version Licenses
cloud.google.com/go/compute/metadata v0.3.0 Apache-2.0
cloud.google.com/go/compute v1.23.3 Apache-2.0
cloud.google.com/go/firestore v1.13.0 Apache-2.0
cloud.google.com/go/iam v1.1.5 Apache-2.0
cloud.google.com/go/longrunning v0.5.1 Apache-2.0
cloud.google.com/go/storage v1.35.1 Apache-2.0
cloud.google.com/go v0.110.10 Apache-2.0
github.com/ans-group/go-durationstring v1.2.0 MIT
github.com/ans-group/sdk-go v1.20.4 MIT
github.com/armon/go-metrics v0.4.1 MIT
github.com/blang/semver v3.5.1+incompatible MIT
github.com/coreos/go-semver v0.3.0 Apache-2.0
github.com/coreos/go-systemd/v22 v22.3.2 Apache-2.0
github.com/cpuguy83/go-md2man/v2 v2.0.4 MIT
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc ISC
github.com/emicklei/go-restful/v3 v3.11.0 MIT
github.com/fatih/color v1.14.1 MIT
github.com/frankban/quicktest v1.14.4 MIT
github.com/fsnotify/fsnotify v1.6.0 BSD-3-Clause
github.com/fxamacker/cbor/v2 v2.7.0 MIT
github.com/go-logr/logr v1.4.2 Apache-2.0
github.com/go-openapi/jsonpointer v0.19.6 Apache-2.0
github.com/go-openapi/jsonreference v0.20.2 Apache-2.0
github.com/go-openapi/swag v0.22.4 Apache-2.0
github.com/go-playground/locales v0.12.1 MIT
github.com/go-playground/universal-translator v0.16.0 MIT
github.com/go-task/slim-sprig/v3 v3.0.0 MIT
github.com/gogo/protobuf v1.3.2 BSD-3-Clause
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da Apache-2.0
github.com/golang/mock v1.6.0 Apache-2.0
github.com/golang/protobuf v1.5.4 BSD-3-Clause
github.com/google/btree v1.0.1 Apache-2.0
github.com/google/gnostic-models v0.6.8 Apache-2.0
github.com/google/go-cmp v0.6.0 BSD-3-Clause
github.com/google/go-github/v30 v30.1.0 BSD-3-Clause
github.com/google/go-querystring v1.0.0 BSD-3-Clause
github.com/google/gofuzz v1.2.0 Apache-2.0
github.com/google/pprof v0.0.0-20240525223248-4bfdf5a9a2af Apache-2.0
github.com/google/s2a-go v0.1.7 Apache-2.0
github.com/google/uuid v1.6.0 BSD-3-Clause
github.com/googleapis/enterprise-certificate-proxy v0.3.2 Apache-2.0
github.com/googleapis/gax-go/v2 v2.12.0 BSD-3-Clause
github.com/googleapis/google-cloud-go-testing v0.0.0-20210719221736-1c9a4c676720 Apache-2.0
github.com/gorilla/websocket v1.5.0 BSD-2-Clause
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 MIT
github.com/hashicorp/consul/api v1.25.1 MPL-2.0
github.com/hashicorp/go-cleanhttp v0.5.2 MPL-2.0
github.com/hashicorp/go-hclog v1.5.0 MIT
github.com/hashicorp/go-immutable-radix v1.3.1 MPL-2.0
github.com/hashicorp/go-rootcerts v1.0.2 MPL-2.0
github.com/hashicorp/golang-lru v0.5.4 MPL-2.0
github.com/hashicorp/hcl v1.0.0 MPL-2.0
github.com/hashicorp/serf v0.10.1 MPL-2.0
github.com/hpcloud/tail v1.0.0 MIT
github.com/iancoleman/strcase v0.3.0 MIT
github.com/imdario/mergo v0.3.6 BSD-3-Clause
github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf Apache-2.0
github.com/inconshreveable/mousetrap v1.1.0 Apache-2.0
github.com/josharian/intern v1.0.0 MIT
github.com/json-iterator/go v1.1.12 MIT
github.com/klauspost/compress v1.17.0 Apache-2.0
BSD-3-CLAUSE-NO-TRADEMARK
BSD-3-Clause
MIT
github.com/kr/fs v0.1.0 BSD-3-Clause
github.com/kr/pretty v0.3.1 MIT
github.com/kr/pty v1.1.1 MIT
github.com/kr/text v0.2.0 MIT
github.com/leodido/go-urn v1.1.0 MIT
github.com/magiconair/properties v1.8.7 BSD-2-Clause
github.com/mailru/easyjson v0.7.7 MIT
github.com/mattn/go-colorable v0.1.13 MIT
github.com/mattn/go-isatty v0.0.17 MIT
github.com/mattn/go-runewidth v0.0.16 MIT
github.com/minio/highwayhash v1.0.2 Apache-2.0
github.com/mitchellh/go-homedir v1.1.0 MIT
github.com/mitchellh/mapstructure v1.5.0 MIT
github.com/moby/spdystream v0.4.0 Apache-2.0
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd Apache-2.0
github.com/modern-go/reflect2 v1.0.2 Apache-2.0
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 BSD-3-Clause
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f BSD-3-Clause
github.com/nats-io/jwt/v2 v2.4.1 Apache-2.0
github.com/nats-io/nats.go v1.30.2 Apache-2.0
github.com/nats-io/nkeys v0.4.5 Apache-2.0
github.com/nats-io/nuid v1.0.1 Apache-2.0
github.com/olekukonko/tablewriter v0.0.5 MIT
github.com/onsi/ginkgo/v2 v2.19.0 MIT
github.com/onsi/ginkgo v1.6.0 MIT
github.com/onsi/gomega v1.4.2 MIT
github.com/pelletier/go-toml/v2 v2.1.0 MIT
github.com/peterbourgon/diskv v2.0.1+incompatible MIT
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c BSD-2-Clause
github.com/pkg/errors v0.9.1 BSD-2-Clause
github.com/pkg/sftp v1.13.6 BSD-2-Clause
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 BSD-3-Clause
github.com/rhysd/go-github-selfupdate v1.2.3 MIT
github.com/rivo/uniseg v0.4.7 MIT
github.com/rogpeppe/go-internal v1.9.0 BSD-3-Clause
github.com/russross/blackfriday/v2 v2.1.0 BSD-2-Clause
github.com/ryanuber/go-glob v1.0.0 MIT
github.com/sagikazarmark/crypt v0.15.0 MIT
github.com/sagikazarmark/locafero v0.3.0 MIT
github.com/sagikazarmark/slog-shim v0.1.0 BSD-3-Clause
github.com/sourcegraph/conc v0.3.0 MIT
github.com/spf13/afero v1.11.0 Apache-2.0
github.com/spf13/cast v1.5.1 MIT
github.com/spf13/cobra v1.8.1 Apache-2.0
github.com/spf13/pflag v1.0.5 BSD-3-Clause
github.com/spf13/viper v1.17.0 MIT
github.com/stretchr/objx v0.5.2 MIT
github.com/stretchr/testify v1.9.0 MIT
github.com/subosito/gotenv v1.6.0 MIT
github.com/tcnksm/go-gitconfig v0.1.2 MIT
github.com/ulikunitz/xz v0.5.9 BSD-3-Clause
github.com/x448/float16 v0.8.4 MIT
github.com/yuin/goldmark v1.3.5 MIT
go.etcd.io/etcd/api/v3 v3.5.9 Apache-2.0
go.etcd.io/etcd/client/pkg/v3 v3.5.9 Apache-2.0
go.etcd.io/etcd/client/v2 v2.305.9 Apache-2.0
go.etcd.io/etcd/client/v3 v3.5.9 Apache-2.0
go.opencensus.io v0.24.0 Apache-2.0
go.uber.org/atomic v1.9.0 MIT
go.uber.org/goleak v1.3.0 MIT
go.uber.org/multierr v1.9.0 MIT
go.uber.org/zap v1.21.0 MIT
golang.org/x/crypto v0.24.0 BSD-3-Clause
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 BSD-3-Clause
golang.org/x/mod v0.17.0 BSD-3-Clause
golang.org/x/net v0.26.0 BSD-3-Clause
golang.org/x/oauth2 v0.21.0 BSD-3-Clause
golang.org/x/sync v0.8.0 BSD-3-Clause
golang.org/x/sys v0.26.0 BSD-3-Clause
golang.org/x/term v0.21.0 BSD-3-Clause
golang.org/x/text v0.19.0 BSD-3-Clause
golang.org/x/time v0.5.0 BSD-3-Clause
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d BSD-3-Clause
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 BSD-3-Clause
google.golang.org/api v0.152.0 BSD-3-Clause
google.golang.org/appengine v1.6.7 Apache-2.0
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 Apache-2.0
google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f Apache-2.0
google.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 Apache-2.0
google.golang.org/grpc v1.59.0 Apache-2.0
google.golang.org/protobuf v1.34.2 BSD-3-Clause
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 BSD-2-Clause
gopkg.in/evanphx/json-patch.v4 v4.12.0 BSD-3-Clause
gopkg.in/fsnotify.v1 v1.4.7 BSD-3-Clause
gopkg.in/go-playground/assert.v1 v1.2.1 MIT
gopkg.in/go-playground/validator.v9 v9.27.0 MIT
gopkg.in/inf.v0 v0.9.1 BSD-3-Clause
gopkg.in/ini.v1 v1.67.0 Apache-2.0
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 BSD-3-Clause
gopkg.in/yaml.v2 v2.4.0 Apache-2.0
MIT
gopkg.in/yaml.v3 v3.0.1 Apache-2.0
MIT
k8s.io/apimachinery v0.31.1 Apache-2.0
k8s.io/api v0.31.1 Apache-2.0
k8s.io/client-go v0.31.1 Apache-2.0
k8s.io/klog/v2 v2.130.1 Apache-2.0
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 Apache-2.0
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 Apache-2.0
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd Apache-2.0
BSD-3-Clause
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 Apache-2.0
sigs.k8s.io/yaml v1.4.0 Apache-2.0
Contact Qodana team

Contact us at [email protected]

Details

This result was published with Qodana GitHub Action

Annotations

Check warning on line 79 in internal/pkg/output/output_handler_data_provider_test.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Bool condition

Expression `v` is always `true`

Check warning on line 206 in internal/pkg/helper/flag.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Deprecated element

`ReadAll` is deprecated

Check warning on line 45 in cmd/raw.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Deprecated element

`ReadAll` is deprecated

Check warning on line 25 in test/helpers.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Deprecated element

`ReadAll` is deprecated

Check warning on line 43 in test/helpers.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Deprecated element

`ReadAll` is deprecated

Check warning on line 46 in cmd/pss/pss_reply_attachment_test.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Deprecated element

`NopCloser` is deprecated

Check warning on line 50 in internal/pkg/input/input_test.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Deprecated element

`NopCloser` is deprecated

Check notice on line 35 in cmd/ecloud/ecloud_v1_solution_network.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 60 in cmd/draas/draas_solution_backupresource.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 73 in cmd/loadbalancer/loadbalancer_listener_accessip.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 127 in cmd/ecloud/ecloud_v1_vm_disk.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 317 in cmd/safedns/safedns_template_record.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 150 in cmd/pss/pss_change.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 158 in cmd/ddosx/ddosx_ssl.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 55 in cmd/ecloud/ecloud_firewallrule_port.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 36 in cmd/ecloud/ecloud_instance_volume.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 90 in cmd/ecloud/ecloud_instance.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 34 in cmd/ecloud/ecloud_image_metadata.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 96 in internal/pkg/helper/flag.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 275 in cmd/ecloud/ecloud_floatingip.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 81 in cmd/ddosx/ddosx_domain_waf_rule.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 151 in cmd/ddosx/ddosx_domain_acl_geoip.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 124 in cmd/ecloud/ecloud_hostgroup.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 37 in cmd/loadbalancer/loadbalancer_listener_accessip.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark

Check notice on line 130 in cmd/ddosx/ddosx_domain_cdn.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Error string should not be capitalized or end with punctuation

Error string should not be capitalized or end with punctuation mark