chrometoaster/backend-coding-standards

Back-end coding standards configuration used at Chrometoaster.

1.4.0 2022-09-14 23:21 UTC

This package is auto-updated.

Last update: 2024-10-15 03:47:28 UTC


README

Back-end coding standards used at Chrometoaster are based on PSR-2.

This project bundles tools along with predefined rulesets for automated checks. Provided tools:

Installation & usage

  1. Install this package:

    $ composer require --dev chrometoaster/backend-coding-standards:~1.0
  2. Include a configuration file in your easy-coding-standard.yml:

    imports:
        - { resource: '%vendor_dir%/chrometoaster/backend-coding-standards/config/chrometoaster.yml' }
  3. Check your files

    $ vendor/bin/parallel-lint /path/to/source/code
    $ vendor/bin/ecs check path/to/source/code
  4. Auto-fix non-compliant files where possible

    $ vendor/bin/ecs check path/to/source/code --fix

See the official documentation of the tools used for further information, e.g. how to provide a custom config.

Licence

BSD-3-Clause