fivelab/ci-rules

Custom rules for code style and static analyzer

Installs: 16 592

Dependents: 4

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 2

Open Issues: 1

pkg:composer/fivelab/ci-rules

dev-master 2025-07-24 07:23 UTC

This package is auto-updated.

Last update: 2025-09-24 07:50:32 UTC


README

 #StandWithUkraine 

CI 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/phpstan

./bin/phpcs --config-set show_warnings 0
./bin/phpcs --standard=tests/phpcs.xml tests/
./bin/phpcs --standard=src/phpcs.xml src/