From ebf2e4b737d99fcb388aec6dcabd4d457851ff02 Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Thu, 28 Sep 2023 12:11:01 +0100 Subject: [PATCH] (chore): Add goimports linter check and fix issues Signed-off-by: Camila Macedo --- .golangci.yml | 3 ++- subcommands/targets/add.go | 3 ++- subcommands/targets/offline-update.go | 9 +++++---- subcommands/users/cmd.go | 3 ++- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 6e0e9bda..68c95854 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -15,4 +15,5 @@ linters: - staticcheck - typecheck - unparam - - unused \ No newline at end of file + - unused + - goimports diff --git a/subcommands/targets/add.go b/subcommands/targets/add.go index 0d7a5703..3ca6a550 100644 --- a/subcommands/targets/add.go +++ b/subcommands/targets/add.go @@ -4,11 +4,12 @@ import ( "encoding/json" "errors" "fmt" + "strings" + "github.com/foundriesio/fioctl/client" "github.com/foundriesio/fioctl/subcommands" "github.com/spf13/cobra" "github.com/spf13/viper" - "strings" ) var ( diff --git a/subcommands/targets/offline-update.go b/subcommands/targets/offline-update.go index 40584133..a1043ad9 100644 --- a/subcommands/targets/offline-update.go +++ b/subcommands/targets/offline-update.go @@ -6,16 +6,17 @@ import ( "encoding/json" "errors" "fmt" - "github.com/foundriesio/fioctl/client" - "github.com/foundriesio/fioctl/subcommands" - "github.com/spf13/cobra" - "github.com/spf13/viper" "io" "os" "path" "strconv" "strings" "time" + + "github.com/foundriesio/fioctl/client" + "github.com/foundriesio/fioctl/subcommands" + "github.com/spf13/cobra" + "github.com/spf13/viper" ) type ( diff --git a/subcommands/users/cmd.go b/subcommands/users/cmd.go index 34dcc76f..60b470b6 100644 --- a/subcommands/users/cmd.go +++ b/subcommands/users/cmd.go @@ -1,13 +1,14 @@ package users import ( + "strings" + "github.com/cheynewallace/tabby" "github.com/foundriesio/fioctl/client" "github.com/foundriesio/fioctl/subcommands" "github.com/sirupsen/logrus" "github.com/spf13/cobra" "github.com/spf13/viper" - "strings" ) func NewCommand() *cobra.Command {