Activate `prealloc` linter
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.
-
SAST -
secrets -
nodejs-scan (no lints found) -
security-code-scan -
flawfinder (no lints found) -
brakeman (no lints found) -
eslint (no lints found) -
spotbugs -
gosec (no lints found) -
bandit (no lints found) -
phpcs-security-audit (no lints found) -
sobelow (no lints found) -
pmd-apex (no lints found) -
kubesec
-
-
Dependency Scanning
What are the relevant issue numbers?
N/A
Does this MR meet the acceptance criteria?
Edited by Lucas Charles