Download the PHP package opositatest/coding-standards without Composer
On this page you can find all versions of the php package opositatest/coding-standards. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download opositatest/coding-standards
More information about opositatest/coding-standards
Files in opositatest/coding-standards
Package coding-standards
Short Description The coding standards in the OpositaTest way
License MIT
Informations about the package coding-standards
Opositatest Coding Standards
The coding standards in the Opositates way.
It's based on the ideas of LIN3S/CS
.
WHY?
This package is created to centralize all the checks style of Opositatest projects, in an easy way to install all the tools and improving the maintainability. It is a flexible and customizable solution to automatize all related with coding standards.
- Checks if Composer json has changes, the lock must be committed too.
- Fixes the PHP code with fully customizable PHP-CS-Fixer.
- Checks mess detections with PHPMD.
This library is very focused to use as pre-commit hook. The checkers only validate the files that will be committed.
Getting started
The recommended and the most suitable way to install is through Composer. Be sure the tool is installed in your system and execute the following command:
Then you have to update the composer.json
with the following code:
REMEMBER: The
.opos_cs.yml
file is generated dynamically with Composer. The best practices recommend that only track the.dist
file ignoring the.opos_cs.yml
inside.gitignore
.
All versions of coding-standards with dependencies
ext-json Version *
incenteev/composer-parameter-handler Version ^2.1
neronmoon/scriptsdev Version ^0.1.8
opositatest/php-cs-fixer-config Version ^1.0.3
phpmd/phpmd Version ^2.9
symfony/filesystem Version ^4.0 || ^5.0 || ^6.0
symfony/yaml Version ^4.4 || ^5.0 || ^6.0