Skip to content

Return code of phpcbf on all errors fixed #2954

@Tezd

Description

@Tezd

I have a question regarding this part of the code
https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Runner.php#L223
It will return 1 even if all errors are resolved which later will be set as exit code here
https://github.com/squizlabs/PHP_CodeSniffer/blob/master/bin/phpcbf#L19
Everything which is not 0 considered to be error code.
But in that case it fixed everything should it return 0 instead ?

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