tcmulder / aquamin

Aquamin WordPress Theme
3 stars 1 forks source link

Look into WordPress test suite: can I include these? #90

Open tcmulder opened 3 months ago

tcmulder commented 3 months ago
tcmulder commented 3 months ago

Not sure how practical it is to install this with the theme (maybe could get it working globally in VSCode, which could still be worthwhile).

  1. Open the shell via LocalWP so composer is available and cd into the theme.
  2. mkdir .lint
  3. cd .lint
  4. composer require --dev squizlabs/php_codesniffer wp-coding-standards/wpcs
  5. alias phpcs="php vendor/squizlabs/php_codesniffer/bin/phpcs"
  6. alias phpcbf="php vendor/squizlabs/php_codesniffer/bin/phpcbf"
  7. phpcs -i
  8. composer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
  9. composer require --dev wp-coding-standards/wpcs:"^3.0"
  10. phpcs ../footer.php

Has a lot of noise over comentting...

tcmulder commented 3 months ago

*but not spelling...