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

cleanup: resolve godot linter #2256

Merged
merged 1 commit into from
Jul 13, 2021
Merged

cleanup: resolve godot linter #2256

merged 1 commit into from
Jul 13, 2021

Conversation

yati1998
Copy link
Contributor

@yati1998 yati1998 commented Jul 8, 2021

This commit resolves godot linter issue
which says "Comment should end in a period (godot)".

Updates: #1586

Signed-off-by: Yati Padia ypadia@redhat.com

@mergify mergify bot added the cleanup label Jul 8, 2021
e2e/rbd.go Outdated
@@ -56,7 +56,7 @@ var (
)

func deployRBDPlugin() {
// delete objects deployed by rook
// delete objects deployed by rook.
Copy link
Member

Choose a reason for hiding this comment

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

I think the comments-should-end-with-a-dot is only required for top-level comments, not inside functions? Could you check that please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes sure @nixpanic . I will check and update accordingly.

@yati1998
Copy link
Contributor Author

yati1998 commented Jul 9, 2021

@nixpanic godot linter checks only for top-level comments. I have made the necessary changes, but we don't follow a particular format for comments throughout the code. Hence, I suggest we should have some guidelines that can bring uniformity to the code.

@@ -124,7 +124,7 @@ func (r *Driver) Run(conf *util.Config) {
volJournal = journal.NewCSIVolumeJournal(CSIInstanceID)
snapJournal = journal.NewCSISnapshotJournal(CSIInstanceID)

// Initialize default library driver
// Initialize default library drivers
Copy link
Contributor

@Yuggupta27 Yuggupta27 Jul 9, 2021

Choose a reason for hiding this comment

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

Did godot give a warning here? If not, I think this change can be reverted.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey, that's my mistake. Maybe added that while saving the file. will correct that. Thanks for notifying me.

Madhu-1
Madhu-1 previously approved these changes Jul 9, 2021
@Madhu-1 Madhu-1 requested a review from nixpanic July 9, 2021 07:22
@nixpanic
Copy link
Member

nixpanic commented Jul 9, 2021

@nixpanic godot linter checks only for top-level comments. I have made the necessary changes, but we don't follow a particular format for comments throughout the code. Hence, I suggest we should have some guidelines that can bring uniformity to the code.

I think following the godot guidelines is sufficient. Comments inside functions are much more important to me than the formatting of them. The godot guidelines make sense for APIs that are re-used, and make documentation like https://pkg.go.dev/github.com/ceph/ceph-csi helpful for new contributors.

@nixpanic
Copy link
Member

nixpanic commented Jul 9, 2021

/retest ci/centos/mini-e2e-helm/k8s-1.21

@nixpanic
Copy link
Member

nixpanic commented Jul 9, 2021

/retest ci/centos/mini-e2e-helm/k8s-1.21

Failed to deploy minikube VM (#2264), logs.

nixpanic
nixpanic previously approved these changes Jul 9, 2021
@yati1998
Copy link
Contributor Author

/retest ci/centos/mini-e2e-helm/k8s-1.21

@mergify mergify bot dismissed stale reviews from Madhu-1 and nixpanic July 12, 2021 14:11

Pull request has been modified.

nixpanic
nixpanic previously approved these changes Jul 12, 2021
@nixpanic nixpanic added ci/skip/e2e skip running e2e CI jobs ready-to-merge This PR is ready to be merged and it doesn't need second review (backports only) labels Jul 12, 2021
@mergify
Copy link
Contributor

mergify bot commented Jul 12, 2021

This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏

@nixpanic
Copy link
Member

oh, sorry, #2270 introduced a conflict with this PR 😞

@yati1998
Copy link
Contributor Author

oh, sorry, #2270 introduced a conflict with this PR

No worries will resolve it. Facing network issues currently.

This commit resolves godot linter issue
which says "Comment should end in a period (godot)".

Updates: ceph#1586

Signed-off-by: Yati Padia <ypadia@redhat.com>
@mergify mergify bot merged commit 4a649fe into ceph:devel Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/skip/e2e skip running e2e CI jobs cleanup ready-to-merge This PR is ready to be merged and it doesn't need second review (backports only)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants