|
4 | 4 |
|
5 | 5 | use NunoMaduro\PhpInsights\Domain\Insights\CyclomaticComplexityIsHigh;
|
6 | 6 | use NunoMaduro\PhpInsights\Domain\Insights\ForbiddenNormalClasses;
|
7 |
| -use ObjectCalisthenics\Sniffs\Files\ClassTraitAndInterfaceLengthSniff; |
8 |
| -use ObjectCalisthenics\Sniffs\Files\FunctionLengthSniff; |
9 |
| -use ObjectCalisthenics\Sniffs\Metrics\MaxNestingLevelSniff; |
10 |
| -use ObjectCalisthenics\Sniffs\Metrics\MethodPerClassLimitSniff; |
11 | 7 | use PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UselessOverridingMethodSniff;
|
12 | 8 | use PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff;
|
| 9 | +use SlevomatCodingStandard\Sniffs\Classes\ForbiddenPublicPropertySniff; |
13 | 10 | use SlevomatCodingStandard\Sniffs\Classes\SuperfluousExceptionNamingSniff;
|
14 | 11 | use SlevomatCodingStandard\Sniffs\Commenting\InlineDocCommentDeclarationSniff;
|
| 12 | +use SlevomatCodingStandard\Sniffs\Functions\FunctionLengthSniff; |
15 | 13 | use SlevomatCodingStandard\Sniffs\Functions\UnusedParameterSniff;
|
16 | 14 | use SlevomatCodingStandard\Sniffs\TypeHints\DisallowMixedTypeHintSniff;
|
17 | 15 | use SlevomatCodingStandard\Sniffs\TypeHints\ParameterTypeHintSniff;
|
|
90 | 88 | 'absoluteLineLimit' => 150,
|
91 | 89 | 'ignoreComments' => false,
|
92 | 90 | ],
|
93 |
| - MaxNestingLevelSniff::class => [ |
94 |
| - 'maxNestingLevel' => 3, |
95 |
| - ], |
| 91 | + // MaxNestingLevelSniff::class => [ |
| 92 | + // 'maxNestingLevel' => 3, |
| 93 | + // ], |
96 | 94 | InlineDocCommentDeclarationSniff::class => [
|
97 | 95 | 'exclude' => [
|
98 | 96 | 'src/Factory.php',
|
|
105 | 103 | 'src/GeometryCast.php',
|
106 | 104 | ],
|
107 | 105 | ],
|
108 |
| - MethodPerClassLimitSniff::class => [ |
109 |
| - 'exclude' => [ |
110 |
| - 'src/SpatialBuilder.php', |
111 |
| - 'src/Objects/Geometry.php', |
112 |
| - 'src/Objects/GeometryCollection.php', |
113 |
| - ], |
114 |
| - ], |
115 |
| - ClassTraitAndInterfaceLengthSniff::class => [ |
| 106 | + FunctionLengthSniff::class => [ |
116 | 107 | 'exclude' => [
|
117 |
| - 'src/SpatialBuilder.php', |
| 108 | + 'src/Factory.php', |
118 | 109 | ],
|
119 | 110 | ],
|
120 |
| - FunctionLengthSniff::class => [ |
| 111 | + ForbiddenPublicPropertySniff::class => [ |
121 | 112 | 'exclude' => [
|
122 |
| - 'src/Factory.php', |
| 113 | + 'src/Objects/Point.php', |
123 | 114 | ],
|
124 | 115 | ],
|
125 | 116 | CyclomaticComplexityIsHigh::class => [
|
|
0 commit comments