Closed WispySparks closed 1 week ago
proof-html currently uses the Nu Validator to check HTML, and htmlproofer to check links.
htmlproofer supports ignoring files by regex: see the ignore_files
configuration. proof-html doesn't support this option, but this would be straightforward to add.
Nu Validator, as far as I can tell, doesn't have a convenient way to specify files to ignore (https://validator.github.io/validator/#options).
What's your use case? There might be a simple workaround, e.g., running find ... -delete
before running proof-html, if you're doing this in CI and don't need the files that are to be "ignored" (in this case, deleted before proof-html runs).
Thanks for the response, I had some old bootstrap CSS files I didn't want to fix but since that would be under the Nu Validator it looks like I'll have to fix the issues.
You can also ignore CSS altogether, I've done that in one of my projects where I was too lazy to fix the CSS.
Is it possible to either ignore a list of files or ignore files whose names match a regex?