forgejo/routers/web
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
..
admin ldap: default domain name (#3414) 2024-04-26 22:38:58 +00:00
auth Implement remote user login source and promotion to regular user 2024-04-25 13:03:49 +02:00
devtest
events
explore Unify search boxes (#29530) 2024-03-20 12:31:05 +00:00
feed
healthcheck Add health-check test 2024-04-06 00:34:55 +02:00
misc
org Fix project description rendering for org (#30587) 2024-04-21 16:28:16 +02:00
repo Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
shared Add API for Variables (#29520) 2024-04-07 10:57:53 +02:00
user Convert the remaining interface{}s to any 2024-04-15 20:01:36 +02:00
base.go
githttp.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Fix HEAD method for robots.txt (#30603) 2024-04-21 16:28:16 +02:00
webfinger.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00