grunt-drupal-tasks
grunt-drupal-tasks copied to clipboard
Defer to phpcs.xml file if present.
- Fixes #311
This probably needs some tests. Also, it may require changes to grunt-phpcs since even passing empty files, that module is still specifying the standard, etc:
Executing: vendor/bin/phpcs --report=full --standard=vendor/drupal/coder/coder_sniffer/Drupal,vendor/drupal/coder/coder_sniffer/DrupalPractice ""
Need to add 2 warnings here:
- If phpcs paths/dirs are specified in
Gruntconfig.jsand there is aphpcs.xmlfile, need to warn that the grunt configs will be ignored. - If there is a
phpcs.xmlfile and there is a conflicting standard specified inGruntconfig.js, warn that this standard should be set tophpcs.xml.
@grayside I've added the first warning, but cannot remember how the second warning actually differs.
Hmm, this still needs a bit of work I think. The standard in the phpcs file isn't actually being used as the code in quality.js is still specifying the standard.