-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed gofmt and golint issues and added the check in CI #126
Fixed gofmt and golint issues and added the check in CI #126
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running goimports -w .
I get:
~/go/src/github.com/tinkerbell/tink> git diff | e:cat
diff --git a/protos/hardware/hardware.pb.go b/protos/hardware/hardware.pb.go
index da25773..4f4b60e 100644
--- a/protos/hardware/hardware.pb.go
+++ b/protos/hardware/hardware.pb.go
@@ -6,11 +6,12 @@ package hardware
import (
context "context"
fmt "fmt"
+ math "math"
+
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
- math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/protos/template/template.pb.go b/protos/template/template.pb.go
index f793cb9..89a863c 100644
--- a/protos/template/template.pb.go
+++ b/protos/template/template.pb.go
@@ -6,12 +6,13 @@ package template
import (
context "context"
fmt "fmt"
+ math "math"
+
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
- math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/protos/workflow/workflow.pb.go b/protos/workflow/workflow.pb.go
index ec89a58..b5db11a 100644
--- a/protos/workflow/workflow.pb.go
+++ b/protos/workflow/workflow.pb.go
@@ -6,12 +6,13 @@ package workflow
import (
context "context"
fmt "fmt"
+ math "math"
+
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
- math "math"
)
Also lets use |
ae3b6ca
to
3f5d4b9
Compare
3f5d4b9
to
b960c15
Compare
0793ccf
to
69ab901
Compare
@parauliya can you rebase instead of merge master in please? merge makes history messier. |
Besides that :lgtm: |
b0a237d
to
d0638bb
Compare
@mmlb , I rebased my branch to upstream/master. |
This commit has the following things 1. Fixed the goimports and golint issue in the current code. 2. Add check for goimports and golint issues in the CI pipeline
d0638bb
to
8baa560
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR has the following things
1. Fixed the goimports and golint issue in the current code.
2. Add check for goimports and golint issues in the CI pipeline