quartetcom/static-analysis-kit

Strict and modern kit to optimise the codebase defensively.

Installs: 4 130

Dependents: 5

Suggesters: 0

Security: 0

Stars: 14

Watchers: 5

Forks: 1

Open Issues: 5

Type:composer-plugin


README

CircleCI GitHub Actions

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

  1. Change code
  2. Run "Reformat Code" (%L) in PhpStorm
  3. Confirm there are no errors (will be highlighted on the scroll bar)
  4. Run composer analyse
  5. Problems about formatting can be resolved by composer fix
  6. The remaining problems should caused by the code, so fix them manually (You can run composer fix:risky or composer fix:rector to resolve them, but this causes code breaks; be careful of the diff after run)
  7. Commit after confirmed there are no errors by running composer analyse