grunt-drupal-tasks icon indicating copy to clipboard operation
grunt-drupal-tasks copied to clipboard

Add support for phpcs2 and phpcbf to auto-correct code style

Open grayside opened this issue 10 years ago • 0 comments

This combination of tools could be built into our process to expedite resolving style issues.

  1. Does the code reformatting require review for correctness of style, or even error-free functionality?
  2. Do we want it to run as part of currently read-only operations like grunt validate?
  3. Should we bundle it with other code formatting and cleanup tools, for a top level grunt optimize task? 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.
  4. 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.

grayside avatar Nov 09 '15 16:11 grayside