mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-29 04:29:55 +00:00
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>
This commit is contained in:
parent
376bf01769
commit
eb36a4554e
303 changed files with 335 additions and 314 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue