mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 05:47:57 +00:00
Add godot linter to harmonitze toplevel comments (#3650)
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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))
|
||||
|
Reference in New Issue
Block a user