chore(lint): fix staticcheck issues (#3061)
* chores: fix staticcheck QF1012
Fix use of fmt.Sprintf when writing to a writer.
https://staticcheck.dev/docs/checks/#QF1012
https://github.com/oauth2-proxy/oauth2-proxy/issues/3060
* chores: fix staticcheck QF1003
Use switch instead of multiple if/else.
https://staticcheck.dev/docs/checks/#QF1003
https://github.com/oauth2-proxy/oauth2-proxy/issues/3060
* chores: exclude staticcheck QF1008 for now
We aim to migrate golangci-lint to v2
Let's disable QF1008 (Omit embedded fields from selector expression)
for now.
https://staticcheck.dev/docs/checks/#QF1008
* chores: fix golangci config: run.deadline -> timeout
Rename config option to match v1 documentation: deadline -> timeout.
https://golangci.github.io/legacy-v1-doc/usage/configuration/#run-configuration
This error has been spotted by golangci-lint v2 migration tool.
* chores: fix staticcheck QF1012