Sylius/docs/the-book/contributing/contributing-code/coding-standards.md
2024-11-04 14:24:40 +00:00

782 B

layout
title description tableOfContents outline pagination
visible
true
visible
false
visible
true
visible
true
visible
true

Coding Standards

You can check your code for Sylius coding standard by running the following command:

vendor/bin/ecs check src tests

Some of the violations can be automatically fixed by running the same command with --fix suffix like:

vendor/bin/ecs check src tests --fix

{% hint style="info" %} Most of Sylius coding standard checks are extracted to SyliusLabs/CodingStandard package so that reusing them in your own projects or Sylius plugins is effortless. To learn about details, take a look at its README. {% endhint %}