-
Notifications
You must be signed in to change notification settings - Fork 91
Conversation
|
Welcome @gitvinit! |
hack/update-gofmt.sh
Outdated
@@ -0,0 +1,40 @@ | |||
#!/usr/bin/env bash | |||
|
|||
# Copyright 2014 The Kubernetes Authors. |
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.
I think we should update the year to 2023, not sure though.
thoughts @jayunit100 @knabben ?
Rest all looks good and matches k/k upstream!
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.
On new file use the year this is being created. If you are changing an existent file - keep the old date, or change for 2014-2023.
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.
Thanks for the review Amim and Daman updated the date
hack/verify-gofmt.sh
Outdated
@@ -0,0 +1,57 @@ | |||
#!/usr/bin/env bash | |||
|
|||
# Copyright 2021 The Kubernetes Authors. |
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.
change the date here
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.
Updated the date as per comment
# limitations under the License. | ||
|
||
# This script checks whether the source code needs to be formatted or not by | ||
# `gofmt`. Run `hack/update-gofmt.sh` to actually format sources. |
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.
What about bring some notes in the README, and clarify the difference between both.
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.
Sure Amim added to README
@@ -149,7 +149,8 @@ pushing directly to a local registry and configuring kind to use this reg, so do | |||
isnt required. | |||
- Or a `tilt` recipe which hot reloads all kpng on code changes. | |||
|
|||
|
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.
for the future, these kind of linters are better integrated in the IDE, we can update the readme on a next moment with the instructions
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.
Sure sounds good
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gitvinit, knabben The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Adds gofmt verification for pull requests and pushes to master branch