Skip to content

Activate `prealloc` linter

Oscar Tovar requested to merge hacks4oats-master-patch-44474 into master

What does this MR do?

While adding slice preallocation guidance to Secure's Go guide, it was suggested to automate the check instead of only adding documentation. This MR automates the preallocation check with a linter that reports instances where preallocation is possible in range loops.

For more context see gitlab-org/gitlab!91830 (merged)

Required Updates

The following projects need to be updated so that the golangci-lint job passes once it's activated.

If the project is checked it's been added as merge request dependency.

What are the relevant issue numbers?

N/A

Does this MR meet the acceptance criteria?

Edited by Lucas Charles

Merge request reports