Skip to content

Move (re-license) tracing package and introduce 'allowundefined' in kprobe struct tag #13583

Move (re-license) tracing package and introduce 'allowundefined' in kprobe struct tag

Move (re-license) tracing package and introduce 'allowundefined' in kprobe struct tag #13583

Triggered via pull request January 10, 2024 22:08
Status Failure
Total duration 7m 3s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 6 warnings
lint (linux): auditbeat/tracing/int_unaligned.go#L83
naked return in func `readInt` with 33 lines of code (nakedret)
lint (linux): x-pack/auditbeat/module/system/socket/events.go#L160
var `tcpStates` is unused (unused)
lint (linux): x-pack/auditbeat/module/system/socket/events.go#L897
type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint)
lint (linux): x-pack/auditbeat/module/system/socket/guess/cskxmit6.go#L113
Error return value of `g.loopback.Cleanup` is not checked (errcheck)
lint (linux): x-pack/auditbeat/module/system/socket/guess/deref.go#L56
error is not nil (line 55) but it returns nil (nilerr)
lint (linux): x-pack/auditbeat/module/system/socket/guess/deref.go#L139
Error return value of `syscall.Uname` is not checked (errcheck)
lint (linux): x-pack/auditbeat/module/system/socket/guess/guess.go#L106
Consider pre-allocating `results` (prealloc)
lint (linux): x-pack/auditbeat/module/system/socket/guess/guess.go#L148
Error return value of `installer.UninstallInstalled` is not checked (errcheck)
lint (linux): x-pack/auditbeat/module/system/socket/guess/inetsock.go#L152
Consider pre-allocating `laddrHits` (prealloc)
lint (linux): x-pack/auditbeat/module/system/socket/guess/inetsock.go#L153
Consider pre-allocating `lportHits` (prealloc)
lint (darwin)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (darwin)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (windows)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (windows)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (linux)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (linux)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']