galek / coding-standard
v2.1.5
2021-02-12 11:06 UTC
Requires
- php: ^7.1
- nette/utils: ^2.5
- psr/simple-cache: ^1.0
- slevomat/coding-standard: ^5.0
- symfony/dependency-injection: ^3.4.10
- symfony/yaml: ^3.4
- symplify/coding-standard: ^6.0
- symplify/easy-coding-standard: ^6.0
Requires (Dev)
- tracy/tracy: ^2.4
README
I forked from nette/coding-standard
Check & Fix Your Code with Nette Coding Standard
This is set of sniff and fixers combined under EasyCodingStandard that checks and fixes your PHP code against Coding Standard in Documentation.
What Rules are Covered?
This package covers part of official rules, not all.
When you open /examples
directory, all files you'll see are checked by this coding standard. The code might look invalid compared to Nette code you know, but it's only because this tool doesn't check it (yet).
All general rules you can find in coding-standard-php56.yml
file.
Install and Use
Local Setup
Installation into global folder named coding-standard
:
composer create-project galek/coding-standard
Check coding standard:
coding-standard/ecs check src tests --config coding-standard/coding-standard-php56.yml
And fix it:
coding-standard/ecs check src tests --config coding-standard/coding-standard-php56.yml --fix
Travis Setup
# .travis.yml install: - composer create-project galek/coding-standard temp/coding-standard script: - temp/coding-standard/ecs check src tests --config temp/coding-standard/coding-standard-php56.yml