oauth2-proxy/pkg/app/pagewriter
Olivier Mengué 1225d611e9
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
2025-05-26 12:29:34 +02:00
..
default_logo.svg Add option for custom logos on the sign in page 2021-02-19 13:23:55 +00:00
error.html Embed static stylesheets and dependencies 2023-08-24 20:50:17 -04:00
error_page.go chore: Updated go-jwt to v5 2024-03-04 01:42:00 +01:00
error_page_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
pagewriter.go implement an error alert message for invalid basic auth credentials 2022-06-30 18:10:02 +03:00
pagewriter_suite_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
pagewriter_test.go chore(lint): fix staticcheck issues (#3061) 2025-05-26 12:29:34 +02:00
robots.txt Add static pages to PageWriter interface 2021-03-21 18:28:37 +00:00
sign_in.html Embed static stylesheets and dependencies 2023-08-24 20:50:17 -04:00
sign_in_page.go chore: Updated go-jwt to v5 2024-03-04 01:42:00 +01:00
sign_in_page_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
static_pages.go Create seperate page getter 2021-03-21 18:34:43 +00:00
static_pages_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
templates.go Extract templates to separate files 2021-02-19 11:30:59 +00:00
templates_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00