Enable staticcheck linter
What does this MR do?
This MR enables the staticcheck
linter and fixes issues reported by the linter.
Why was this MR needed?
To make our reviews quicker and more thorough by automatically detecting multiple issues, such as those detected by the staticcheck
linter (see #25161 (closed)).
Are there points in the code the reviewer needs to double check?
Verify that the fixes make sense.
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 #25161 (closed)
Edited by Georgi N. Georgiev