quartetcom / static-analysis-kit
Strict and modern kit to optimise the codebase defensively.
Installs: 4 066
Dependents: 5
Suggesters: 0
Security: 0
Stars: 14
Watchers: 5
Forks: 1
Open Issues: 5
Type:composer-plugin
Requires
- php: ^8.3
- composer-plugin-api: *
- php-cs-fixer/shim: ^3.46.0
- phpstan/phpstan: ^1.10.55
- rector/rector: ^1.0.1
- symfony/console: ^5.4|^6|^7
- symfony/process: ^5.4|^6|^7
- symplify/easy-coding-standard: ^12.1.3
Requires (Dev)
- composer/composer: ^2.6
Conflicts
- phpunit/phpunit: <9
- 8.3.x-dev
- v8.3.4
- v8.3.3
- v8.3.2
- v8.3.1
- v8.3.0
- 8.2.x-dev
- v8.2.10
- v8.2.9
- v8.2.8
- v8.2.7
- v8.2.6
- v8.2.5
- v8.2.4
- v8.2.3
- v8.2.2
- v8.2.1
- v8.2.0
- v8.2.0-alpha.4
- v8.2.0-alpha.3
- v8.2.0-alpha.2
- v8.2.0-alpha.1
- v8.2.0-alpha.0
- 8.1.x-dev
- v8.1.22
- v8.1.21
- v8.1.20
- v8.1.19
- v8.1.18
- v8.1.17
- v8.1.16
- v8.1.15
- v8.1.14
- v8.1.13
- v8.1.12
- v8.1.11
- v8.1.10
- v8.1.9
- v8.1.8
- v8.1.7
- v8.1.6
- v8.1.5
- v8.1.4
- v8.1.3
- v8.1.2
- v8.1.1
- v8.1.0
- dev-dependabot/composer/8.1/rector/rector-1.1.1
- dev-dependabot/composer/8.1/phpstan/phpstan-1.11.5
- dev-dependabot/composer/8.1/symfony-7a2d9a558a
- dev-dependabot/composer/8.1/php-cs-fixer/shim-3.59.3
- dev-dependabot/composer/8.1/composer/composer-2.7.7
This package is auto-updated.
Last update: 2024-11-05 09:08:38 UTC
README
Strict and modern kit to optimise the codebase defensively.
📦 Installation
composer require --dev quartetcom/static-analysis-kit:~8.2
./vendor/bin/static-analysis-kit install
Note
Replace~8.2
with the PHP version you want to use. Refer Versioning for details.
The project will be automatically optimised by answering the questions.
🔖 Versioning
Version of this package follows the PHP version that which is supported.
For example, if you want to use in a PHP 8.2 project, use in range of ~8.2
.
✅ Development Flow
- Change code
- Run "Reformat Code" (%L) in PhpStorm
- Confirm there are no errors (will be highlighted on the scroll bar)
- Run
composer analyse
- Problems about formatting can be resolved by
composer fix
- The remaining problems should caused by the code, so fix them manually
(You can run
composer fix:risky
orcomposer fix:rector
to resolve them, but this causes code breaks; be careful of the diff after run) - Commit after confirmed there are no errors by running
composer analyse