Skip to content

Commit

Permalink
fix(cmd/sync): remove typo on package name
Browse files Browse the repository at this point in the history
Signed-off-by: Massimiliano Giovagnoli <[email protected]>
  • Loading branch information
maxgio92 authored and poiana committed Jan 5, 2024
1 parent e3a7c37 commit 777b7ce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ issues:
- ineffassign
- staticcheck
- errcheck
- path: docs/docs.go
linters:
- forbidigo


8 changes: 4 additions & 4 deletions cmd/sync/local/sync_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"k8s.io/test-infra/prow/repoowners"
"sigs.k8s.io/yaml"

"github.com/falcosecutity/peribolos-syncer/internal/output"
"github.com/falcosecutity/peribolos-syncer/internal/sync"
orgs "github.com/falcosecutity/peribolos-syncer/pkg/peribolos"
"github.com/falcosecurity/peribolos-syncer/internal/output"
"github.com/falcosecurity/peribolos-syncer/internal/sync"
orgs "github.com/falcosecurity/peribolos-syncer/pkg/peribolos"
)

type options struct {
Expand Down Expand Up @@ -71,7 +71,7 @@ func (o *options) validate() error {
return nil
}

func (o *options) Run(cmd *cobra.Command, agrs []string) error {
func (o *options) Run(_ *cobra.Command, _ []string) error {
if err := o.validate(); err != nil {
return errors.Wrap(err, "error validating parameters")
}
Expand Down
2 changes: 2 additions & 0 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ title: %s
var (
filePrepender = func(filename string) string {
title := strings.TrimPrefix(strings.TrimSuffix(strings.ReplaceAll(filename, "_", " "), ".md"), fmt.Sprintf("%s/", docsDir))

return fmt.Sprintf(fileTemplate, title)
}
linkHandler = func(filename string) string {
if filename == cmd.CommandName+".md" {
return "_index.md"
}

return filename
}
)
Expand Down

0 comments on commit 777b7ce

Please sign in to comment.