feat: add JSON structured log target #2
Annotations
16 errors and 2 warnings
|
Lint:
util/email/email.go#L62
S1025: the argument is already a string, there's no need to use fmt.Sprintf (gosimple)
|
|
Lint:
logger.go#L205
S1005: unnecessary assignment to the blank identifier (gosimple)
|
|
Lint:
targets/target_file.go#L92
S1002: should omit comparison to bool constant, can be simplified to `!pathExists` (gosimple)
|
|
Lint:
internal/innerlogger.go#L82
S1002: should omit comparison to bool constant, can be simplified to `!pathExists` (gosimple)
|
|
Lint:
layout/layout.go#L13
field `val` is unused (unused)
|
|
Lint:
layout/layout.go#L12
field `isEnd` is unused (unused)
|
|
Lint:
example/normal/main.go#L10
Error return value of `dotlog.StartLogService` is not checked (errcheck)
|
|
Lint:
targets/target_file.go#L111
Error return value of `file.WriteString` is not checked (errcheck)
|
|
Lint:
internal/innerlogger.go#L101
Error return value of `file.WriteString` is not checked (errcheck)
|
|
Lint:
util/convert/convert.go#L46
Error return value of `binary.Read` is not checked (errcheck)
|
|
Test
Process completed with exit code 2.
|
|
Test:
internal/innerlogger.go#L57
missing ... in args forwarded to print-like function
|
|
Test:
internal/innerlogger.go#L53
missing ... in args forwarded to print-like function
|
|
Test:
internal/innerlogger.go#L49
missing ... in args forwarded to print-like function
|
|
Test:
internal/innerlogger.go#L45
missing ... in args forwarded to print-like function
|
|
Test:
internal/innerlogger.go#L41
missing ... in args forwarded to print-like function
|
|
Lint
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-go@v5, golangci/golangci-lint-action@v6. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-go@v5. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|