-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Start verifying golint on a per-package basis as packages are fixed #27911
Start verifying golint on a per-package basis as packages are fixed #27911
Conversation
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
3 similar comments
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
If you decide yes, then I can open an issue much like this one (moby/moby#14756) and people can start helping! |
cd "${KUBE_ROOT}" | ||
|
||
# Use this function when we are ready to start validating all packages. | ||
find_files() { |
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 suggest omitting this because it will probably have bit rotted by the time it's safe to plug it in.
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
add to whitelist |
I'm totally willing to throw in effort on this if it's desired. Would be great to establish a list of packages needing this work done. I really want to get into the kube codebase, and this was helpful, if a bit overwhelming at times when trying to get into the docker codebase. |
ok to test |
please reassign when it's ready for another look. |
81b1654
to
9e8f357
Compare
ok now I think it should be what you suggested @lavalamp :) |
4b786b9
to
2cae366
Compare
2cae366
to
e89a7bd
Compare
@jfrazelle |
Ping @jfrazelle if you could respond to comments I think we can get this merged? |
a51f7bd
to
d983cc0
Compare
ff1358e
to
8efc7fd
Compare
Signed-off-by: Jess Frazelle <me@jessfraz.com>
Signed-off-by: Jess Frazelle <me@jessfraz.com>
Signed-off-by: Jess Frazelle <me@jessfraz.com>
8efc7fd
to
70d860f
Compare
GCE e2e build/test passed for commit 70d860f. |
it's green and comments are addressed now :) |
LGTM, thanks! |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 70d860f. |
Automatic merge from submit-queue |
This is a POC to start enabling
golint
checks on a per-package basis, we did this on the docker project and it was a great way for new contributors to help and it benefits the project overall. All they have to do is add the package they fixed to the bash array inhack/verify-golint.sh
and fix all the lint errors.Eventually when all the packages have been fixed we can change the function to
find_files
. Or something based off which files are changed in a patch set to verifygolint
.Now I used this specific package as the POC because I wanted to show the downside of this changing the api of the package.
Most of the times this arose in docker/docker we decided that if someone wasn't importing their deps locally then it was their loss, but I'm not sure if you all will agree.
This change is