This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
forked from auth0/auth0-PHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpinsights.php
74 lines (67 loc) · 2.97 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
declare(strict_types=1);
return [
'preset' => 'default',
'ide' => null,
'exclude' => [
// 'path/to/directory-or-file'
],
'add' => [
\NunoMaduro\PhpInsights\Domain\Metrics\Code\Comments::class => [
\SlevomatCodingStandard\Sniffs\Classes\RequireMultiLineMethodSignatureSniff::class,
],
],
'remove' => [
\NunoMaduro\PhpInsights\Domain\Insights\CyclomaticComplexityIsHigh::class,
\NunoMaduro\PhpInsights\Domain\Insights\ForbiddenGlobals::class,
\NunoMaduro\PhpInsights\Domain\Insights\ForbiddenNormalClasses::class,
\NunoMaduro\PhpInsights\Domain\Insights\ForbiddenTraits::class,
\NunoMaduro\PhpInsights\Domain\Sniffs\ForbiddenSetterSniff::class,
\ObjectCalisthenics\Sniffs\Files\ClassTraitAndInterfaceLengthSniff::class,
\ObjectCalisthenics\Sniffs\Files\FunctionLengthSniff::class,
\ObjectCalisthenics\Sniffs\Metrics\MethodPerClassLimitSniff::class,
\ObjectCalisthenics\Sniffs\Metrics\MaxNestingLevelSniff::class,
\PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff::class,
\PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\TodoSniff::class,
\SlevomatCodingStandard\Sniffs\Classes\SuperfluousExceptionNamingSniff::class,
\SlevomatCodingStandard\Sniffs\Classes\SuperfluousInterfaceNamingSniff::class,
\SlevomatCodingStandard\Sniffs\Classes\UnusedPrivateElementsSniff::class,
\SlevomatCodingStandard\Sniffs\Functions\FunctionLengthSniff::class,
\SlevomatCodingStandard\Sniffs\TypeHints\DisallowMixedTypeHintSniff::class,
\SlevomatCodingStandard\Sniffs\TypeHints\ParameterTypeHintSniff::class,
\SlevomatCodingStandard\Sniffs\TypeHints\PropertyTypeHintSniff::class,
\SlevomatCodingStandard\Sniffs\TypeHints\ReturnTypeHintSniff::class,
],
'config' => [
\PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DeprecatedFunctionsSniff::class => [
'exclude' => [
'src/Token/Verifier.php',
],
],
\SlevomatCodingStandard\Sniffs\Functions\UnusedParameterSniff::class => [
'exclude' => [
'src/API/Management.php',
'src/Configuration/SdkConfiguration.php',
'src/Configuration/SdkState.php',
'src/Store/SessionStore.php',
'src/Store/MemoryStore.php',
'src/Store/Psr6Store.php',
],
],
\SlevomatCodingStandard\Sniffs\Classes\ModernClassNameReferenceSniff::class => [
'exclude' => [
'src/Mixins/ConfigurableMixin.php',
],
],
\SlevomatCodingStandard\Sniffs\Classes\RequireMultiLineMethodSignatureSniff::class => [
'minLineLength' => '0',
],
],
'requirements' => [
'min-quality' => 90,
'min-complexity' => 50,
'min-architecture' => 90,
'min-style' => 90,
'disable-security-check' => false,
],
];