kubernetes: Fix static check failures
As #81189 has been merged, there are a lot of packages that cannot pass the static check and we need to clean them up!
Step 1: Remove one or two packages (related packages) from the list in - https://github.com/kubernetes/kubernetes/blame/master/hack/.staticcheck_failures Step 2: Run hack/verify-staticcheck.sh and look at the logged errors Step 3: Fix the code to ensure that hack/verify-staticcheck.sh runs cleanly. Step 4: Run hack/update-bazel.sh and hack/update-gofmt.sh to make sure we fix any problems with gofmt or bazel. Step 5: File a PR with the change
-
please append the packages you picked at the end.
-
For existing contributor, please make sure this list is update to date
-
Don’t use
Fixes: #81657which will shut down the issue, just useRef:#81657
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 80 (74 by maintainers)
@beautytiger
if you change codes in the
stagingdirectory , you can run the following commend to make sure the symbol link is alway avaliable.if you change
apiorapispackage, you should regenerate code and docs.@RainbowMango thanks for your time, I will take up:
Let us know,when creating a new pr, the description of the pr should not be: Fixes #81657, which will shut down the issue (I think it’s a long-term effort); it should be ref #81657.
Update remaining tasks:
I’ll pick up:
=> #81742
As well as:
=> #81744
FYI.
Packages in
pkg/kubelet/*aready in #81206.I will pick these up 😃
Following packages,
vendor/k8s.io/apiserver/*has been reserved:[edit] Reserve all apiserver area files because they have similar issues and sometimes may be fixed together.
Following packages has been reserved:
/assign
@hpandeycodeit yes, i am also trying to put together few PR from
/pkg/controller- bottom to top in the list. Will try to pick up few more later. Would be happy to help.