Skip to content

Additional rules for CI (code style, static analyzer)

License

Notifications You must be signed in to change notification settings

FiveLab/CiRules

Repository files navigation

Russia has become a terrorist state.

 #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/phpcs --config-set show_warnings 0
./bin/phpcs --standard=vendor/escapestudios/symfony2-coding-standard/Symfony/ src/
./bin/phpcs --standard=tests/phpcs.xml tests/

About

Additional rules for CI (code style, static analyzer)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published