enable goerr113 linter #5907
Annotations
7 errors and 1 warning
golangci-lint:
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/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/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/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/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/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
issues found
|
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/.
|
Loading