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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Fix linting in Taskfile #4552

wants to merge 3 commits into from

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants