retro/.php-cs-fixer.dist.php
Michel Roux 68b7a0fbcb
All checks were successful
retro / xml (push) Successful in 21s
retro / php (push) Successful in 58s
retro / nodejs (push) Successful in 1m3s
retro / release (push) Has been skipped
style: remove l10n
2025-01-08 17:52:07 +01:00

31 lines
579 B
PHP

<?php
declare(strict_types=1);
require_once './vendor/autoload.php';
use Nextcloud\CodingStandard\Config;
class MyConfig extends Config
{
public function getRules(): array
{
$rules = parent::getRules();
$rules['@PhpCsFixer'] = true;
$rules['curly_braces_position']['classes_opening_brace'] = 'next_line_unless_newline_at_signature_end';
$rules['phpdoc_to_comment'] = false;
return $rules;
}
}
$config = new MyConfig();
$config
->getFinder()
->notPath('build')
->notPath('node_modules')
->notPath('src')
->notPath('vendor')
->in(__DIR__);
return $config;