From e39fe465b58fb0aba0d65f6fc8556fe1a1ce402b Mon Sep 17 00:00:00 2001 From: floss4good Date: Fri, 4 Apr 2025 11:55:09 +0300 Subject: [PATCH] adjust revive comment directives --- models/moderation/abuse_report.go | 6 +++--- models/user/moderation.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/models/moderation/abuse_report.go b/models/moderation/abuse_report.go index 653f630160..b3e109ec6c 100644 --- a/models/moderation/abuse_report.go +++ b/models/moderation/abuse_report.go @@ -17,7 +17,7 @@ import ( ) // ReportStatusType defines the statuses a report (of abusive content) can have. -type ReportStatusType int //revive:disable-line:exported +type ReportStatusType int const ( // ReportStatusTypeOpen represents the status of open reports that were not yet handled in any way. @@ -30,7 +30,7 @@ const ( type ( // AbuseCategoryType defines the categories in which a user can include the reported content. - AbuseCategoryType int //revive:disable-line:exported + AbuseCategoryType int // AbuseCategoryItem defines a pair of value and it's corresponding translation key // (used to add options within the dropdown shown when new reports are submitted). @@ -60,7 +60,7 @@ func GetAbuseCategoriesList() []AbuseCategoryItem { // ReportedContentType defines the types of content that can be reported // (i.e. user/organization profile, repository, issue/pull, comment). -type ReportedContentType int //revive:disable-line:exported +type ReportedContentType int const ( // ReportedContentTypeUser should be used when reporting abusive users or organizations. diff --git a/models/user/moderation.go b/models/user/moderation.go index e258bd0428..afda497f02 100644 --- a/models/user/moderation.go +++ b/models/user/moderation.go @@ -18,7 +18,7 @@ import ( // UserData represents a trimmed down user that is used for preserving // only the fields needed for abusive content reports (mainly string fields). -type UserData struct { +type UserData struct { //revive:disable-line:exported Name string FullName string Email string