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

Allow globs without files to still fail check. #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

magisyn
Copy link

@magisyn magisyn commented Jul 27, 2021

If prettier sees that a glob doesn't find any files it currently will not
fail as the status is 2 but one of the globs didn't find any files.

These changes allow for a final method to be run when
the prettier process completes to fail if files were found to not
pass the code style check even if a glob didn't find any files.
This can happen if you have a sub module that doesn't have any *.html
files but other modules do.

As part of this, the glob suffixes are used to retrieve the list
of files that failed the check to be output. Fixing #49

If prettier sees that a glob doesn't find any files it currently will not
fail as the status is 2 but one of the globs didn't find any files.

These changes allow for a final method to be run when
the prettier process completes to fail if files were found to not
pass the code style check even if a glob didn't find any files.
This can happen if you have a sub module that doesn't have any *.html
files but other modules do.

As part of this, the glob suffixes are used to retrieve the list
of files that failed the check to be output.
@magisyn
Copy link
Author

magisyn commented Aug 9, 2021

@jhaber Any chance you'll have some time to look at these changes this week?

@magisyn
Copy link
Author

magisyn commented Oct 21, 2021

@jhaber Any chance you'll have time to look at these changes?

@magisyn
Copy link
Author

magisyn commented Nov 3, 2021

@jhaber Happy to incorporate any feedback on this PR. I'd love to get this in soon so we can start checking on all files.

@jhaber
Copy link
Member

jhaber commented Nov 4, 2021

Sorry for the lengthy delay, I just opened #57 which I think should fix #49. Next I'll take a look at this PR and try to understand the issue and the fix

@jhaber
Copy link
Member

jhaber commented Dec 30, 2022

Is this still an issue, now that #57 is integrated?

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.

3 participants