Skip to content

Support PHP CS Fixer  #60

Closed
Closed

Description

@keradus

Hi.
Are there any chances that you would add PHP CS Fixer to collection of supported tools ?

Activity

  1. zdenekdrahos commented on Apr 23, 2017

    @zdenekdrahos
    Member

    How would you like to use php-cs-fixer in phpqa?

    It can be added to suggested tools. But I have a doubt about usefulness. phpqa analyzes code. If you run analysis twice, you'll get the same result. php-cs-fixer isn't like that. It can fix code in CI build, but changes aren't committed. Wouldn't be better to install phpqa and php-cs-fixer separately?

  2. keradus commented on Apr 23, 2017

    @keradus
    Author

    in same way that phpcpd or phpmd or anything that is currently supported.
    PHP CS Fixer could fix indeed, but it could also generate violations report.

  3. mastercoding commented on Apr 23, 2017

    @mastercoding

    @zdenekdrahos You are right that changing code style errors in the ci build does not make any sense. However, if php-cs-fixer is run with junit as output (optionally in "dry-run" mode, to not change anything and produce the same results every time), it is a static analyser just like phpcs.

  4. zdenekdrahos commented on Apr 24, 2017

    @zdenekdrahos
    Member

    Ok. php-cs-fixer gonna be in the next release.
    I'll ask you for your review in a PR.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions