Skip to content

Fix GritQL lint rules to work on empty files #641

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

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

Conversation

morgante
Copy link
Contributor

This pull request addresses the issue where GritQL lint rules do not function correctly on empty files. Specifically, it adds an integration test to ensure that the file predicate can match based solely on the file name, even when the file has no content.

The test simulates an empty file and verifies that the expected output is returned when the file name matches the specified pattern. This change ensures that the linting rules are robust and can handle edge cases involving empty files.


This pull request was co-created with Cosine Genie

Original Task: gritql/1sqqkaq6azn1
Author: Morgante Pell

morgante and others added 2 commits May 19, 2025 18:27
Co-authored-by: Genie <genie@cosine.sh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant