forked from Anankke/SSPanel-UIM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpinsights.php
48 lines (45 loc) · 2.39 KB
/
phpinsights.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
declare(strict_types=1);
return [
'preset' => 'default',
'remove' => [
NunoMaduro\PhpInsights\Domain\Sniffs\ForbiddenSetterSniff::class,
NunoMaduro\PhpInsights\Domain\Insights\CyclomaticComplexityIsHigh::class,
NunoMaduro\PhpInsights\Domain\Insights\ForbiddenDefineGlobalConstants::class,
NunoMaduro\PhpInsights\Domain\Insights\ForbiddenGlobals::class,
PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\TodoSniff::class,
PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff::class,
PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterNotSniff::class,
PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\EvalSniff::class,
PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\GlobalKeywordSniff::class,
PhpCsFixer\Fixer\Import\OrderedImportsFixer::class,
SlevomatCodingStandard\Sniffs\ControlStructures\DisallowShortTernaryOperatorSniff::class,
SlevomatCodingStandard\Sniffs\Classes\ForbiddenPublicPropertySniff::class,
SlevomatCodingStandard\Sniffs\Classes\ModernClassNameReferenceSniff::class,
SlevomatCodingStandard\Sniffs\Classes\SuperfluousExceptionNamingSniff::class,
SlevomatCodingStandard\Sniffs\Classes\SuperfluousAbstractClassNamingSniff::class,
SlevomatCodingStandard\Sniffs\Functions\FunctionLengthSniff::class,
SlevomatCodingStandard\Sniffs\Functions\UnusedParameterSniff::class,
SlevomatCodingStandard\Sniffs\Namespaces\UseSpacingSniff::class,
SlevomatCodingStandard\Sniffs\TypeHints\DisallowArrayTypeHintSyntaxSniff::class,
SlevomatCodingStandard\Sniffs\TypeHints\DisallowMixedTypeHintSniff::class,
SlevomatCodingStandard\Sniffs\TypeHints\ReturnTypeHintSniff::class,
SlevomatCodingStandard\Sniffs\TypeHints\ParameterTypeHintSniff::class,
SlevomatCodingStandard\Sniffs\TypeHints\PropertyTypeHintSniff::class,
],
'config' => [
PHP_CodeSniffer\Standards\PSR1\Sniffs\Methods\CamelCapsMethodNameSniff::class => [
'exclude' => [
'src/Command/Job.php',
],
],
// Db migration should not have a class declaration
// If they have, phinx will unable to found them
PHP_CodeSniffer\Standards\PSR1\Sniffs\Classes\ClassDeclarationSniff::class => [
'exclude' => ['db/migrations'],
],
],
'exclude' => [
'storage',
],
];