Skip to content
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

feat(zfspv) Add golint check to travis #175

Merged
merged 5 commits into from
Jul 7, 2020

Conversation

vaniisgh
Copy link
Contributor

@vaniisgh vaniisgh commented Jul 3, 2020

Signed-off-by: vaniisgh vanisingh@live.co.uk

Why is this PR required? What issue does it fix?:
Fixes #168

What this PR does?:
Fixes all golint warnings and adds make golint target to travis

Any additional information for your reviewer? :
There's this linting issue that happens golang/lint#210
I fixed it bu just exporting the names
I think there could be a better way to do it ... please review :)

Checklist:

  • Fixes #
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Has the change log section been updated?
  • Commit has unit tests
  • Commit has integration tests

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@vaniisgh vaniisgh force-pushed the fixLinting branch 2 times, most recently from 6f60615 to b52e014 Compare July 4, 2020 16:14
@codecov-commenter
Copy link

codecov-commenter commented Jul 4, 2020

Codecov Report

Merging #175 into master will increase coverage by 0.23%.
The diff coverage is 20.93%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #175      +/-   ##
==========================================
+ Coverage   22.65%   22.88%   +0.23%     
==========================================
  Files          14       14              
  Lines         490      485       -5     
==========================================
  Hits          111      111              
+ Misses        378      373       -5     
  Partials        1        1              
Impacted Files Coverage Δ
pkg/client/k8s/v1alpha1/namespace.go 0.00% <0.00%> (ø)
pkg/client/k8s/v1alpha1/node.go 0.00% <0.00%> (ø)
pkg/client/k8s/v1alpha1/resource.go 0.00% <0.00%> (ø)
pkg/usage/versionset.go 0.00% <0.00%> (ø)
pkg/client/k8s/v1alpha1/clientset.go 85.71% <100.00%> (ø)
pkg/client/k8s/v1alpha1/configmap.go 88.88% <100.00%> (ø)
pkg/client/k8s/v1alpha1/dynamic.go 85.71% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8b7ad5c...b8d0573. Read the comment docs.

@pawanpraka1 pawanpraka1 added this to the v0.9 milestone Jul 6, 2020
@pawanpraka1 pawanpraka1 added enhancement Add new functionality to existing feature Need community involvement Needs community involvement on some action item. labels Jul 6, 2020
Makefile Outdated Show resolved Hide resolved
@vaniisgh
Copy link
Contributor Author

vaniisgh commented Jul 6, 2020

I think it should be better now :) but I cant till if the \fi is in the correct place ?

@vaniisgh vaniisgh force-pushed the fixLinting branch 5 times, most recently from deb5f9d to 43d7286 Compare July 7, 2020 03:24
pkg/zfs/zfs_util.go Outdated Show resolved Hide resolved
tests/utils.go Outdated Show resolved Hide resolved
tests/utils.go Outdated Show resolved Hide resolved
Copy link
Contributor

@pawanpraka1 pawanpraka1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vaniisgh few minor comments, can you add changelog also?

@vaniisgh
Copy link
Contributor Author

vaniisgh commented Jul 7, 2020

@pawanpraka1 yes just making these changes, I think changelog is updated in the PR already. Should I change it ?

so updated everything else, hope it looks ok :)

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- update typos & names

Signed-off-by: vaniisgh <vanisingh@live.co.uk>
pkg/zfs/zfs_util.go Outdated Show resolved Hide resolved
Signed-off-by: vaniisgh <vanisingh@live.co.uk>
Signed-off-by: vaniisgh <vanisingh@live.co.uk>
Signed-off-by: vaniisgh <vanisingh@live.co.uk>
Signed-off-by: vaniisgh <vanisingh@live.co.uk>
Copy link
Contributor

@pawanpraka1 pawanpraka1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good.

@pawanpraka1 pawanpraka1 merged commit 8bbf3d7 into openebs:master Jul 7, 2020
@vaniisgh vaniisgh deleted the fixLinting branch July 7, 2020 13:01
pawanpraka1 added a commit to pawanpraka1/zfs-localpv that referenced this pull request Jul 9, 2020
pawanpraka1 added a commit to pawanpraka1/zfs-localpv that referenced this pull request Jul 9, 2020
pawanpraka1 added a commit to pawanpraka1/zfs-localpv that referenced this pull request Jul 13, 2020
pawanpraka1 added a commit to pawanpraka1/zfs-localpv that referenced this pull request Jul 21, 2020
Instead of checking for the finalizer, checking for the
volume state to be ready is more intuitive before mounting it.

Also removed duplicate if statement for btrfs which was added while resolveing
the merge conflict in openebs#175.

Signed-off-by: Pawan <pawan@mayadata.io>
pawanpraka1 added a commit to pawanpraka1/zfs-localpv that referenced this pull request Jul 21, 2020
Instead of checking for the finalizer, checking for the
volume state to be ready is more intuitive before mounting it.

Also removed duplicate if statement for btrfs which was added while resolveing
the merge conflict in openebs#175.

Signed-off-by: Pawan <pawan@mayadata.io>
kmova pushed a commit that referenced this pull request Jul 22, 2020
Instead of checking for the finalizer, checking for the
volume state to be ready is more intuitive before mounting it.

Also removed duplicate if statement for btrfs which was added while resolveing
the merge conflict in #175.

Signed-off-by: Pawan <pawan@mayadata.io>
pawanpraka1 added a commit to pawanpraka1/zfs-localpv that referenced this pull request Aug 10, 2020
Instead of checking for the finalizer, checking for the
volume state to be ready is more intuitive before mounting it.

Also removed duplicate if statement for btrfs which was added while resolveing
the merge conflict in openebs#175.

Signed-off-by: Pawan <pawan@mayadata.io>
kmova pushed a commit that referenced this pull request Aug 10, 2020
Instead of checking for the finalizer, checking for the
volume state to be ready is more intuitive before mounting it.

Also removed duplicate if statement for btrfs which was added while resolveing
the merge conflict in #175.

Signed-off-by: Pawan <pawan@mayadata.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Add new functionality to existing feature Need community involvement Needs community involvement on some action item.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add golint to check to travis
3 participants