markocupic / easy-coding-standard
EasyCodingStandard configurations for Contao
Installs: 44
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/markocupic/easy-coding-standard
Requires
- php: ^8.1
- contao/easy-coding-standard: ^6.13
README
This package includes some custom sniffers for Markocupic projects..
Installation
Add the package to your Contao installation via Composer:
composer require markocupic/easy-coding-standard --dev
Usage
Create a file named ecs.php in the root directory of your project.
<?php declare(strict_types=1); use SetList\SetList; use Symplify\EasyCodingStandard\Config\ECSConfig; return ECSConfig::configure() ->withSets([SetList::MARKOCUPIC]) // Adjust the configuration according to your needs. ;
Then run the script like this:
vendor/bin/ecs check
What's inside?
The package contains the following custom fixers:
| Class | Description |
|---|---|
| --empty-- | --empty-- |
The package contains the following custom sniffs:
| Class | Description |
|---|---|
NoDumpSniff |
Prevents using dump() statements. |
NoExitOrDieSniff |
Prevents using exit() or die() statements. |
NoMailSniff |
Prevents using mail() statements. |
License
Markocupic Easy Coding Standard is licensed under the terms of the LGPLv3.