diff --git a/cmd/crawl.go b/cmd/crawl.go index 10d06db..6d61c34 100644 --- a/cmd/crawl.go +++ b/cmd/crawl.go @@ -21,7 +21,7 @@ var crawlCmd = &cobra.Command{ When run with no arguments, the publishers are fetched from the API, otherwise the passed YAML files are used.`, Args: cobra.MinimumNArgs(0), - Run: func(cmd *cobra.Command, args []string) { + Run: func(_ *cobra.Command, args []string) { c := crawler.NewCrawler(dryRun) var publishers []common.Publisher diff --git a/cmd/download_publishers.go b/cmd/download_publishers.go index f5edd87..d1de5b1 100644 --- a/cmd/download_publishers.go +++ b/cmd/download_publishers.go @@ -30,7 +30,7 @@ var downloadPublishersCmd = &cobra.Command{ Short: "Download the list of repos and orgs from the onboarding portal.", Long: `Download the list of repos and orgs from the onboarding portal and convert it into a publishers.yml.`, Args: cobra.ExactArgs(2), - Run: func(cmd *cobra.Command, args []string) { + Run: func(_ *cobra.Command, args []string) { var publishers []common.Publisher if _, err := os.Stat(args[1]); err == nil { data, err := ioutil.ReadFile(args[1]) diff --git a/cmd/one.go b/cmd/one.go index 5c6ea30..2f6625a 100644 --- a/cmd/one.go +++ b/cmd/one.go @@ -23,7 +23,7 @@ var oneCmd = &cobra.Command{ according to the supplied file(s). No organizations! Only single repositories!`, Args: cobra.MinimumNArgs(2), - Run: func(cmd *cobra.Command, args []string) { + Run: func(_ *cobra.Command, args []string) { c := crawler.NewCrawler(dryRun) paths := args[1:] diff --git a/cmd/root.go b/cmd/root.go index b2e7743..2955891 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -12,7 +12,7 @@ var ( Short: "A crawler for publiccode.yml files.", Long: `A fast and robust publiccode.yml file crawler. Complete documentation is available at https://github.com/italia/publiccode-crawler`, - Run: func(cmd *cobra.Command, args []string) { + Run: func(cmd *cobra.Command, _ []string) { err := cmd.Help() if err != nil { log.Fatal(err) diff --git a/cmd/version.go b/cmd/version.go index 0ef7112..e719bfd 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -15,7 +15,7 @@ var versionCmd = &cobra.Command{ Use: "version", Short: "Print the version number of the crawler.", Long: `All software has versions. This too.`, - Run: func(cmd *cobra.Command, args []string) { + Run: func(_ *cobra.Command, _ []string) { //nolint:forbidigo fmt.Println("Version:\t", internal.VERSION) //nolint:forbidigo