duster icon indicating copy to clipboard operation
duster copied to clipboard

Autofix only the file in a specific directory

Open Mte90 opened this issue 1 year ago • 3 comments

Looking at the readme there is a way to include/exclude files but if I want that a behavior is different based on the command?

Like I want the fix automatic on blade files but on the other stuff I want only the lint and report?

Mte90 avatar Apr 12 '24 07:04 Mte90

This is currently not possible. One way we could implement this is to allow Duster to accept a --config parameter. This way, you could point it to one for lint and another for fixing. However, things will get messy when considering support for the other configuration files (TLint, PHP_CodeSniffer, PHP CS Fixer, and Pint).

I'm closing for now as this is not currently planned.

driftingly avatar Apr 12 '24 19:04 driftingly

This is very sad as it will be handy as parameter to have a exclude parameter in this way will work with any tool.

Mte90 avatar Apr 15 '24 09:04 Mte90

@Mte90 An exclude parameter would be a better solution and would be easier to implement in all tools.

driftingly avatar Apr 15 '24 16:04 driftingly