Skip to content

[Feature Request]: Embrace PHPCSUtils #72

@gmazzap

Description

@gmazzap

Is your feature request related to a problem?

We have PHPCSUtils as part of dependencies. They were a transitive dependency of WPCS, now they are also required explicitly.

That package provides a lot of helpers to write rules, and an example are the rules wrote as part of #70 which are pretty lean thanks to that library.

We could use that library also for other existing sniff, to simplify them and to make sure they get up-to-date in the case new PHP features are released without maintenance effort on our end.

We could probably also replace many of the code currently in the PhpcsHelpers file.

Describe the desired solution

Replace part of existing sniffs and helpers code in this repository using PHPCSUtils helpers.

Describe the alternatives that you have considered

Leave existing code alone.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions