|
2 | 2 |
|
3 | 3 | declare(strict_types=1); |
4 | 4 |
|
| 5 | +use NunoMaduro\PhpInsights\Domain\Insights\ForbiddenNormalClasses; |
| 6 | +use ObjectCalisthenics\Sniffs\Metrics\MaxNestingLevelSniff; |
| 7 | +use ObjectCalisthenics\Sniffs\Metrics\MethodPerClassLimitSniff; |
| 8 | +use PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UselessOverridingMethodSniff; |
| 9 | +use SlevomatCodingStandard\Sniffs\Classes\SuperfluousExceptionNamingSniff; |
| 10 | +use PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff; |
| 11 | +use SlevomatCodingStandard\Sniffs\Functions\UnusedParameterSniff; |
| 12 | +use SlevomatCodingStandard\Sniffs\TypeHints\DisallowMixedTypeHintSniff; |
5 | 13 | use SlevomatCodingStandard\Sniffs\TypeHints\ParameterTypeHintSniff; |
6 | 14 | use SlevomatCodingStandard\Sniffs\TypeHints\ReturnTypeHintSniff; |
7 | 15 |
|
|
66 | 74 | 'remove' => [ |
67 | 75 | ParameterTypeHintSniff::class, |
68 | 76 | ReturnTypeHintSniff::class, |
| 77 | + UselessOverridingMethodSniff::class, |
| 78 | + DisallowMixedTypeHintSniff::class, |
| 79 | + ForbiddenNormalClasses::class, |
| 80 | + SuperfluousExceptionNamingSniff::class, |
69 | 81 | ], |
70 | 82 |
|
71 | 83 | 'config' => [ |
72 | | - // ExampleInsight::class => [ |
73 | | - // 'key' => 'value', |
74 | | - // ], |
| 84 | + MaxNestingLevelSniff::class => [ |
| 85 | + 'exclude' => [ |
| 86 | + 'src/Objects/Geometry.php', |
| 87 | + ] |
| 88 | + ], |
| 89 | + UnusedParameterSniff::class => [ |
| 90 | + 'exclude' => [ |
| 91 | + 'src/Objects/Geometry.php', |
| 92 | + ] |
| 93 | + ], |
| 94 | + MethodPerClassLimitSniff::class => [ |
| 95 | + 'exclude' => [ |
| 96 | + 'src/Builders/SpatialBuilder.php', |
| 97 | + 'src/Objects/Geometry.php', |
| 98 | + ] |
| 99 | + ], |
| 100 | + LineLengthSniff::class => [ |
| 101 | + 'lineLimit' => 110, |
| 102 | + 'absoluteLineLimit' => 150, |
| 103 | + 'ignoreComments' => false, |
| 104 | + ] |
75 | 105 | ], |
76 | 106 |
|
77 | 107 | /* |
|
0 commit comments