Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autofix only the file in a specific directory #145

Open
Mte90 opened this issue Apr 12, 2024 · 3 comments
Open

Autofix only the file in a specific directory #145

Mte90 opened this issue Apr 12, 2024 · 3 comments

Comments

@Mte90
Copy link

Mte90 commented Apr 12, 2024

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?

@driftingly
Copy link
Member

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.

@Mte90
Copy link
Author

Mte90 commented Apr 15, 2024

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

@driftingly
Copy link
Member

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

@driftingly driftingly reopened this Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants