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

Simplify file status checks #5119

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Simplify file status checks #5119

merged 1 commit into from
Jan 10, 2024

Conversation

ferrarimarco
Copy link
Collaborator

Proposed changes

  • Simplify file status checks to assume that a file should be linted correctly unless we are running in test mode.
  • Avoid the corner case of files having the 'bad' string as part of their file name to be wrongly assumed to fail linting.
  • Move FILE_STATUS initialization where it's needed, after running the linters.

Readiness checklist

In order to have this pull request merged, complete the following tasks.

Pull request author tasks

  • I included all the needed documentation for this change.
  • I provided the necessary tests.
  • I squashed all the commits into a single commit.
  • I followed the Conventional Commit v1.0.0 spec.
  • I wrote the necessary upgrade instructions in the upgrade guide.
  • If this pull request is about and existing issue,
    I added the Fix #ISSUE_NUMBER label to the description of the pull request.

Super-linter maintainer tasks

  • Label as breaking if this change breaks compatibility with the previous released version.
  • Label as either: automation, bug, documentation, enhancement, infrastructure.

@ferrarimarco ferrarimarco added bug Something isn't working O: backlog 🤖 Backlog, stale ignores this label labels Jan 9, 2024
@ferrarimarco ferrarimarco self-assigned this Jan 9, 2024
@ferrarimarco ferrarimarco marked this pull request as draft January 9, 2024 17:22
@ferrarimarco ferrarimarco force-pushed the simplify-file-status branch 3 times, most recently from 6237500 to d832a8c Compare January 9, 2024 20:29
@ferrarimarco ferrarimarco marked this pull request as ready for review January 10, 2024 08:44
- Simplify file status checks to assume that a file should be linted
  correctly unless we are running in test mode.
- Avoid the corner case of files having the 'bad' string as part of
  their file name to be wrongly assumed to fail linting.
- Move FILE_STATUS initialization where it's needed, after running the
  linters.
@ferrarimarco ferrarimarco merged commit 3a784fc into main Jan 10, 2024
9 checks passed
@ferrarimarco ferrarimarco deleted the simplify-file-status branch January 10, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working O: backlog 🤖 Backlog, stale ignores this label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant