Skip to content

Commit 80b05b7

Browse files
committed
mark var-naming related revive ignores
1 parent 482ac72 commit 80b05b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/templates/util_json.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import (
99
"code.gitea.io/gitea/modules/json"
1010
)
1111

12-
type JsonUtils struct{} //nolint:revive
12+
type JsonUtils struct{} //nolint:revive // variable naming triggers on Json, wants JSON
1313

1414
var jsonUtils = JsonUtils{}
1515

16-
func NewJsonUtils() *JsonUtils { //nolint:revive
16+
func NewJsonUtils() *JsonUtils { //nolint:revive // variable naming triggers on Json, wants JSON
1717
return &jsonUtils
1818
}
1919

modules/templates/util_render.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func reactionToEmoji(reaction string) template.HTML {
218218
return template.HTML(fmt.Sprintf(`<img alt=":%s:" src="%s/assets/img/emoji/%s.png"></img>`, reaction, setting.StaticURLPrefix, url.PathEscape(reaction)))
219219
}
220220

221-
func (ut *RenderUtils) MarkdownToHtml(input string) template.HTML { //nolint:revive
221+
func (ut *RenderUtils) MarkdownToHtml(input string) template.HTML { //nolint:revive // variable naming triggers on Html, wants HTML
222222
output, err := markdown.RenderString(markup.NewRenderContext(ut.ctx).WithMetas(markup.ComposeSimpleDocumentMetas()), input)
223223
if err != nil {
224224
log.Error("RenderString: %v", err)

0 commit comments

Comments
 (0)