Skip to content

Commit

Permalink
chore: drop gochecknoinits
Browse files Browse the repository at this point in the history
  • Loading branch information
5n7-sk committed Dec 6, 2020
1 parent c1f0990 commit c190f93
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ linters:
- errcheck
- exhaustive
- funlen
- gochecknoinits
- gocognit
- goconst
- gocritic
Expand Down
2 changes: 1 addition & 1 deletion cmd/vin/cmd/cmd_completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var completionCmd = &cobra.Command{
RunE: runCompletion,
}

func init() { //nolint:gochecknoinits
func init() {
completionCmd.Flags().StringVarP(&shell, "shell", "s", "bash", "shell type (bash/fish/powershell/zsh)")

rootCmd.AddCommand(completionCmd)
Expand Down
2 changes: 1 addition & 1 deletion cmd/vin/cmd/cmd_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var getCmd = &cobra.Command{
RunE: runGet,
}

func init() { //nolint:gochecknoinits
func init() {
getCmd.Flags().BoolVarP(&selectApps, "select", "s", false, "select applications to install")

rootCmd.AddCommand(getCmd)
Expand Down
2 changes: 1 addition & 1 deletion cmd/vin/cmd/cmd_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var rootCmd = &cobra.Command{
RunE: runRoot,
}

func init() { //nolint:gochecknoinits
func init() {
rootCmd.Flags().BoolVarP(&version, "version", "V", false, "show version")
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/vin/cmd/cmd_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ var tokenCmd = &cobra.Command{
RunE: runToken,
}

func init() { //nolint:gochecknoinits
func init() {
rootCmd.AddCommand(tokenCmd)
}
2 changes: 1 addition & 1 deletion cmd/vin/cmd/cmd_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ var versionCmd = &cobra.Command{
RunE: runVersion,
}

func init() { //nolint:gochecknoinits
func init() {
rootCmd.AddCommand(versionCmd)
}

0 comments on commit c190f93

Please sign in to comment.