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
Improve GoReportCard metrics, both gofmt and golint #90
Improve GoReportCard metrics, both gofmt and golint #90
Conversation
4e22d06
to
a0a2910
Compare
mockapihelpers.go
Outdated
@@ -6,6 +6,7 @@ import ( | |||
api "k8s.io/client-go/pkg/api/v1" | |||
) | |||
|
|||
// MockAPIHelpers for testing support |
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.
This file is auto-generated. Making manual changes to auto-generated files is not recommended. Please revert this change.
mockfeaturesource.go
Outdated
@@ -2,6 +2,7 @@ package main | |||
|
|||
import "github.com/stretchr/testify/mock" | |||
|
|||
// MockFeatureSource for testing support |
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.
This file is auto-generated. Making manual changes to auto-generated files is not recommended. Please revert this change.
source/fake/fake.go
Outdated
@@ -19,13 +19,15 @@ package fake | |||
// Source implements FeatureSource. | |||
type Source struct{} | |||
|
|||
// Name returns a friendly name for this source. |
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.
Maybe change this description to Name returns a identifier string for this feature source
?
source/network/network.go
Outdated
) | ||
|
||
// Source implements FeatureSource. | ||
type Source struct{} | ||
|
||
// Name returns a friendly name for this source. |
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.
Maybe change this description to Name returns a identifier string for this feature source
?
source/panic_fake/fake_panic.go
Outdated
@@ -19,8 +19,10 @@ package panic_fake | |||
// Source implements FeatureSource. | |||
type Source struct{} | |||
|
|||
// Name returns a friendly name for this source. |
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.
Maybe change this description to Name returns a identifier string for this feature source
?
source/pstate/pstate.go
Outdated
@@ -24,6 +24,7 @@ import ( | |||
// Source implements FeatureSource. | |||
type Source struct{} | |||
|
|||
// Name returns a friendly name for this source. |
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.
Maybe change this description to Name returns a identifier string for this feature source
?
source/rdt/rdt.go
Outdated
@@ -31,9 +31,10 @@ const ( | |||
// Source implements FeatureSource. | |||
type Source struct{} | |||
|
|||
// Name returns a friendly name for this source. |
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.
Maybe change this description to Name returns a identifier string for this feature source
?
b8baef6
to
87d6393
Compare
I made proposed changes. I used "an identifier" as this seems grammatically more correct. |
Thanks for making these changes. During linting there are ways to ignore files if required. Also fair point on the changes to those mock files in #102. If you add back the changes you made earlier, I can re-approve it. |
@okartau Any updates on this? |
Order of import changed in main.go and network.go, missing ending newline added in fake.go
Mostly about missing or incomplete comments
87d6393
to
4003367
Compare
rebased and force pushed, should be up to date now |
Adding a note that these files are auto-generated, including instructions how to re-generate these files. Rename the files, using the defaults provided by the mockery tool, in order to make their generation easier.
PR #141 is aiming at resolving this |
Adding a note that these files are auto-generated, including instructions how to re-generate these files. Rename the files, using the defaults provided by the mockery tool, in order to make their generation easier.
Adding a note that these files are auto-generated, including instructions how to re-generate these files. Rename the files, using the defaults provided by the mockery tool, in order to make their generation easier.
Order of import changed in main.go and network.go,
missing ending newline added in fake.go
[warm-up exercise as just starting with this project. This change is expected to set gofmt metrics to 100%]