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 linting in Taskfile #4552

Merged
merged 3 commits into from
Feb 2, 2025
Merged

Fix linting in Taskfile #4552

merged 3 commits into from
Feb 2, 2025

Conversation

theunrepentantgeek
Copy link
Member

What this PR does

Including lint fixes in format-code has caused problems, as the linter requires the code to fully compile before a fix can be applied.

We can easily end up in a situation where running task doesn't fix things because a linter failure blocks code generation.

This PR removes the linters from format-code and instead puts the --fix flag into the lint tasks.

How does this PR make you feel?

gif

@matthchr
Copy link
Member

Making sure I understand the ordering now:

  1. We format the code
  2. We run tests on the code (part of quick-checks)
  3. We run linters on the code (including fixes)

That seems reasonable to me - is that right?

@theunrepentantgeek theunrepentantgeek added this pull request to the merge queue Feb 2, 2025
Merged via the queue into main with commit 7421de9 Feb 2, 2025
7 checks passed
@theunrepentantgeek theunrepentantgeek deleted the fix/format-code branch February 2, 2025 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready for Release
Development

Successfully merging this pull request may close these issues.

2 participants