kubernetes/cmd
Patrick Ohly ce9e668a93 golangci-lint: suppress one issue, demote others to "hints"
The voting in https://github.com/kubernetes/kubernetes/issues/117288 led to
one check that got rejected ("ifElseChain: rewrite if-else to switch
statement") and several that are "nice to know".

golangci-lint's support for issue "severity" is too limited to identify "nice
to know" issues in the output (filtering is only by linter without considering
the issue text; not part of text output). Therefore a third configuration gets
added which emits all issues (must fix and nits). The intention is to use
the "strict" configuration in pull-kubernetes-verify and the "hints"
configuration in a new non-blocking pull-kubernetes-linter-hints.

That way, "must fix" issues will block merging while issues that may be useful
will show up in a failed optional job. However, that job then also contains
"must fix" issues, partly because filtering out those would make the
configuration a lot larger and is likely to be unreliably (all "must fix"
issues would need to be identified and listed), partly because it may be useful
to have all issues in one place.

The previous approach of manually keeping two configs in sync with special
comments didn't scale to three configs. Now a single golangci.yaml.in with
text/template constructs contains the source for all three configs. A new
simple CLI frontend for text/template (cmd/gotemplate) is used by
hack/update-golangci-lint-config.sh to generate the three flavors.
2023-08-22 20:39:23 +02:00
..
clicheck More migrations from genericclioptions to genericiooptions 2023-04-05 17:05:23 +03:00
cloud-controller-manager kube-controller-manager: finish conversion to contextual logging 2023-07-12 14:57:29 +02:00
dependencycheck replace deprecated io/ioutil with os and io for cmd 2022-02-01 13:59:41 +08:00
dependencyverifier Catch direct references to unwanted dependencies in kubernetes modules 2023-08-02 15:44:25 -04:00
fieldnamedocscheck Add linter to check if api docs match field tag names 2023-01-18 10:49:12 +08:00
gendocs More migrations from genericclioptions to genericiooptions 2023-04-05 17:05:23 +03:00
genkubedocs replace deprecated io/ioutil with os and io for cmd 2022-02-01 13:59:41 +08:00
genman More migrations from genericclioptions to genericiooptions 2023-04-05 15:03:09 +03:00
genswaggertypedocs hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
genutils hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
genyaml More migrations from genericclioptions to genericiooptions 2023-04-05 17:05:23 +03:00
gotemplate golangci-lint: suppress one issue, demote others to "hints" 2023-08-22 20:39:23 +02:00
importverifier replace deprecated io/ioutil with os and io for cmd 2022-02-01 13:59:41 +08:00
kube-apiserver api: add v1beta1 ValidatingAdmissionPolicy/Binding types and storage 2023-07-20 13:24:09 -07:00
kube-controller-manager Merge pull request #118455 from linxiulei/managedFields 2023-08-15 15:17:12 -07:00
kube-proxy kube-proxy: fix combination of --config and logging command line flags 2023-08-10 11:14:04 +02:00
kube-scheduler docs: add comment describing LoadConfigFromFile 2023-07-13 09:59:39 +05:30
kubeadm Merge pull request #119156 from neolit123/1.28-add-support-for-dup-extraargs 2023-08-21 02:49:22 -07:00
kubectl Update sig-cli OWNERS 2022-02-14 10:55:35 -07:00
kubectl-convert More migrations from genericclioptions to genericiooptions 2023-04-05 17:05:23 +03:00
kubelet cmd/kubelet: implement drop-in configuration directory for kubelet 2023-07-18 21:41:14 -04:00
kubemark Move hollow_proxy.go from pkg/kubemark to pkg/proxy/kubemark 2023-03-16 09:47:54 -04:00
preferredimports preferredimports: support regular expressions for the import path 2022-09-08 18:37:52 +02:00
prune-junit-xml prune's xml files to display only top level tests and failed sub-tests 2023-06-06 05:26:00 -07:00
yamlfmt add reviewers and labels to yamlfmt 2023-05-17 09:59:26 -07:00
OWNERS lavalamp is taking a long break 2023-05-11 16:43:38 +00:00