Skip to content

enable goerr113 linter #5907

enable goerr113 linter

enable goerr113 linter #5907

Triggered via pull request March 21, 2024 06:36
Status Failure
Total duration 2m 0s
Artifacts

lint.yml

on: pull_request
golangci-lint
1m 40s
golangci-lint
golangci-lint-examples
1m 49s
golangci-lint-examples
golangci-lint-slo
50s
golangci-lint-slo
autoformat check
32s
autoformat check
Fit to window
Zoom out
Zoom in

Annotations

25 errors and 4 warnings
golangci-lint-slo: tests/slo/database/sql/main.go#L129
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unknown mode: %v\", cfg.Mode)" (goerr113)
golangci-lint-slo: tests/slo/gorm/main.go#L129
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unknown mode: %v\", cfg.Mode)" (goerr113)
golangci-lint-slo: tests/slo/native/query/main.go#L129
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unknown mode: %v\", cfg.Mode)" (goerr113)
golangci-lint-slo: tests/slo/native/table/main.go#L129
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unknown mode: %v\", cfg.Mode)" (goerr113)
golangci-lint-slo: tests/slo/native/table/storage.go#L128
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"entry not found, id = %v\", entryID)" (goerr113)
golangci-lint-slo: tests/slo/xorm/main.go#L129
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unknown mode: %v\", cfg.Mode)" (goerr113)
golangci-lint-slo: tests/slo/xorm/storage.go#L136
err113: do not define dynamic errors, use wrapped static errors instead: "errors.New(\"get entry: entry not found\")" (goerr113)
golangci-lint-slo
issues found
golangci-lint: internal/coordination/client.go#L22
err113: do not define dynamic errors, use wrapped static errors instead: "errors.New(\"coordination client is not initialized\")" (goerr113)
golangci-lint: query/stats.go#L17
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"client %T not supported stats\", client)" (goerr113)
golangci-lint: internal/ratelimiter/client.go#L23
err113: do not define dynamic errors, use wrapped static errors instead: "errors.New(\"unknown acquire type\")" (goerr113)
golangci-lint: internal/ratelimiter/client.go#L24
err113: do not define dynamic errors, use wrapped static errors instead: "errors.New(\"ratelimiter client is not initialized\")" (goerr113)
golangci-lint: internal/scripting/client.go#L32
err113: do not define dynamic errors, use wrapped static errors instead: "errors.New(\"scripting client is not initialized\")" (goerr113)
golangci-lint: internal/grpcwrapper/rawscheme/entry.go#L12
err113: do not define dynamic errors, use wrapped static errors instead: "errors.New(\"ydb: unexpected nil for scheme permissions\")" (goerr113)
golangci-lint: internal/grpcwrapper/rawscheme/entry.go#L13
err113: do not define dynamic errors, use wrapped static errors instead: "errors.New(\"ydb: unexpected nil for scheme entry\")" (goerr113)
golangci-lint: internal/grpcwrapper/rawydb/issues.go#L45
err113: do not define dynamic errors, use wrapped static errors instead: "errors.New(\"receive nil issue message pointer from protobuf\")" (goerr113)
golangci-lint: internal/grpcwrapper/rawydb/operation.go#L30
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"ydb: create topic error [%v]: %v\", o.Status, o.Issues)" (goerr113)
golangci-lint: internal/grpcwrapper/rawtopic/rawtopicreader/messages.go#L15
err113: do not define dynamic errors, use wrapped static errors instead: "errors.New(\"ydb: unexpected nil Ydb_Topic.StreamReadMessage_ReadResponse\")" (goerr113)
golangci-lint-examples: examples/basic/native/query/main.go#L22
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"example '%s' run on minimal YDB version '%v', but current version is '%s'\",\n\tos.Args[0],\n\tstrings.Join(minYdbVersion, \".\"),\n\tfunc() string {\n\t\tif len(ydbVersion) > 0 && ydbVersion[0] != \"\" {\n\t\t\treturn strings.Join(ydbVersion, \".\")\n\t\t}\n\n\t\treturn \"undefined\"\n\t}(),\n)" (goerr113)
golangci-lint-examples: examples/serverless/url_shortener/service.go#L309
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"hash '%s' is not found\", hash)" (goerr113)
golangci-lint-examples: examples/serverless/url_shortener/service.go#L393
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"'%s' is not a valid URL\", url)" (goerr113)
golangci-lint-examples: examples/serverless/url_shortener/service.go#L431
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"'%s' is not a valid short path\", path[len(path)-1])" (goerr113)
golangci-lint-examples: examples/topic/cdc-cache-bus-freeseats/webserver.go#L136
err113: do not define dynamic errors, use wrapped static errors instead: "errors.New(\"not found\")" (goerr113)
golangci-lint-examples: examples/topic/topicreader/topicreader_advanced.go#L34
err113: do not define dynamic errors, use wrapped static errors instead: "errors.New(\"bad data len\")" (goerr113)
golangci-lint-examples
issues found
autoformat check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
golangci-lint-slo
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
golangci-lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
golangci-lint-examples
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.