Skip to content

Instantly share code, notes, and snippets.

@shamsher327
Last active June 11, 2020 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shamsher327/2c77fe39d0f73f5f9e0cccd1258ce5fa to your computer and use it in GitHub Desktop.
Save shamsher327/2c77fe39d0f73f5f9e0cccd1258ce5fa to your computer and use it in GitHub Desktop.
// Add coder to run command line interface.
- composer require --dev drupal/coder:^8.2.11
// Get dependency for sniffer.
- composer update dealerdirect/phpcodesniffer-composer-installer acquia/blt sensiolabs-de/deprecation-detector --with-all-dependencies
// Check list of standards packages installed.
- vendor/bin/phpcs -i
// Run to know Drupal practice issue.
- vendor/bin/phpcs --standard=Drupal,DrupalPractice docroot/modules/contrib/module_name/**/*
// Autofixing but some will need manual.
- vendor/bin/phpcbf --standard=Drupal,DrupalPractice docroot/modules/contrib/module_name/**/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment