You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gotosocial/internal/middleware
Markus Unterwaditzer a48cce82b9
[chore] Upgrade golangci-lint, ignore existing int overflow warnings (#3420)
* [chore] Bump tooling versions, bump go -> v1.23.0

* undo silly change

* sign

* bump go version in go.mod

* allow overflow in imaging

* goreleaser deprecation notices

* [chore] Upgrade golangci-lint, ignore existing int overflow warnings

There is a new lint for unchecked int casts. Integer overflows are bad,
but the old code that triggers this lint seems to be perfectly fine.
Instead of disabling the lint entirely for new code as well, grandfather
in existing code.

* fix golangci-lint documentation link

* revert unrelated changes

* revert another unrelated change

* get rid of remaining nolint:gosec

* swagger updates

* apply review feedback

* fix wrong formatting specifier thing

* fix the linter for real

---------

Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2 months ago
..
cachecontrol.go [bugfix] Set Vary header correctly on cache-control (#1988) 1 year ago
contentsecuritypolicy.go [feature] Set some security related headers (#3065) 6 months ago
contentsecuritypolicy_test.go [feature] Add rate limit exceptions option, use ISO8601 for rate limit reset (#2151) 1 year ago
cors.go [chore] Replace pinafore with semaphore (#1801) 2 years ago
extraheaders.go [feature] Beef up our AI opt-outs (#3165) 5 months ago
gzip.go [chore] Improve copyright header handling (#1608) 2 years ago
headerfilter.go [chore] header filter improvements (#3329) 3 months ago
headerfilter_test.go [feature] request blocking by http headers (#2409) 1 year ago
logger.go [chore] Upgrade golangci-lint, ignore existing int overflow warnings (#3420) 2 months ago
ratelimit.go [feature] request blocking by http headers (#2409) 1 year ago
ratelimit_test.go [feature] Add rate limit exceptions option, use ISO8601 for rate limit reset (#2151) 1 year ago
requestid.go [chore] Upgrade golangci-lint, ignore existing int overflow warnings (#3420) 2 months ago
session.go [chore] Improve copyright header handling (#1608) 2 years ago
session_test.go [chore] Improve copyright header handling (#1608) 2 years ago
signaturecheck.go [feature] Try HTTP signature validation with and without query params for incoming requests (#2591) 11 months ago
throttling.go [chore] Upgrade golangci-lint, ignore existing int overflow warnings (#3420) 2 months ago
throttling_test.go [bugfix] increases sleep time before check in throttle test, to give more leeway (#2482) 12 months ago
tokencheck.go [performance] remove last of relational queries to instead rely on caches (#2091) 1 year ago
useragent.go [feature] request blocking by http headers (#2409) 1 year ago
util.go [feature] request blocking by http headers (#2409) 1 year ago