How to find phpcs current default standard



PHP Snippet 1:

phpcs --config-set default_standard value

PHP Snippet 2:

/home/yourpc/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer.conf

PHP Snippet 3:

~$ phpcs -i
The installed coding standards are PEAR, Zend, PSR2, MySource, Squiz, PSR1, PSR12, Universal, NormalizedArrays, PHPCS23Utils, PHPCSUtils, NoGetCurrentUser, VariableAnalysis, WordPress, WordPress-Extra, WordPress-Docs, WordPress-Core, IsolatedTests, WordPress-Core, WordPress and WordPress-Docs

PHP Snippet 4:

~$ phpcs --config-show
Using config file: /Users/pz/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer.conf

installed_paths: /Users/pz/.composer/vendor/phpcsstandards/phpcsextra,/Users/pz/.composer/vendor/phpcsstandards/phpcsutils,/Users/pz/.composer/vendor/sirbrillig/phpcs-no-get-current-user,/Users/pz/.composer/vendor/sirbrillig/phpcs-variable-analysis,/Users/pz/.composer/vendor/wp-coding-standards/wpcs,/Users/pz/Code/wpcom/bin/metrics/shared/phpcs-coding-standards/IsolatedTests,/Users/pz/Code/wpcom/bin/metrics/shared/phpcs-coding-standards/WordPress-Coding-Standards/WordPress-Core,/Users/pz/Code/wpcom/bin/metrics/shared/phpcs-coding-standards/WordPress-Coding-Standards/WordPress,/Users/pz/Code/wpcom/bin/metrics/shared/phpcs-coding-standards/WordPress-Coding-Standards/WordPress-Docs

PHP Snippet 5:

phpcs --standard=Pear <option filepath etc>