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

makefile: add a new target to run 'golangci-lint run --fix' #21547

Merged
merged 2 commits into from
Oct 31, 2022

Conversation

aspsk
Copy link
Contributor

@aspsk aspsk commented Oct 3, 2022

There is a make target to execute the 'golangci-lint run' command, but there is no simple way to execute it with a '--fix' argument. Add a new target to do this.

If more arguments need to be added to the golangci-lint command, then one can do this by setting the newly added GOLANGCI_LINT_ARGS variable.

@aspsk aspsk added the release-note/minor This PR changes functionality that users may find relevant to operating Cilium. label Oct 3, 2022
@aspsk aspsk requested a review from a team as a code owner October 3, 2022 07:40
@aspsk aspsk requested a review from glibsm October 3, 2022 07:40
@aspsk aspsk force-pushed the aspsk/pr/makefile-add-new-target branch from ae9c2ca to 357a4ce Compare October 3, 2022 09:28
@aspsk
Copy link
Contributor Author

aspsk commented Oct 3, 2022

/test

@aspsk
Copy link
Contributor Author

aspsk commented Oct 4, 2022

/test-ci-datapath

@aspsk
Copy link
Contributor Author

aspsk commented Oct 4, 2022

/test-1.25-net-next

Makefile Outdated Show resolved Hide resolved
@aspsk aspsk force-pushed the aspsk/pr/makefile-add-new-target branch from a5ba6b3 to c436103 Compare October 7, 2022 08:38
@maintainer-s-little-helper
Copy link

Commit 58021671cb4ad40f193bb9ba2b02761b944925c1 does not contain "Signed-off-by".

Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-sign-off The author needs to add signoff to their commits before merge. label Oct 31, 2022
There is a make target to execute the 'golangci-lint run' command, but there is
no simple way to execute it with a '--fix' argument. Add a new target to do
this.

If more arguments need to be added to the golangci-lint command, then one can
do this by setting the newly added GOLANGCI_LINT_ARGS variable.

Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
The commit 7303c02 ("bpf-mock makefile: Remove removed mock target") removed
the bpf-mock-lint target, but there left some comments about running it. Remove
the mentions of bpf-mock.

Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
@aspsk aspsk force-pushed the aspsk/pr/makefile-add-new-target branch from 5802167 to 8f4c7ec Compare October 31, 2022 09:30
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-sign-off The author needs to add signoff to their commits before merge. label Oct 31, 2022
@joestringer joestringer merged commit 7f7c00b into cilium:master Oct 31, 2022
@aspsk aspsk deleted the aspsk/pr/makefile-add-new-target branch March 30, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/minor This PR changes functionality that users may find relevant to operating Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants