Run the evaluator tool
Edit on GitHubThis document outlines the process of using the evaluator tool to verify if your project code adheres to Spryker’s standards.
Install the evaluator tool
- Install the evaluator tool in your project by using the composer:
composer require --dev spryker-sdk/evaluator
- Get general information about the tool and see all the commands related to evaluation in the
evaluate
section:
vendor/bin/evaluator evaluate -h
Run an evaluation
To evaluate your code, run the evaluator in one of the following ways:
- Evaluate the code of all the modules:
vendor/bin/evaluator evaluate
- Evaluate the code of a specific module:
vendor/bin/evaluator evaluate --path=src/path_to_module
Execute checkers
Exclude checkers:
vendor/bin/evaluator evaluate --exclude-checkers=CONTAINER_SET_FUNCTION_CHECKER
Execute a specific checker:
vendor/bin/evaluator evaluate --checkers={CONTAINER_SET_FUNCTION_CHECKER}
CONTAINER_SET_FUNCTION_CHECKER
is the name of the checker to execute.
Checkers
- CONTAINER_SET_FUNCTION_CHECKER - Container set function
- DEAD_CODE_CHECKER - Dead code checker
- DEPENDENCY_PROVIDER_ADDITIONAL_LOGIC_CHECKER - Additional logic in dependency provider
- SPRYKER_DEV_PACKAGES_CHECKER - Spryker dev packages checker
- DISCOURAGED_PACKAGES_CHECKER - Discouraged packages checker
- MINIMUM_ALLOWED_SHOP_VERSION - Minimum allowed shop version
- MULTIDIMENSIONAL_ARRAY_CHECKER
- NPM_CHECKER - Npm checker
- OPEN_SOURCE_VULNERABILITIES_CHECKER - Open-source vulnerabilities checker
- PHP_VERSION_CHECKER - PHP version checker
- PLUGINS_REGISTRATION_WITH_RESTRICTIONS_CHECKER - Plugin registration with restrictions
- SPRYKER_SECURITY_CHECKER - Spryker security checker
- SINGLE_PLUGIN_ARGUMENT - Single plugin argument
Resolve upgradability issues
If the report contains upgradability issues, see Upgradability guidelines to resolve them.
Thank you!
For submitting the form