app_template/.php-cs-fixer.dist.php
Michel Roux 0f77ef8f93
Some checks failed
app_template / xml (push) Successful in 11s
app_template / php (push) Failing after 48s
app_template / nodejs (push) Failing after 46s
app_template / release (push) Has been skipped
rework dotfiles
2024-11-10 16:05:53 +01:00

32 lines
598 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('l10n')
->notPath('node_modules')
->notPath('src')
->notPath('vendor')
->in(__DIR__);
return $config;