RePod-Nextcloud-App/.php-cs-fixer.dist.php

34 lines
709 B
PHP
Raw Normal View History

2023-06-22 20:10:30 +02:00
<?php
declare(strict_types=1);
require_once './vendor/autoload.php';
use Nextcloud\CodingStandard\Config;
2023-07-27 23:01:24 +02:00
class MyConfig extends Config
{
public function getRules(): array
{
$rules = parent::getRules();
2023-07-27 23:01:24 +02:00
$rules['@PhpCsFixer'] = true;
$rules['curly_braces_position']['classes_opening_brace'] = 'next_line_unless_newline_at_signature_end';
2023-07-27 23:01:24 +02:00
$rules['phpdoc_separation'] = false;
$rules['phpdoc_to_comment'] = false;
$rules['single_line_comment_style'] = false;
return $rules;
}
}
$config = new MyConfig();
2023-06-22 20:10:30 +02:00
$config
->getFinder()
->ignoreVCSIgnored(true)
->notPath('build')
->notPath('l10n')
->notPath('node_modules')
2023-06-22 20:10:30 +02:00
->notPath('src')
->notPath('vendor')
->in(__DIR__);
return $config;