You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ooh, good call! I'm not a fan of that becoming the default behavior, but considering it's swapping out an executable (that's already present, as it comes in with PHP_CodeSniffer) it wouldn't be difficult to add a --phpcbf (or similar) flag to the installer to copy use that program in the hook instead.
I'm not a fan of that becoming the default behavior
Agreed. A tool should never automatically modify someone's code. It should provide feedback and instruction to help them modify it themselves, whether done using a tool or an editor.
Please consider closing this issue if there is no follow-up action to be done here.
I'm going to lean on keeping this out of WP Enforcer, but there's a section within the adding to an existing project section of the README that covers phpcbf usage.
PHP Code Beautifier and Fixer can be used to automatically fix many common or minor issues and would be great as an additional option.
The text was updated successfully, but these errors were encountered: