forgejo/modules/templates
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
..
eval
scopedtmpl
vars
base.go
dynamic.go
helper.go [PORT] gitea##30237: Fix and rewrite contrast color calculation, fix project-related bugs 2024-04-15 16:11:34 +02:00
helper_test.go Remove unnecessary SanitizeHTML from code (#29575) 2024-03-11 23:36:58 +07:00
htmlrenderer.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
htmlrenderer_test.go
mailer.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
main_test.go [BUG] Render correct label link 2024-04-12 17:23:20 +02:00
static.go
templates_bindata.go
util_avatar.go Fix default avatar image size in PR diff page (#28971) 2024-02-02 10:01:11 +00:00
util_dict.go
util_json.go
util_misc.go Avoid losing token when updating mirror settings (#30429) 2024-04-15 20:01:36 +02:00
util_render.go [PORT] gitea##30237: Fix and rewrite contrast color calculation, fix project-related bugs 2024-04-15 16:11:34 +02:00
util_render_test.go [BUG] Render correct label link 2024-04-12 17:23:20 +02:00
util_slice.go
util_string.go Refactor some Str2html code (#29397) 2024-03-06 12:10:44 +08:00
util_string_test.go templates: HasPrefix support for template.HTML 2024-02-16 15:20:52 +01:00
util_test.go