Skip to content
This repository was archived by the owner on Apr 3, 2026. It is now read-only.
This repository was archived by the owner on Apr 3, 2026. It is now read-only.

Validating single file with help of grunt-contrib-watch #33

Description

@pdrylo

Is it possible to run phpcs on changed files only?

I have tried the following inside Gruntfile.js, but it does not affect grunt-phpcs configuration at all:

grunt.event.on('watch', function (action, filepath) {
    grunt.config.set('phpcs.application.dir', [filepath]);
});

Cheers

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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