Enabling and disabling the Code Sniffer for Spryks

Edit on GitHub

Before writing files into a project, the Code Sniffer fixes all the code style issues and imports the missing namespaces. For this reason, use the FQCNs everywhere (templates, arguments, etc.). However, we recommend checking the raw generated code without any post-processing first. Also, the commands are executed much faster with such code. To check how the generated files look without running the Code Sniffer, disable the Code Sniffer by prefixing the console command with TESTING=true:

TESTING=true php vendor/spryker-sdk/spryk-src/bin/spryk <Spryk name> <Spryk arguments>