Skip to content

Commit 1aa47b0

Browse files
committed
shorter comment for "export stutter"
1 parent 5b32025 commit 1aa47b0

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

models/issues/issue_search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
const ScopeSortPrefix = "scope-"
2525

2626
// IssuesOptions represents options of an issue.
27-
type IssuesOptions struct { //nolint:revive // export stutter, not a large issue
27+
type IssuesOptions struct { //nolint:revive // export stutter
2828
Paginator *db.ListOptions
2929
RepoIDs []int64 // overwrites RepoCond if the length is not 0
3030
AllPublic bool // include also all public repositories

models/perm/access/repo_permission.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,13 +408,13 @@ func IsUserRepoAdmin(ctx context.Context, repo *repo_model.Repository, user *use
408408

409409
// AccessLevel returns the Access a user has to a repository. Will return NoneAccess if the
410410
// user does not have access.
411-
func AccessLevel(ctx context.Context, user *user_model.User, repo *repo_model.Repository) (perm_model.AccessMode, error) { //nolint:revive // export stutter, not a large issue
411+
func AccessLevel(ctx context.Context, user *user_model.User, repo *repo_model.Repository) (perm_model.AccessMode, error) { //nolint:revive // export stutter
412412
return AccessLevelUnit(ctx, user, repo, unit.TypeCode)
413413
}
414414

415415
// AccessLevelUnit returns the Access a user has to a repository's. Will return NoneAccess if the
416416
// user does not have access.
417-
func AccessLevelUnit(ctx context.Context, user *user_model.User, repo *repo_model.Repository, unitType unit.Type) (perm_model.AccessMode, error) { //nolint:revive // export stutter, not a large issue
417+
func AccessLevelUnit(ctx context.Context, user *user_model.User, repo *repo_model.Repository, unitType unit.Type) (perm_model.AccessMode, error) { //nolint:revive // export stutter
418418
perm, err := GetUserRepoPermission(ctx, repo, user)
419419
if err != nil {
420420
return perm_model.AccessModeNone, err

models/project/project.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ func (p *Project) LoadRepo(ctx context.Context) (err error) {
129129
return err
130130
}
131131

132-
func ProjectLinkForOrg(org *user_model.User, projectID int64) string { //nolint:revive // export stutter, not a large issue
132+
func ProjectLinkForOrg(org *user_model.User, projectID int64) string { //nolint:revive // export stutter
133133
return fmt.Sprintf("%s/-/projects/%d", org.HomeLink(), projectID)
134134
}
135135

136-
func ProjectLinkForRepo(repo *repo_model.Repository, projectID int64) string { //nolint:revive // export stutter, not a large issue
136+
func ProjectLinkForRepo(repo *repo_model.Repository, projectID int64) string { //nolint:revive // export stutter
137137
return fmt.Sprintf("%s/projects/%d", repo.Link(), projectID)
138138
}
139139

models/repo/transfer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (err ErrRepoTransferInProgress) Unwrap() error {
6161
}
6262

6363
// RepoTransfer is used to manage repository transfers
64-
type RepoTransfer struct { //nolint:revive // export stutter, not a large issue
64+
type RepoTransfer struct { //nolint:revive // export stutter
6565
ID int64 `xorm:"pk autoincr"`
6666
DoerID int64
6767
Doer *user_model.User `xorm:"-"`

modules/commitstatus/commit_status.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package commitstatus
55

66
// CommitStatusState holds the state of a CommitStatus
77
// swagger:enum CommitStatusState
8-
type CommitStatusState string //nolint:revive // export stutter, not a large issue
8+
type CommitStatusState string //nolint:revive // export stutter
99

1010
const (
1111
// CommitStatusPending is for when the CommitStatus is Pending
@@ -56,7 +56,7 @@ func (css CommitStatusState) IsSkipped() bool {
5656
return css == CommitStatusSkipped
5757
}
5858

59-
type CommitStatusStates []CommitStatusState //nolint:revive // export stutter, not a large issue
59+
type CommitStatusStates []CommitStatusState //nolint:revive // export stutter
6060

6161
// According to https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28#get-the-combined-status-for-a-specific-reference
6262
// > Additionally, a combined state is returned. The state is one of:

0 commit comments

Comments
 (0)