mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 21:44:08 +00:00
Add godot linter to harmonitze toplevel comments (#3650)
This commit is contained in:
@@ -89,7 +89,7 @@ func run(c *cli.Context, backends []types.Backend) error {
|
||||
|
||||
agentToken := c.String("grpc-token")
|
||||
authClient := agentRpc.NewAuthGrpcClient(authConn, agentToken, agentConfig.AgentID)
|
||||
authInterceptor, err := agentRpc.NewAuthInterceptor(authClient, 30*time.Minute) //nolint: gomnd
|
||||
authInterceptor, err := agentRpc.NewAuthInterceptor(authClient, 30*time.Minute) //nolint:mnd
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ import (
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
//nolint:gomnd
|
||||
//nolint:mnd
|
||||
var flags = []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
EnvVars: []string{"WOODPECKER_SERVER"},
|
||||
|
@@ -27,7 +27,7 @@ import (
|
||||
"go.woodpecker-ci.org/woodpecker/v2/version"
|
||||
)
|
||||
|
||||
// the file implements some basic healthcheck logic based on the
|
||||
// The file implements some basic healthcheck logic based on the
|
||||
// following specification:
|
||||
// https://github.com/mozilla-services/Dockerflow
|
||||
|
||||
@@ -74,7 +74,7 @@ type versionResp struct {
|
||||
Source string `json:"source"`
|
||||
}
|
||||
|
||||
// default statistics counter
|
||||
// Default statistics counter.
|
||||
var counter = &agent.State{
|
||||
Metadata: map[string]agent.Info{},
|
||||
}
|
||||
|
@@ -17,7 +17,7 @@ package core
|
||||
import (
|
||||
"os"
|
||||
|
||||
// Load config from .env
|
||||
// Load config from .env file.
|
||||
_ "github.com/joho/godotenv/autoload"
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
@@ -19,7 +19,7 @@ import (
|
||||
"go.woodpecker-ci.org/woodpecker/v2/version"
|
||||
)
|
||||
|
||||
// generate docs/swagger.json via:
|
||||
// Generate docs/swagger.json via:
|
||||
//go:generate go run woodpecker_docs_gen.go swagger.go
|
||||
//go:generate go run github.com/go-swagger/go-swagger/cmd/swagger@latest validate ../../docs/swagger.json
|
||||
|
||||
|
Reference in New Issue
Block a user