Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.24 KB

coding-standards.md

File metadata and controls

29 lines (21 loc) · 1.24 KB

Coding standards, linting and error detection

There are multiple code linting and error detection scripts and dependencies configured for the different parts of the application. Each of them have a corresponding executable file in the DEV/ci/ directory to simplify their usage.

We recommend you use the Git pre-commit hook provided in DEV/hooks/pre-commit to run these tools before every commit. This will ensure your code changes are always up to snuff, and it will give you that nice green success message that bumps up your self-esteem when your code passes all the checks.

To use the pre-commit, navigate to the repository and run the following command:

ln DEV/hooks/pre-commit .git/hooks/pre-commit

If you prefer to use the tools manually, here is the list of tools available along with their executable file:

PHP

Javascript

CSS

Twig