adjust revive comment directives

This commit is contained in:
floss4good 2025-04-04 11:55:09 +03:00
parent 43d613172f
commit e39fe465b5
No known key found for this signature in database
GPG key ID: 5B948B4F4DAF819D
2 changed files with 4 additions and 4 deletions

View file

@ -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.

View file

@ -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