Allow supplying MONGO_SERVER_URL via chains-config #1617
Annotations
9 errors and 4 warnings
lint:
pkg/chains/storage/storage.go#L109
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
|
lint:
pkg/chains/storage/docdb/docdb.go#L20
File is not `goimports`-ed (goimports)
|
lint:
pkg/chains/storage/docdb/docdb.go#L275
`setMongoServerURLFromDir` - `ctx` is unused (unparam)
|
lint:
pkg/chains/storage/storage.go#L29
import 'knative.dev/pkg/logging' is not allowed from list 'Main' (depguard)
|
lint:
pkg/chains/storage/docdb/docdb.go#L21
import 'github.com/fsnotify/fsnotify' is not allowed from list 'Main' (depguard)
|
lint:
pkg/chains/storage/docdb/docdb.go#L29
import 'knative.dev/pkg/logging' is not allowed from list 'Main' (depguard)
|
lint:
pkg/chains/storage/docdb/docdb.go#L93
return both the `nil` error and invalid value: use a sentinel error instead (nilnil)
|
lint:
pkg/chains/storage/docdb/docdb.go#L98
return both the `nil` error and invalid value: use a sentinel error instead (nilnil)
|
lint
issues found
|
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4, actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/chains/chains. Supported file pattern: go.sum
|
lint:
pkg/chains/storage/docdb/docdb.go#L82
exported: exported function WatchBackend should have comment or be unexported (revive)
|
lint:
pkg/chains/storage/docdb/docdb.go#L275
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|