-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
phpinsights.php
39 lines (36 loc) · 2.14 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
<?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\ForbiddenDefineFunctions::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\PEAR\Sniffs\WhiteSpace\ObjectOperatorIndentSniff::class,
PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\GlobalKeywordSniff::class,
PhpCsFixer\Fixer\Import\OrderedImportsFixer::class,
SlevomatCodingStandard\Sniffs\Commenting\InlineDocCommentDeclarationSniff::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\Classes\SuperfluousInterfaceNamingSniff::class,
SlevomatCodingStandard\Sniffs\Functions\FunctionLengthSniff::class,
SlevomatCodingStandard\Sniffs\Functions\UnusedParameterSniff::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,
SlevomatCodingStandard\Sniffs\Variables\UnusedVariableSniff::class,
],
'config' => [],
'exclude' => [
'storage',
],
];