fixed test #46
Annotations
10 errors and 1 warning
lint:
pkg/sweeper/memory_processor.go#L128
appendAssign: append result not assigned to the same slice (gocritic)
|
lint:
pkg/scan/combined_scanner_test.go#L121
Consider pre-allocating `gotResults` (prealloc)
|
lint:
pkg/sweeper/memory_processor.go#L100
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
pkg/scan/combined_scanner_test.go#L250
func `assertResultsMatch` is unused (unused)
|
lint:
pkg/sweeper/memory_processor.go#L14
field `firstSeenTimes` is unused (unused)
|
lint:
pkg/scan/combined_scanner.go#L39
return statements should not be cuddled if block has more than two lines (wsl)
|
lint:
pkg/scan/combined_scanner.go#L47
assignments should only be cuddled with other assignments (wsl)
|
lint:
pkg/sweeper/memory_processor.go#L112
append only allowed to cuddle with appended value (wsl)
|
lint:
pkg/sweeper/memory_processor.go#L42
expressions should not be cuddled with blocks (wsl)
|
lint
issues found
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|