Add godot linter to harmonitze toplevel comments (#3650)

This commit is contained in:
Robert Kaussow
2024-05-13 22:58:21 +02:00
committed by GitHub
parent 83eba294c7
commit 89e100cfd1
144 changed files with 302 additions and 302 deletions

View File

@@ -14,7 +14,7 @@
package constant
// PrivilegedPlugins can be changed by 'WOODPECKER_ESCALATE' at runtime
// PrivilegedPlugins can be changed by 'WOODPECKER_ESCALATE' at runtime.
var PrivilegedPlugins = []string{
"plugins/docker",
"plugins/gcr",
@@ -24,7 +24,7 @@ var PrivilegedPlugins = []string{
}
// DefaultConfigOrder represent the priority in witch woodpecker search for a pipeline config by default
// folders are indicated by supplying a trailing /
// folders are indicated by supplying a trailing slash.
var DefaultConfigOrder = [...]string{
".woodpecker/",
".woodpecker.yaml",
@@ -32,7 +32,7 @@ var DefaultConfigOrder = [...]string{
}
const (
// DefaultCloneImage can be changed by 'WOODPECKER_DEFAULT_CLONE_IMAGE' at runtime
// DefaultCloneImage can be changed by 'WOODPECKER_DEFAULT_CLONE_IMAGE' at runtime.
DefaultCloneImage = "docker.io/woodpeckerci/plugin-git:2.4.0"
)

View File

@@ -14,7 +14,7 @@
package utils
// Paginate iterates over a func call until it does not return new items and return it as list
// Paginate iterates over a func call until it does not return new items and return it as list.
func Paginate[T any](get func(page int) ([]T, error)) ([]T, error) {
items := make([]T, 0, 10)
page := 1

View File

@@ -32,7 +32,7 @@ func MergeSlices[T any](slices ...[]T) []T {
return result
}
// EqualSliceValues compare two slices if they have equal values independent of how they are sorted
// EqualSliceValues compare two slices if they have equal values independent of how they are sorted.
func EqualSliceValues[E comparable](s1, s2 []E) bool {
if len(s1) != len(s2) {
return false

View File

@@ -14,7 +14,7 @@
package utils
// DeduplicateStrings deduplicate string list, empty items are dropped
// DeduplicateStrings deduplicate string list, empty items are dropped.
func DeduplicateStrings(src []string) []string {
m := make(map[string]struct{}, len(src))
dst := make([]string, 0, len(src))