Skip to content

Repository files navigation

BuckhamDuffy Coding Standards & Testing

Usage

Run composer require --dev buckhamduffy/coding-standards

ECS Example

ecs.php

<?php

declare(strict_types=1);

use Symplify\EasyCodingStandard\Configuration\ECSConfigBuilder;
use PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyStatementSniff;

/** @var ECSConfigBuilder $config */
$config = require __DIR__ . '/vendor/buckhamduffy/coding-standards/ecs.php';

$config
    ->withParallel()
    ->withSpacing(indentation: Option::INDENTATION_SPACES, lineEnding: "\n");

return $config;
PHPStan

phpstan.neon

includes:
    - ./vendor/buckhamduffy/coding-standards/extension.neon
CaptainHook

CaptainHook can be used to install custom made commit hooks

composer require --dev captainhook/hook-installer
cp vendor/buckhamduffy/coding-standards/captainhook.json captainhook.json

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages