Skip to content

Implement bridge-device functionality for onboarding non-OCF compliant devices #477

Implement bridge-device functionality for onboarding non-OCF compliant devices

Implement bridge-device functionality for onboarding non-OCF compliant devices #477

Triggered via pull request January 19, 2024 10:39
Status Failure
Total duration 23s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: bridge/resources/resource.go#L52
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
lint: bridge/resources/resource.go#L265
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint: bridge/resources/device/resource.go#L94
File is not `gofumpt`-ed (gofumpt)
lint: bridge/net/network.go#L129
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint: bridge/device/cloud/manager.go#L145
Error return value of `c.close` is not checked (errcheck)
lint: bridge/device/cloud/manager.go#L310
Error return value of `c.close` is not checked (errcheck)
lint: bridge/device/cloud/manager.go#L337
Error return value of `c.Close` is not checked (errcheck)
lint: bridge/device/cloud/manager.go#L681
Error return value of `c.close` is not checked (errcheck)
lint: bridge/device/cloud/manager.go#L314
G402: TLS InsecureSkipVerify set true. (gosec)
lint: bridge/device/cloud/manager.go#L433
error is not nil (line 432) but it returns nil (nilerr)