-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
[DX] Aliases "check" & "fix" #223
Comments
Yes, but I would say it requires some thought about what should be the right aliases.
I think My only concern is "What if someone use
Another way to implement such alias would be to extends the command like it's done in the Or maybe we add a constructor
with
and
so it could be declared this way:
I really dunno what is the best strategy... |
To me, And in the end, in my mind, -- Php-Cs-Fixer has a "--dry-run" option for the "fix" command, and a "check" alias for it # Accepted, and works as expected
phpcs fix --dry-run # Accepted, and works as expected (so as "fix --dry-run)
phpcs check # Error
phpcs check --dry-run
The "--dry-run" option does not exist. -- So that'd give here:
WDYT ? |
I agree, especially because aliases and another command are displayed differently But I just remembered one reason which could not play in favor of a Wouldn't be weird to have a |
That does not change really more than the current situation (in my mind) .. If it's documented as today "Automatically fix all the fixable violations" The question is more "what status code when all fixable violations have been fixed" i guess ? |
i'd like to have two aliases:
check
&fix
, so i started to see how that could be done.This seems to work perfectly by adding thoses aliases in the entry point, and two lines in the command
Would you be open to that ? If yes do you think there is a better way to implement it ?
The text was updated successfully, but these errors were encountered: