You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ gometalinter --config=linter_config.json ./pkg/...
pkg/apis/tensorflow/v1alpha1/zz_generated.deepcopy.go:416:2:warning: redundant return statement (S1023) (gosimple)
pkg/apis/tensorflow/v1alpha1/zz_generated.deepcopy.go:165:2:warning: redundant return statement (S1023) (gosimple)
pkg/apis/tensorflow/v1alpha1/zz_generated.deepcopy.go:181:2:warning: redundant return statement (S1023) (gosimple)
pkg/apis/tensorflow/v1alpha1/zz_generated.deepcopy.go:290:2:warning: redundant return statement (S1023) (gosimple)
pkg/apis/tensorflow/v1alpha1/defaults.go:1::warning: file is not goimported (goimports)
pkg/apis/tensorflow/v1alpha1/zz_generated.deepcopy.go:140:2:warning: redundant return statement (S1023) (gosimple)
pkg/apis/tensorflow/v1alpha1/zz_generated.deepcopy.go:108:2:warning: redundant return statement (S1023) (gosimple)
pkg/apis/tensorflow/v1alpha1/zz_generated.deepcopy.go:373:2:warning: redundant return statement (S1023) (gosimple)
pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go:1::warning: file is not goimported (goimports)
pkg/apis/tensorflow/v1alpha1/zz_generated.deepcopy.go:124:2:warning: redundant return statement (S1023) (gosimple)
pkg/client/clientset/versioned/fake/register.go:29:5:warning: unused variable or constant parameterCodec (varcheck)
pkg/apis/tensorflow/v1alpha1/zz_generated.deepcopy.go:1::warning: file is not goimported (goimports)
pkg/apis/tensorflow/v1alpha1/register.go:1::warning: file is not goimported (goimports)
pkg/apis/tensorflow/v1alpha1/types.go:1::warning: file is not goimported (goimports)
pkg/client/informers/externalversions/tensorflow/v1alpha1/tfjob.go:1::warning: file is not goimported (goimports)
pkg/apis/tensorflow/v1alpha1/zz_generated.deepcopy.go:345:2:warning: redundant return statement (S1023) (gosimple)
pkg/apis/tensorflow/v1alpha1/zz_generated.deepcopy.go:439:2:warning: redundant return statement (S1023) (gosimple)
pkg/client/clientset/versioned/scheme/register.go:51:32:warning: error return value not checked (tensorflowv1alpha1.AddToScheme(scheme)) (errcheck)
pkg/apis/tensorflow/helper/helpers_test.go:1::warning: file is not goimported (goimports)
pkg/apis/tensorflow/v1alpha1/zz_generated.deepcopy.go:211:2:warning: redundant return statement (S1023) (gosimple)
pkg/apis/tensorflow/helper/helpers.go:1::warning: file is not goimported (goimports)
pkg/client/informers/externalversions/factory.go:1::warning: file is not goimported (goimports)
pkg/client/informers/externalversions/generic.go:1::warning: file is not goimported (goimports)
pkg/apis/tensorflow/v1alpha1/zz_generated.deepcopy.go:236:2:warning: redundant return statement (S1023) (gosimple)
pkg/apis/tensorflow/v1alpha1/zz_generated.deepcopy.go:256:2:warning: redundant return statement (S1023) (gosimple)
pkg/client/clientset/versioned/fake/register.go:51:32:warning: error return value not checked (tensorflowv1alpha1.AddToScheme(scheme)) (errcheck)
pkg/apis/tensorflow/validation/validation.go:1::warning: file is not goimported (goimports)
My guess is that on #215 Travis hadn't been rerun since gomelinter had been added.
@jimexist Could you take a look please? I'd be ok with a quick fix of disabling lint checks on some or all of the files mentioned with problems. Some of this code like zz_generated is auto-generated and should probably be ignored.
The text was updated successfully, but these errors were encountered:
* fixes#256 travis build failures
* apply goimports -w to generated files to fix a bunch of lint issues.
* There's no good way to tell whether a file was generated. a better way is to ensure that all files and newly submitted ones are goimported. also from now on I think it is better to enforce that even generated code are pre-goimported.
* I didn't fix all the lint warnings because I am afraid of changing any code other than using goimport. I suggest that the original author do the changes instead.
My guess is that on #215 Travis hadn't been rerun since gomelinter had been added.
@jimexist Could you take a look please? I'd be ok with a quick fix of disabling lint checks on some or all of the files mentioned with problems. Some of this code like zz_generated is auto-generated and should probably be ignored.
The text was updated successfully, but these errors were encountered: