Skip to content

Fix the default "third_party" folder exclusion#294

Merged
cert-manager-prow[bot] merged 1 commit into
cert-manager:mainfrom
wallrj:fix-third_party_exclusion
Jun 3, 2025
Merged

Fix the default "third_party" folder exclusion#294
cert-manager-prow[bot] merged 1 commit into
cert-manager:mainfrom
wallrj:fix-third_party_exclusion

Conversation

@wallrj
Copy link
Copy Markdown
Member

@wallrj wallrj commented Jun 3, 2025

In cert-manager we've added a third_party/forked/ folder, which contains code that does not pass all the default linter checks which are added by this module.
I went to the .golangci-lint.yaml file expecting to be able to exclude that folder and found that there was already an exclusion,
but it wasn't working because of the trailing $.
I tried to add an unadorned third_party exclusion, but that got overwritten by the make generate-golangci-lint target.
So I've created this PR as a work around.

Here's an example of it working:

Ideally I'd want to specify custom exclusions. Here's a follow up issue for that:

@cert-manager-prow cert-manager-prow Bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 3, 2025
So that it includes sub-folders too.

Signed-off-by: Richard Wall <richard.wall@cyberark.com>
@wallrj wallrj force-pushed the fix-third_party_exclusion branch from 5466c1a to 7d2d07a Compare June 3, 2025 16:09
@wallrj wallrj requested a review from inteon June 3, 2025 16:32
@inteon
Copy link
Copy Markdown
Member

inteon commented Jun 3, 2025

/approve
/lgtm

@cert-manager-prow cert-manager-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 3, 2025
@cert-manager-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inteon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@cert-manager-prow cert-manager-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 3, 2025
@cert-manager-prow cert-manager-prow Bot merged commit 1a768a4 into cert-manager:main Jun 3, 2025
4 checks passed
@wallrj wallrj deleted the fix-third_party_exclusion branch June 3, 2025 19:10
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. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants