Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Jul 11, 2024
1 parent 7a2ba73 commit b5f7143
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ issues:
exclude-dirs:
- example
exclude-rules:
- path: cmd/*
linters:
- gochecknoglobals
- gochecknoinits
- path: (.+)_test.go
linters:
- dupl
2 changes: 0 additions & 2 deletions cmd/check.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//nolint:gochecknoglobals
package cmd

import (
Expand Down Expand Up @@ -53,7 +52,6 @@ var checkCmd = &cobra.Command{
},
}

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

Expand Down
4 changes: 2 additions & 2 deletions cmd/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (
"github.com/bavix/gripmock/internal/deps"
)

// restCmd represents the rest command
// restCmd represents the rest command.
var restCmd = &cobra.Command{
Use: "rest",
Short: "Start only the rest service",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
builder := deps.NewBuilder(deps.WithDefaultConfig())
ctx, cancel := builder.SignalNotify(cmd.Context())
defer cancel()
Expand Down
2 changes: 0 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//nolint:gochecknoglobals
package cmd

import (
Expand Down Expand Up @@ -43,7 +42,6 @@ var rootCmd = &cobra.Command{
},
}

//nolint:gochecknoinits
func init() {
rootCmd.Flags().StringVarP(
&outputFlag,
Expand Down

0 comments on commit b5f7143

Please sign in to comment.