@@ -29,7 +29,7 @@ This sniff checks if the declaration of the class is correct
29
29
30
30
** Insight Class** : ` PHP_CodeSniffer\Standards\PSR1\Sniffs\Classes\ClassDeclarationSniff `
31
31
32
- ## Class trait and interface length <Badge text =" ^1 .0" /> <Badge text =" Architecture\Classes " type =" warn " /> <Badge text =" configurable " />
32
+ ## Class trait and interface length <Badge text =" >=1.0 <2 .0" /> <Badge text =" Architecture\Classes " type =" warn " /> <Badge text =" configurable " />
33
33
34
34
This sniff checks the size of your classes/traits/interface
35
35
@@ -45,7 +45,7 @@ This sniff checks the size of your classes/traits/interface
45
45
```
46
46
</details >
47
47
48
- ## Method per class limit <Badge text =" ^1 .0" /> <Badge text =" Architecture\Classes " type =" warn " /> <Badge text =" configurable " />
48
+ ## Method per class limit <Badge text =" >=1.0 <2 .0" /> <Badge text =" Architecture\Classes " type =" warn " /> <Badge text =" configurable " />
49
49
50
50
This sniff checks if the number of methods per class is under a limit.
51
51
@@ -61,8 +61,7 @@ This sniff checks if the number of methods per class is under a limit.
61
61
```
62
62
</details >
63
63
64
-
65
- ## Property per class limit <Badge text =" ^1.0 " /> <Badge text =" Architecture\Classes " type =" warn " /> <Badge text =" configurable " />
64
+ ## Property per class limit <Badge text =" >=1.0 <2.0 " /> <Badge text =" Architecture\Classes " type =" warn " /> <Badge text =" configurable " />
66
65
67
66
This sniff checks if the number of properties per class is under a limit.
68
67
@@ -136,7 +135,7 @@ This sniff reports use of superfluous prefix or suffix "Exception" for exception
136
135
137
136
This sniff checks the size of functions
138
137
139
- ** Insight Class** : ` ObjectCalisthenics\Sniffs\Files\FunctionLengthSniff `
138
+ ** Insight Class v1.0 ** : ` ObjectCalisthenics\Sniffs\Files\FunctionLengthSniff `
140
139
141
140
<details >
142
141
<summary>Configuration</summary>
@@ -148,6 +147,18 @@ This sniff checks the size of functions
148
147
```
149
148
</details >
150
149
150
+ ** Insight Class v2.0** : ` SlevomatCodingStandard\Sniffs\Files\FunctionLengthSniff `
151
+
152
+ <details >
153
+ <summary>Configuration</summary>
154
+
155
+ ``` php
156
+ \SlevomatCodingStandard\Sniffs\Files\FunctionLengthSniff::class => [
157
+ 'maxLength' => 20,
158
+ ]
159
+ ```
160
+ </details >
161
+
151
162
## One interface per file <Badge text =" ^1.0 " /> <Badge text =" Architecture\Interfaces " type =" warn " />
152
163
153
164
This sniff checks that only one interface is declared per file.
0 commit comments