Skip to content

Improve/support new doc searcher #76

Improve/support new doc searcher

Improve/support new doc searcher #76

Triggered via pull request June 10, 2024 18:41
@breadrock1breadrock1
opened #16
Status Failure
Total duration 1m 43s
Artifacts

go.yml

on: pull_request_target
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 13 warnings
golangci: internal/pkg/server/endpoints/files.go#L14
Comment should end in a period (godot)
golangci: internal/pkg/server/endpoints/files.go#L19
Comment should end in a period (godot)
golangci: internal/pkg/server/endpoints/files.go#L24
Comment should end in a period (godot)
golangci: internal/pkg/ocr/logoper/logoper.go#L123
G107: Potential HTTP request made with variable url (gosec)
golangci: internal/pkg/reader/reader.go#L46
Consider pre-allocating `awaitDocs` (prealloc)
golangci: internal/pkg/reader/helper.go#L65
isDirExists - result 0 (bool) is always true (unparam)
golangci: internal/pkg/watcher/helper.go#L67
(*NotifyWatcher).loadChunkedDocument - result 0 (error) is always nil (unparam)
golangci: internal/pkg/reader/helper.go#L69
unnecessary trailing newline (whitespace)
golangci: internal/pkg/reader/document.go#L73
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
golangci: internal/pkg/reader/helper.go#L43
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
tests
Process completed with exit code 1.
golangci
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
golangci: internal/pkg/reader/document.go#L51
var-naming: struct field JobId should be JobID (revive)
golangci: internal/pkg/reader/document.go#L60
var-naming: struct field GroupJsonName should be GroupJSONName (revive)
golangci: internal/pkg/reader/document.go#L63
var-naming: struct field JsonName should be JSONName (revive)
golangci: internal/pkg/reader/reader.go#L84
if-return: redundant if ...; err != nil check, just return error instead. (revive)
golangci: internal/pkg/reader/reader.go#L99
if-return: redundant if ...; err != nil check, just return error instead. (revive)
golangci: internal/pkg/ocr/processing/processing.go#L6
var-naming: struct field JobId should be JobID (revive)
golangci: internal/pkg/ocr/processing/processing.go#L13
var-naming: interface method parameter jobId should be jobID (revive)
golangci: internal/pkg/ocr/raw/raw.go#L38
var-naming: method parameter jobId should be jobID (revive)
golangci: internal/pkg/ocr/logoper/forms.go#L16
var-naming: struct field JobId should be JobID (revive)
golangci: internal/pkg/ocr/logoper/logoper.go#L100
var-naming: method parameter jobId should be jobID (revive)
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.