fix returning wrapped nil error #28
Annotations
10 errors and 1 warning
golangci-lint:
actions/action_test.go#L45
variable 'expected' is only used in the if-statement (actions/action_test.go:48:2); consider using short syntax (ifshort)
|
golangci-lint:
triggers/trigger.go#L28
interface method Matches must have named param for type gopacket.Packet (inamedparam)
|
golangci-lint:
actions/actions.go#L91
interface method Apply must have named param for type gopacket.Packet (inamedparam)
|
golangci-lint:
triggers/ip_trigger.go#L161
fmt.Errorf can be replaced with errors.New (perfsprint)
|
golangci-lint:
triggers/tcp_trigger.go#L274
fmt.Errorf can be replaced with errors.New (perfsprint)
|
golangci-lint:
actions/duplicate_action.go#L91
fmt.Sprintf can be replaced with string addition (perfsprint)
|
golangci-lint:
actions/tamper_action.go#L78
fmt.Sprintf can be replaced with string addition (perfsprint)
|
golangci-lint:
triggers/trigger_test.go#L198
fmt.Sprintf can be replaced with faster strconv.Itoa (perfsprint)
|
golangci-lint:
internal/scanner/scanner.go#L111
assignments should only be cuddled with other assignments (wsl)
|
golangci-lint:
actions/tamper_action_test.go#L75
assignments should only be cuddled with other assignments (wsl)
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3, actions/checkout@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The logs for this run have expired and are no longer available.
Loading