Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 542 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 542 Bytes

php-codestyles

Rapid Agile Software default code styles to be used with Squizlabs' codesniffer and PHPCSFixer.

Install

  1. Create a file easy-coding-standard.neon in the root path of project with at least below contents:
includes:
  - vendor/rasta/sniffs/easy-coding-standard.neon
  1. Run composer require-dev rasta/sniffs

43 Add a linting command to composer.json

  "scripts": {
    "lint": "ecs check src cron tests --clear-cache",
    "lint:fix": "ecs check src cron tests --clear-cache --fix"
  }