Skip to content

Commit

Permalink
Exclude line from line length linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
johnboyes authored Feb 10, 2024
1 parent 7a85fff commit 064a3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/github/pullrequest/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (l Labels) HasNoneOf(specified []string, prefixMode bool) (bool, string) {
// all of the specified labels, along with a report describing the result.
func (l Labels) HasAllOf(specified []string, prefixMode bool) (bool, string) {
if prefixMode {
return false, "The label checker does not support prefix checking with `all_of`, as that is not a logical combination."
return false, "The label checker does not support prefix checking with `all_of`, as that is not a logical combination." //nolint:lll
}
return l.hasXof(specified, "all", prefixMode)

Check failure on line 32 in internal/github/pullrequest/labels.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] internal/github/pullrequest/labels.go#L32

return statements should not be cuddled if block has more than two lines (wsl)
Raw output
internal/github/pullrequest/labels.go:32:2: return statements should not be cuddled if block has more than two lines (wsl)
	return l.hasXof(specified, "all", prefixMode)
	^
}
Expand Down

0 comments on commit 064a3e3

Please sign in to comment.