chore: update and relax revive naming rules (#38615)

- enable `skip-initialism-name-checks`, so names like `sessionUid` are
allowed
- replace removed `skip-package-name-checks` option with new
`package-naming` with fitting rules for gitea
- drop dead exclusion paths
This commit is contained in:
silverwind
2026-07-24 21:47:23 +00:00
committed by GitHub
parent 818da42728
commit 13406e7aa7
4 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ func reactionToEmoji(reaction string) template.HTML {
return template.HTML(fmt.Sprintf(`<img alt=":%s:" src="%s/assets/img/emoji/%s.png"></img>`, reaction, setting.StaticURLPrefix, url.PathEscape(reaction)))
}
func (ut *RenderUtils) MarkdownToHtml(input string) template.HTML { //nolint:revive // variable naming triggers on Html, wants HTML
func (ut *RenderUtils) MarkdownToHtml(input string) template.HTML {
output, err := markdown.RenderString(markup.NewRenderContext(ut.ctx).WithMetas(markup.ComposeSimpleDocumentMetas()), input)
if err != nil {
log.Error("RenderString: %v", err)