forgejo/services/context
silverwind 12b199c5e5
Enable more revive linter rules (#30608)
Noteable additions:

- `redefines-builtin-id` forbid variable names that shadow go builtins
- `empty-lines` remove unnecessary empty lines that `gofumpt` does not
remove for some reason
- `superfluous-else` eliminate more superfluous `else` branches

Rules are also sorted alphabetically and I cleaned up various parts of
`.golangci.yml`.

(cherry picked from commit 74f0c84fa4245a20ce6fb87dac1faf2aeeded2a2)

Conflicts:
	.golangci.yml
	apply the linter recommendations to Forgejo code as well
2024-04-28 15:39:00 +02:00
..
upload
access_log.go
api.go
api_org.go
api_test.go
base.go
base_test.go Use strict protocol check when redirect (#29642) 2024-03-11 23:36:59 +07:00
captcha.go Clean up log messages (#30313) 2024-04-15 20:01:35 +02:00
context.go Customizable "Open with" applications for repository clone (#29320) 2024-03-23 11:58:54 +01:00
context_cookie.go
context_model.go
context_request.go
context_response.go [PORT] drop utils.IsExternalURL (and expand IsRiskyRedirectURL tests) (#3167) 2024-04-15 13:03:08 +00:00
context_template.go
context_test.go
csrf.go
org.go
package.go
pagination.go Unify search boxes (#29530) 2024-03-20 12:31:05 +00:00
permission.go
private.go
repo.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
response.go
user.go
utils.go
xsrf.go
xsrf_test.go