Skip to content

Add flag that allows phpcs to output a simple list of any files that don't pass the codestyles #2477

@Loupax

Description

@Loupax

First of all let me describe the use case I want to cover.

I am running phpcs --cache=/path/to/cache_file and this sped up my results from an amount of minutes to an amount of milliseconds.

What I want to do is output a list of any files that don't pass the tests and pass them to PHPCbf so I can really fast correct only any files that might fail.

An example use case:

$ phpcs --cache=/path/to/cache_file src -f
file1.php
file2.php
file2.php
...

$ phpcbf $(phpcs --cache=/path/to/cache_file src -f)

Is this possible somehow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions