https://github.com/rareloop/twigcs-ruleset
The Rareloop Twig coding standards
https://github.com/rareloop/twigcs-ruleset
Last synced: 6 months ago
JSON representation
The Rareloop Twig coding standards
- Host: GitHub
- URL: https://github.com/rareloop/twigcs-ruleset
- Owner: Rareloop
- Created: 2020-05-20T10:03:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-09T14:39:46.000Z (over 1 year ago)
- Last Synced: 2024-11-06T19:52:37.233Z (about 1 year ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rareloop Twig Coding Standards
This is a custom ruleset for [Twigcs](https://github.com/friendsoftwig/twigcs).
It follows the [official Twig coding style](http://twig.sensiolabs.org/doc/coding_standards.html) with the following exceptions:
- Use `lowerCamelCase` variables instead of `snake_case`
- Enforces 1 space inside a hash e.g. `{ key: expr, key: expr }` instead of the default `{key: expr, key: expr}`
## Installation
`composer require rareloop/twigcs-ruleset --dev`
## Usage
`twigcs path/to/files --ruleset \\Rareloop\\Twigcs\\Ruleset\\Rareloop`