2024-04-25 08:03:54 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2024-11-10 15:05:53 +00:00
|
|
|
require_once './vendor/autoload.php';
|
2024-04-25 08:03:54 +00:00
|
|
|
|
|
|
|
use Nextcloud\CodingStandard\Config;
|
|
|
|
|
2024-11-10 15:05:53 +00:00
|
|
|
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();
|
2024-04-25 08:03:54 +00:00
|
|
|
$config
|
|
|
|
->getFinder()
|
|
|
|
->notPath('build')
|
|
|
|
->notPath('l10n')
|
|
|
|
->notPath('node_modules')
|
|
|
|
->notPath('src')
|
|
|
|
->notPath('vendor')
|
|
|
|
->in(__DIR__);
|
|
|
|
|
|
|
|
return $config;
|