Skip to content

How to specify which files are validated? #67

@samdutton

Description

@samdutton

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions