Open magisyn opened 3 years ago
@jhaber Any chance you'll have some time to look at these changes this week?
@jhaber Any chance you'll have time to look at these changes?
@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.
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
Is this still an issue, now that #57 is integrated?
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 https://github.com/HubSpot/prettier-maven-plugin/issues/49