Enable optional checks in gocritic linter
What does this MR do?
Enables useful opt-in checks in gocritic.
Why was this MR needed?
See #25948 (closed)
Are there points in the code the reviewer needs to double check?
Does this MR meet the acceptance criteria?
-
Documentation created/updated -
Added tests for this feature/bug -
In case of conflicts with master
- branch was rebased
What are the relevant issue numbers?
Closes #25948 (closed)