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

🌱 Sync golangci-lint configuration to core CAPI #2173

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

chrischdi
Copy link
Member

@chrischdi chrischdi commented Aug 7, 2023

What this PR does / why we need it:

This PR syncs the .golangci.yml configuration file with the one of core CAPI.

There are parts still commented out on purpose, to not introduce too many different changes at a single PR but to uncomment them in future PRs.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

Part of #2058

Additional info

Exclude-rules omitted, which are part of core CAPI:

  - linters:
      - staticcheck
    text: "SA1019: (bootstrapv1.ClusterStatus|scope.Config.Spec.UseExperimentalRetryJoin|DockerMachine.Spec.Bootstrapped|machineStatus.Bootstrapped) is deprecated"
...
  - linters:
    - staticcheck
    text: "SA1019: (clusterv1alpha3.*|clusterv1alpha4.*) is deprecated: This type will be removed in one of the next releases."
...
  - linters:
    - revive
    text: exported (method|function|type|const) (.+) should have comment or be unexported
    path: cmd/clusterctl/internal/test/providers.*.go
  - linters:
    - revive
    text: exported (method|function|type|const) (.+) should have comment or be unexported
    path: "(framework|e2e)/.*.go"
...
  - path: util/defaulting/defaulting.go
    text: should not use dot imports
...
  # hack/tools
  - linters:
    - typecheck
    text: import (".+") is a program, not an importable package
    path: ^tools\.go$

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 7, 2023
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 7, 2023
@chrischdi chrischdi force-pushed the pr-golangci-yml-1 branch 6 times, most recently from e36dfad to f0aaf31 Compare August 7, 2023 12:43
@srm09
Copy link
Contributor

srm09 commented Aug 7, 2023

/retest

7 similar comments
@chrischdi
Copy link
Member Author

/retest

@srm09
Copy link
Contributor

srm09 commented Aug 8, 2023

/retest

@srm09
Copy link
Contributor

srm09 commented Aug 8, 2023

/retest

@srm09
Copy link
Contributor

srm09 commented Aug 8, 2023

/retest

@chrischdi
Copy link
Member Author

/retest

@chrischdi
Copy link
Member Author

/retest

@srm09
Copy link
Contributor

srm09 commented Aug 8, 2023

/retest

Copy link
Member

@sbueringer sbueringer left a comment

Choose a reason for hiding this comment

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

Thank you very much!

.golangci.yml Outdated Show resolved Hide resolved
.golangci.yml Outdated Show resolved Hide resolved
.golangci.yml Show resolved Hide resolved
.golangci.yml Show resolved Hide resolved
.golangci.yml Show resolved Hide resolved
.golangci.yml Show resolved Hide resolved
.golangci.yml Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 9, 2023
@chrischdi chrischdi force-pushed the pr-golangci-yml-1 branch 2 times, most recently from 335674b to df238fe Compare August 10, 2023 12:48
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 10, 2023
@chrischdi
Copy link
Member Author

@sbueringer PTAL :-)

@chrischdi
Copy link
Member Author

WaitingForIPAllocation

/test pull-cluster-api-provider-vsphere-e2e-main

@sbueringer
Copy link
Member

Thank you very much!

Very good first step

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 10, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: dc8c3940d614f1c57c5dc19583b0d70773194784

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 10, 2023
@chrischdi
Copy link
Member Author

/retest-required

@chrischdi
Copy link
Member Author

/test pull-cluster-api-provider-vsphere-e2e-main

@sbueringer
Copy link
Member

/retest

@chrischdi
Copy link
Member Author

/test pull-cluster-api-provider-vsphere-e2e-main

@chrischdi
Copy link
Member Author

/retest-required

2 similar comments
@chrischdi
Copy link
Member Author

/retest-required

@sbueringer
Copy link
Member

/retest-required

@chrischdi
Copy link
Member Author

chrischdi commented Aug 14, 2023

@chrischdi: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-vsphere-e2e-main d3e363f link true /test pull-cluster-api-provider-vsphere-e2e-main
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

This one did not hit the previous error. Only a single VM waiting for kubeadm init.

/retest-required

@chrischdi
Copy link
Member Author

/retest-required

Copy link
Contributor

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

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

/lgtm

@sbueringer
Copy link
Member

/retest

@k8s-ci-robot k8s-ci-robot merged commit 126c9da into kubernetes-sigs:main Aug 15, 2023
11 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.9 milestone Aug 15, 2023
@chrischdi chrischdi deleted the pr-golangci-yml-1 branch August 16, 2023 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants