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 for automatic re-validation by detecting file changes for previously validated files #47

Open
dynamicdan opened this issue Apr 3, 2014 · 1 comment

Comments

@dynamicdan
Copy link

Obviously one could run a watch task to trigger a forced (--reset=true) re-validation of a file but this is not the best approach and makes things less flexible.

I propose that the existing "validation cache" file store a hash of the file to be used for comparison to detect if a files content has changed. If so, re-validate it.

For those with performance worries, it could be an option:

"revalidationCacheCheck: true"

BTW, consider renaming the option "reset" to "alwaysRevalidate" to avoid some first run problems a lot of people seem to be having.

@michaelthorne
Copy link

I just ran in to this issue myself with one of my projects.

As a temporary workaround, I deleted the two JSON files that grunt-html-validation generates and then running grunt validation worked for me.

Those files being:

  • validation-report.json
  • validation-status.json

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

No branches or pull requests

2 participants