sulu / skeleton

Project template for starting your new project based on the Sulu content management system
https://sulu.io
MIT License
261 stars 81 forks source link

Add phpstan, rector, php-cs-fixer and linting scripts #178

Closed alexander-schranz closed 2 years ago

alexander-schranz commented 2 years ago
Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets fixes #issuenum
Related issues/PRs #issuenum
License MIT
Documentation PR sulu/sulu-docs#prnum

What's in this PR?

Add phpstan, rector, php-cs-fixer and linting scripts.

Why?

We want to provide sulu rector with the skeleton which requires a good configured phpstan configuration. Which we should already ship with the skeleton. In this case the other tooling and linting task which we already use are added the the composer.json and should improve the quality of all other sulu projects as we know provide composer lint script which will do validation of a lot of files for every sulu project.