cryonighter / cryonighter-coding-standard
CodeSniffer ruleset for the cryonighter coding standard
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 1
Type:phpcodesniffer-standard
Requires
- escapestudios/symfony2-coding-standard: ^3.5.2
- squizlabs/php_codesniffer: ^3.3.1
Requires (Dev)
- phpunit/phpunit: >= 5.0
Conflicts
- squizlabs/php_codesniffer: <3 || >=4
This package is not auto-updated.
Last update: 2024-12-11 21:59:50 UTC
README
A coding standard to check against the cryonighter coding standards, originally shamelessly copied from the -disappeared- opensky/Symfony2-coding-standard repository.
Installation via Composer
This standard can be installed with the Composer dependency manager.
-
Install the coding standard as a dependency of your project
composer global require cryonighter/cryonighter-coding-standard
-
Add the coding standard to the PHP_CodeSniffer install path
phpcs --config-set installed_paths ../../../vendor/escapestudios/symfony2-coding-standard,../../../vendor/cryonighter/cryonighter-coding-standard
-
Check the installed coding standards for "Symfony" and "Cryonighter"
phpcs -i
Installation Stand-alone
-
Install PHP_CodeSniffer
-
Checkout this repositories
git clone git://github.com/djoos/Symfony2-coding-standard.git symfony2-coding-standard && git clone git@github.com:cryonighter/cryonighter-coding-standard.git
-
Add the coding standard to the PHP_CodeSniffer install path
phpcs --config-set installed_paths /path/to/symfony2-coding-standard,/path/to/cryonighter-coding-standard
Or move/copy/symlink repositories
Symfony
andCryonighter
folders inside the phpcsStandards
directory -
Check the installed coding standards for "Symfony" and "Cryonighter"
phpcs -i
Usage
Via command line
phpcs --standard=Cryonighter --extensions=php --ignore=/path/to/exclude-code /path/to/code
PHP Code Sniffer Wiki: usage, advanced usage