Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion command/auth/login/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func NewCmdLogin() *cobra.Command {
Short: "Log in to DeepSource using Command Line Interface",
Long: doc,
Args: utils.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
return opts.Run()
},
}
Expand Down
2 changes: 1 addition & 1 deletion command/auth/logout/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func NewCmdLogout() *cobra.Command {
Use: "logout",
Short: "Logout of your active DeepSource account",
Args: utils.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
opts := LogoutOptions{}
return opts.Run()
},
Expand Down
2 changes: 1 addition & 1 deletion command/auth/refresh/refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewCmdRefresh() *cobra.Command {
Short: "Refresh stored authentication credentials",
Long: doc,
Args: utils.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
return opts.Run()
},
}
Expand Down
2 changes: 1 addition & 1 deletion command/auth/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func NewCmdStatus() *cobra.Command {
Short: "View the authentication status",
Long: doc,
Args: utils.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
opts := AuthStatusOptions{}
return opts.Run()
},
Expand Down
2 changes: 1 addition & 1 deletion command/config/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func NewCmdConfigGenerate() *cobra.Command {
Short: "Generate config for DeepSource",
Long: doc,
Args: utils.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
return o.Run()
},
}
Expand Down
2 changes: 1 addition & 1 deletion command/config/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func NewCmdValidate() *cobra.Command {
Use: "validate",
Short: "Validate DeepSource config",
Args: utils.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
return o.Run()
},
}
Expand Down
2 changes: 1 addition & 1 deletion command/issues/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func NewCmdIssuesList() *cobra.Command {
Use: "list",
Short: "List issues reported by DeepSource",
Long: doc,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
opts.FileArg = args
return opts.Run()
},
Expand Down
2 changes: 1 addition & 1 deletion command/repo/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func NewCmdRepoStatus() *cobra.Command {
Short: "View the activation status for the repository.",
Long: doc,
Args: utils.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
return opts.Run()
},
}
Expand Down
2 changes: 1 addition & 1 deletion command/repo/view/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func NewCmdRepoView() *cobra.Command {
Short: "Open the DeepSource dashboard of a repository",
Long: doc,
Args: utils.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
return opts.Run()
},
}
Expand Down
2 changes: 1 addition & 1 deletion command/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func NewCmdReport() *cobra.Command {
Short: "Report artifacts to DeepSource",
Long: doc,
Args: utils.NoArgs,
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, args []string) {
returnCode := opts.Run()
sentry.Flush(2 * time.Second)
defer os.Exit(returnCode)
Expand Down
2 changes: 1 addition & 1 deletion command/version/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func NewCmdVersion() *cobra.Command {
Use: "version",
Short: "Get the version of the DeepSource CLI",
Args: utils.NoArgs,
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, args []string) {
o := Options{}
fmt.Println(o.Run())
},
Expand Down
2 changes: 1 addition & 1 deletion version/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func TestSetBuildInfo(t *testing.T) {
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Run(tt.name, func(_ *testing.T) {
SetBuildInfo(tt.args.version, tt.args.dateStr, tt.args.gitTreeState, tt.args.gitCommit)
})
if !reflect.DeepEqual(buildInfo, want) {
Expand Down