The linter errors are hard to understand sometimes. One such error is that the File is not gofumpt-ed.
Solution
- Install gofumpt
- run
gofumpton the troubled files. gofumpt -w <fileame>- If you still see an error, particularly on linter wsl, then its likely cause is an empty line at the beginning/end of a block (function, switch-case, etc)