Skip to content

Allow supplying MONGO_SERVER_URL via chains-config #1617

Allow supplying MONGO_SERVER_URL via chains-config

Allow supplying MONGO_SERVER_URL via chains-config #1617

Triggered via pull request May 6, 2024 06:39
Status Failure
Total duration 3m 29s
Artifacts

lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

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)