aboutsummaryrefslogtreecommitdiffstats
path: root/modules/commitstatus/commit_status.go
diff options
context:
space:
mode:
authorTheFox0x7 <thefox0x7@gmail.com>2025-06-27 07:59:55 +0200
committerGitHub <noreply@github.com>2025-06-27 07:59:55 +0200
commiteb36a4554ee9a9d15954f08dd37deee54385e29c (patch)
treedf3681b399bc6add525f7ef33359e379c06f73f3 /modules/commitstatus/commit_status.go
parent376bf01769b78b2ddf3562e6b6774e8f19053403 (diff)
downloadgitea-eb36a4554ee9a9d15954f08dd37deee54385e29c.tar.gz
gitea-eb36a4554ee9a9d15954f08dd37deee54385e29c.zip
enforce nolint scope (#34851)
enable nolintlint scope requirement add comments to new directives so it's more obvious why they are in place --- I can also toggle the mandatory comments on if that's something of interest. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'modules/commitstatus/commit_status.go')
-rw-r--r--modules/commitstatus/commit_status.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commitstatus/commit_status.go b/modules/commitstatus/commit_status.go
index 12004474ed..a0ab4e7186 100644
--- a/modules/commitstatus/commit_status.go
+++ b/modules/commitstatus/commit_status.go
@@ -5,7 +5,7 @@ package commitstatus
// CommitStatusState holds the state of a CommitStatus
// swagger:enum CommitStatusState
-type CommitStatusState string //nolint
+type CommitStatusState string //nolint:revive // export stutter
const (
// CommitStatusPending is for when the CommitStatus is Pending
@@ -56,7 +56,7 @@ func (css CommitStatusState) IsSkipped() bool {
return css == CommitStatusSkipped
}
-type CommitStatusStates []CommitStatusState //nolint
+type CommitStatusStates []CommitStatusState //nolint:revive // export stutter
// According to https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28#get-the-combined-status-for-a-specific-reference
// > Additionally, a combined state is returned. The state is one of: