nette / coding-standard
v3.4.0
2025-01-16 06:59 UTC
Requires
- php: ^8.0
- friendsofphp/php-cs-fixer: ^3.68
- kubawerlos/php-cs-fixer-custom-fixers: ^3.22
- slevomat/coding-standard: ^8.15
- squizlabs/php_codesniffer: ^3.11
Requires (Dev)
- tracy/tracy: ^2.5
- dev-master / 3.x-dev
- v3.4.0
- v3.3.3
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.4
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.3.1
- v2.3.0
- v2.2.1
- v2.2.0
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.0
- v1.0.0
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.0
- v0.6.1
- v0.6.0
- v0.5.0
- v0.4.0
- v0.3.0
- v0.2.0
- v0.1.0
This package is auto-updated.
Last update: 2025-01-16 07:02:05 UTC
README
This is set of sniffs and fixers that checks and fixes code of Nette Framework against Coding Standard in Documentation.
Installation and Usage
Install the tool in a global directory. Its name will be for example /nette-cs
:
composer create-project nette/coding-standard /nette-cs
Check coding standard for PHP 7.1 in folders src
and tests
:
/nette-cs/ecs check src tests --preset php71
And fix it:
/nette-cs/ecs fix src tests --preset php71
If no PHP version is specified, it will try to find out from the composer.json
file.
GitHub Actions
# .github/workflows/coding-style.yml steps: - uses: actions/checkout@v2 - uses: shivammathur/setup-php@v2 with: php-version: 8.0 - run: composer create-project nette/coding-standard temp/coding-standard - run: php temp/coding-standard/ecs check src tests --preset php71