praveenvijayan / grunt-html-validation

W3C html validaton grunt plugin. Validate all files in a directory automatically.
MIT License
75 stars 39 forks source link

How to specify which files are validated? #67

Open samdutton opened 9 years ago

samdutton commented 9 years ago

I'm unclear about how to specify which files to validate, and how validation-status.json works.

I want to validate all index.html files in directories under my/path. For example: my/path/dir1/index.html, my/path/dir2/index.html and my/path/dir3/index.html.

My Gruntfile.js has this:

files: {
        src: ['my/path/**/index.html']
},
options: {
    reset: true
}

However, only two files in the directories under my/path get validated when I run grunt validation.

validation-status.json has only this (i.e. only a reference to the first file/subdirectory):

{"my/path/dir1/index.html":true}

What am I missing?