Skip to content

Commit

Permalink
chore: enable forbidigo linter
Browse files Browse the repository at this point in the history
See #331.
  • Loading branch information
bfabio committed Sep 22, 2023
1 parent 08a84fc commit 133815e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ linters:
- execinquery
- exhaustive
- exportloopref
# - forbidigo
- forbidigo
- forcetypeassert
# - funlen
- gci
Expand Down
2 changes: 2 additions & 0 deletions cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ var versionCmd = &cobra.Command{
Short: "Print the version number of the crawler.",
Long: `All software has versions. This too.`,
Run: func(cmd *cobra.Command, args []string) {
//nolint:forbidigo
fmt.Println("Version:\t", internal.VERSION)
//nolint:forbidigo
fmt.Println("Build time:\t", internal.BuildTime)
},
}

0 comments on commit 133815e

Please sign in to comment.