fivelab / ci-rules
Custom rules for code style and static analyzer
Installs: 10 409
Dependents: 3
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ~8.0
Requires (Dev)
- escapestudios/symfony2-coding-standard: ~3.13
- phpstan/phpstan: ~1.10
- phpunit/phpunit: ~9.5
Suggests
- escapestudios/symfony2-coding-standard: For use code style rules
- phpstan/phpstan: For use static analyzer rules.
This package is auto-updated.
Last update: 2024-10-23 06:20:29 UTC
README
#StandWithUkraineCI Rules
- Extends
escapestudios/symfony2-coding-standard
code style rules with added our custom rules. - Add custom rules for
phpstan
.
Development
For easy development you can use the Docker
.
docker build -t ci-rules . docker run -it -v $(pwd):/code --name ci-rules ci-rules bash
After success run and attach to container you must install vendors:
composer update
Before create the PR or merge into develop, please run next commands for validate code:
./bin/phpunit ./bin/phpcs --config-set show_warnings 0 ./bin/phpcs --standard=vendor/escapestudios/symfony2-coding-standard/Symfony/ src/ ./bin/phpcs --standard=tests/phpcs.xml tests/