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

fix(ci): linter disable-all does not disable all #872

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

antoineco
Copy link
Contributor

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran make fmt on your commit series before opening this PR;
  • Updated relevant documentation.

Description of changes

--disable-all has a counter intuitive behaviour when a golangci-lint config file exists inside the project.
Instead of actually disabling all linters, the configuration from flags is merged with the one from the config, so linters enabled in the config are still being run.

Instead, the configuration from flags is merged with the one from the
config, so linters enabled in the config are still being run.

GitHub-Ref: golangci/golangci-lint#1188

Signed-off-by: Antoine Cotten <antoine@unikraft.io>
@antoineco antoineco added the area/.github/workflows Issue or PR related to GitHub Actions workflows label Oct 10, 2023
@antoineco
Copy link
Contributor Author

Now gofumpt is being executed separately from other linters, as expected:

image

@jake-ciolek
Copy link
Contributor

Nice. Thanks.

@jake-ciolek jake-ciolek merged commit b89b4f4 into unikraft:staging Oct 11, 2023
3 checks passed
@antoineco antoineco deleted the fix/lint-disable-all branch October 11, 2023 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/.github/workflows Issue or PR related to GitHub Actions workflows
Projects
Status: 🚀 Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants