mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-08 02:31:36 +02:00
adjust revive comment directives
This commit is contained in:
parent
43d613172f
commit
e39fe465b5
2 changed files with 4 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue