2023-06-22 18:10:30 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
require_once './vendor/autoload.php';
|
|
|
|
|
|
|
|
use Nextcloud\CodingStandard\Config;
|
|
|
|
|
2023-07-27 21:01:24 +00:00
|
|
|
class MyConfig extends Config
|
|
|
|
{
|
2023-06-24 16:37:25 +00:00
|
|
|
public function getRules(): array
|
|
|
|
{
|
|
|
|
$rules = parent::getRules();
|
2023-07-27 21:01:24 +00:00
|
|
|
$rules['@PhpCsFixer'] = true;
|
2023-06-24 16:37:25 +00:00
|
|
|
$rules['curly_braces_position']['classes_opening_brace'] = 'next_line_unless_newline_at_signature_end';
|
2023-07-27 21:01:24 +00:00
|
|
|
$rules['phpdoc_to_comment'] = false;
|
2023-06-24 16:37:25 +00:00
|
|
|
return $rules;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$config = new MyConfig();
|
2023-06-22 18:10:30 +00:00
|
|
|
$config
|
|
|
|
->getFinder()
|
|
|
|
->notPath('build')
|
|
|
|
->notPath('l10n')
|
2024-05-29 15:11:53 +00:00
|
|
|
->notPath('node_modules')
|
2023-06-22 18:10:30 +00:00
|
|
|
->notPath('src')
|
|
|
|
->notPath('vendor')
|
|
|
|
->in(__DIR__);
|
2024-05-29 15:55:14 +00:00
|
|
|
|
2023-06-22 18:10:30 +00:00
|
|
|
return $config;
|