grunt-drupal-tasks
grunt-drupal-tasks copied to clipboard
Add support for phpcs2 and phpcbf to auto-correct code style
This combination of tools could be built into our process to expedite resolving style issues.
- Does the code reformatting require review for correctness of style, or even error-free functionality?
- Do we want it to run as part of currently read-only operations like grunt validate?
- Should we bundle it with other code formatting and cleanup tools, for a top level
grunt optimizetask? This seems to imply we don't group it with validate or the main build process, and instead provide it to developers to use reactively. - Can we streamline how IDEs might apply formatting correction automatically?
This issue needs someone to set up the tools, run edge case experiments, see what IDE integration with phpstorm, sublime, or atom might look like, and come back with findings so we can make decisions on next steps.