Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

TomasVotruba/shopsys-spryker-and-sylius-analysis

Repository files navigation

Code Complexity of Shopsys, Spryker & Sylius

Build Status

You can find nice summary of these metrics 2 posts:

To be sure we're not making them up, you can run them yourself on you local machine:

1. Install

Spryker requires few extra PHP extensions. Here is how you add them:

On Linux

sudo apt-get install php-bcmath php-gmp php-redis php-bz2

Install this Repository

Then you can install this repository:

git clone https://github.com/TomasVotruba/shopsys-spryker-and-sylius-analysis.git ecommerce-analysis
cd ecommerce-analysis
composer install

Download Projects

As project have dependencies in conflict, they have to be cloned to own directories. This command downloads all projects to /project directory and runs composer install on them.

bin/run prepare

2. Run Analysis

bin/run analyze

Or limit it to single project:

bin/run analyze --project shopsys 

And it will print this nice summary for every project:

Preview

Easy Coding Standard

This will check coding standards of project with psr2.yml and clean-code.yml sets:

bin/run ecs

PHPStan

This will run and show number of errors per level:

bin/run phpstan

# with specific level only
bin/run phpstan --level 7

# with top 20 most frequent errors
bin/run phpstan --level 7 --report

And it will print summary for every project:

Preview