Skip to content

Adding custom Fixers to PHP CS Fixer #132

@superbiche

Description

@superbiche

Hi again,

Hopefully this time it's not just me missing something: when creating the .php-cs-fixer.dist.php file in my project, it's picked correctly by Duster.

But I don't understand how to add custom rules: when adding Fixers following https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/custom_rules.rst, I get a Class [class of custom fixer] not found.
This seems to be related to the packaging of Duster using Box, I guess it cannot use the global autoloader?

For now I forked the project, added the custom Fixers, and built it (btw a "How To Build" could help others) but I don't want to maintain a fork for just a couple custom Fixers.

Is there a way to "wire" local / project dependencies to the Duster binary ?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions